blob: 623fec32ca1b9d9367384731be7dca3efef28f6e [file] [log] [blame]
Vitaly Buka4615e0d2015-10-14 15:35:12 -07001// Copyright 2015 The Weave Authors. All rights reserved.
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Vitaly Buka912b6982015-07-06 11:13:03 -07005#ifndef LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_
6#define LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -07007
Vitaly Bukab6f015a2015-07-09 14:59:23 -07008namespace weave {
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -07009
10namespace errors {
Alex Vakulenko9ac962f2014-07-22 07:34:56 -070011namespace commands {
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070012
13// Common command definition error codes.
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070014extern const char kTypeMismatch[];
Alex Vakulenko66ec2922014-06-17 15:30:22 -070015extern const char kInvalidPropValue[];
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070016extern const char kPropertyMissing[];
Alex Vakulenkofd448692014-07-22 07:46:53 -070017extern const char kInvalidCommandName[];
Alex Vakulenko8dc69af2014-08-07 10:29:42 -070018extern const char kCommandFailed[];
Vitaly Buka6fed0532015-05-14 16:57:23 -070019extern const char kInvalidMinimalRole[];
Vitaly Bukac6029262015-10-07 09:29:13 -070020extern const char kCommandDestroyed[];
Vitaly Buka47a1f6f2015-10-07 18:09:57 -070021extern const char kInvalidState[];
Alex Vakulenko9ac962f2014-07-22 07:34:56 -070022} // namespace commands
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070023} // namespace errors
24
Alex Vakulenko9ac962f2014-07-22 07:34:56 -070025namespace commands {
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070026namespace attributes {
27// Command description JSON schema attributes.
Anton Muhin5191e812014-10-30 17:49:48 +040028extern const char kCommand_Id[];
Alex Vakulenko8dc69af2014-08-07 10:29:42 -070029extern const char kCommand_Name[];
Alex Vakulenko88f55d82015-12-03 15:30:27 -080030extern const char kCommand_Component[];
Alex Vakulenko7c36b672014-07-16 14:50:58 -070031extern const char kCommand_Parameters[];
Vitaly Bukab6b49e52015-05-01 10:53:06 -070032extern const char kCommand_Progress[];
Anton Muhin71fb9d52014-11-21 22:22:39 +040033extern const char kCommand_Results[];
Vitaly Buka906d39e2015-03-24 10:08:26 -070034extern const char kCommand_State[];
Vitaly Buka70f77d92015-10-07 15:42:40 -070035extern const char kCommand_Error[];
Vitaly Buka6fed0532015-05-14 16:57:23 -070036
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070037} // namespace attributes
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070038} // namespace commands
Alex Vakulenko9ac962f2014-07-22 07:34:56 -070039
Vitaly Bukab6f015a2015-07-09 14:59:23 -070040} // namespace weave
Alex Vakulenkoe439a0f2014-05-21 12:26:47 -070041
Vitaly Buka912b6982015-07-06 11:13:03 -070042#endif // LIBWEAVE_SRC_COMMANDS_SCHEMA_CONSTANTS_H_