Home | History | Annotate | Download | only in commands
      1 // Copyright 2015 The Weave Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_
      6 #define LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_
      7 
      8 namespace weave {
      9 
     10 namespace errors {
     11 namespace commands {
     12 
     13 // Common command definition error codes.
     14 extern const char kTypeMismatch[];
     15 extern const char kInvalidPropValue[];
     16 extern const char kPropertyMissing[];
     17 extern const char kInvalidCommandName[];
     18 extern const char kCommandFailed[];
     19 extern const char kInvalidMinimalRole[];
     20 extern const char kCommandDestroyed[];
     21 extern const char kInvalidState[];
     22 }  // namespace commands
     23 }  // namespace errors
     24 
     25 namespace commands {
     26 namespace attributes {
     27 // Command description JSON schema attributes.
     28 extern const char kCommand_Id[];
     29 extern const char kCommand_Name[];
     30 extern const char kCommand_Component[];
     31 extern const char kCommand_Parameters[];
     32 extern const char kCommand_Progress[];
     33 extern const char kCommand_Results[];
     34 extern const char kCommand_State[];
     35 extern const char kCommand_Error[];
     36 
     37 extern const char kCommand_Role[];
     38 extern const char kCommand_Role_Manager[];
     39 extern const char kCommand_Role_Owner[];
     40 extern const char kCommand_Role_User[];
     41 extern const char kCommand_Role_Viewer[];
     42 
     43 }  // namespace attributes
     44 }  // namespace commands
     45 
     46 }  // namespace weave
     47 
     48 #endif  // LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_
     49