Vitaly Buka | 4615e0d | 2015-10-14 15:35:12 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Weave Authors. All rights reserved. |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 5 | #ifndef LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_ |
| 6 | #define LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_ |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 7 | |
Vitaly Buka | b6f015a | 2015-07-09 14:59:23 -0700 | [diff] [blame] | 8 | namespace weave { |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 9 | |
| 10 | namespace errors { |
Alex Vakulenko | 9ac962f | 2014-07-22 07:34:56 -0700 | [diff] [blame] | 11 | namespace commands { |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 12 | |
| 13 | // Common command definition error codes. |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 14 | extern const char kTypeMismatch[]; |
Alex Vakulenko | 66ec292 | 2014-06-17 15:30:22 -0700 | [diff] [blame] | 15 | extern const char kInvalidPropValue[]; |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 16 | extern const char kPropertyMissing[]; |
Alex Vakulenko | fd44869 | 2014-07-22 07:46:53 -0700 | [diff] [blame] | 17 | extern const char kInvalidCommandName[]; |
Alex Vakulenko | 8dc69af | 2014-08-07 10:29:42 -0700 | [diff] [blame] | 18 | extern const char kCommandFailed[]; |
Vitaly Buka | 6fed053 | 2015-05-14 16:57:23 -0700 | [diff] [blame] | 19 | extern const char kInvalidMinimalRole[]; |
Vitaly Buka | c602926 | 2015-10-07 09:29:13 -0700 | [diff] [blame] | 20 | extern const char kCommandDestroyed[]; |
Vitaly Buka | 47a1f6f | 2015-10-07 18:09:57 -0700 | [diff] [blame] | 21 | extern const char kInvalidState[]; |
Alex Vakulenko | 9ac962f | 2014-07-22 07:34:56 -0700 | [diff] [blame] | 22 | } // namespace commands |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 23 | } // namespace errors |
| 24 | |
Alex Vakulenko | 9ac962f | 2014-07-22 07:34:56 -0700 | [diff] [blame] | 25 | namespace commands { |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 26 | namespace attributes { |
| 27 | // Command description JSON schema attributes. |
Anton Muhin | 5191e81 | 2014-10-30 17:49:48 +0400 | [diff] [blame] | 28 | extern const char kCommand_Id[]; |
Alex Vakulenko | 8dc69af | 2014-08-07 10:29:42 -0700 | [diff] [blame] | 29 | extern const char kCommand_Name[]; |
Alex Vakulenko | 88f55d8 | 2015-12-03 15:30:27 -0800 | [diff] [blame] | 30 | extern const char kCommand_Component[]; |
Alex Vakulenko | 7c36b67 | 2014-07-16 14:50:58 -0700 | [diff] [blame] | 31 | extern const char kCommand_Parameters[]; |
Vitaly Buka | b6b49e5 | 2015-05-01 10:53:06 -0700 | [diff] [blame] | 32 | extern const char kCommand_Progress[]; |
Anton Muhin | 71fb9d5 | 2014-11-21 22:22:39 +0400 | [diff] [blame] | 33 | extern const char kCommand_Results[]; |
Vitaly Buka | 906d39e | 2015-03-24 10:08:26 -0700 | [diff] [blame] | 34 | extern const char kCommand_State[]; |
Vitaly Buka | 70f77d9 | 2015-10-07 15:42:40 -0700 | [diff] [blame] | 35 | extern const char kCommand_Error[]; |
Vitaly Buka | 6fed053 | 2015-05-14 16:57:23 -0700 | [diff] [blame] | 36 | |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 37 | } // namespace attributes |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 38 | } // namespace commands |
Alex Vakulenko | 9ac962f | 2014-07-22 07:34:56 -0700 | [diff] [blame] | 39 | |
Vitaly Buka | b6f015a | 2015-07-09 14:59:23 -0700 | [diff] [blame] | 40 | } // namespace weave |
Alex Vakulenko | e439a0f | 2014-05-21 12:26:47 -0700 | [diff] [blame] | 41 | |
Vitaly Buka | 912b698 | 2015-07-06 11:13:03 -0700 | [diff] [blame] | 42 | #endif // LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_ |