esp_local_ctrl.pb-c.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. /* Generated by the protocol buffer compiler. DO NOT EDIT! */
  2. /* Generated from: esp_local_ctrl.proto */
  3. #ifndef PROTOBUF_C_esp_5flocal_5fctrl_2eproto__INCLUDED
  4. #define PROTOBUF_C_esp_5flocal_5fctrl_2eproto__INCLUDED
  5. #include <protobuf-c/protobuf-c.h>
  6. PROTOBUF_C__BEGIN_DECLS
  7. #if PROTOBUF_C_VERSION_NUMBER < 1003000
  8. # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
  9. #elif 1003001 < PROTOBUF_C_MIN_COMPILER_VERSION
  10. # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
  11. #endif
  12. #include "constants.pb-c.h"
  13. typedef struct _CmdGetPropertyCount CmdGetPropertyCount;
  14. typedef struct _RespGetPropertyCount RespGetPropertyCount;
  15. typedef struct _PropertyInfo PropertyInfo;
  16. typedef struct _CmdGetPropertyValues CmdGetPropertyValues;
  17. typedef struct _RespGetPropertyValues RespGetPropertyValues;
  18. typedef struct _PropertyValue PropertyValue;
  19. typedef struct _CmdSetPropertyValues CmdSetPropertyValues;
  20. typedef struct _RespSetPropertyValues RespSetPropertyValues;
  21. typedef struct _LocalCtrlMessage LocalCtrlMessage;
  22. /* --- enums --- */
  23. typedef enum _LocalCtrlMsgType {
  24. LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyCount = 0,
  25. LOCAL_CTRL_MSG_TYPE__TypeRespGetPropertyCount = 1,
  26. LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyValues = 4,
  27. LOCAL_CTRL_MSG_TYPE__TypeRespGetPropertyValues = 5,
  28. LOCAL_CTRL_MSG_TYPE__TypeCmdSetPropertyValues = 6,
  29. LOCAL_CTRL_MSG_TYPE__TypeRespSetPropertyValues = 7
  30. PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(LOCAL_CTRL_MSG_TYPE)
  31. } LocalCtrlMsgType;
  32. /* --- messages --- */
  33. struct _CmdGetPropertyCount
  34. {
  35. ProtobufCMessage base;
  36. };
  37. #define CMD_GET_PROPERTY_COUNT__INIT \
  38. { PROTOBUF_C_MESSAGE_INIT (&cmd_get_property_count__descriptor) \
  39. }
  40. struct _RespGetPropertyCount
  41. {
  42. ProtobufCMessage base;
  43. Status status;
  44. uint32_t count;
  45. };
  46. #define RESP_GET_PROPERTY_COUNT__INIT \
  47. { PROTOBUF_C_MESSAGE_INIT (&resp_get_property_count__descriptor) \
  48. , STATUS__Success, 0 }
  49. struct _PropertyInfo
  50. {
  51. ProtobufCMessage base;
  52. Status status;
  53. char *name;
  54. uint32_t type;
  55. uint32_t flags;
  56. ProtobufCBinaryData value;
  57. };
  58. #define PROPERTY_INFO__INIT \
  59. { PROTOBUF_C_MESSAGE_INIT (&property_info__descriptor) \
  60. , STATUS__Success, (char *)protobuf_c_empty_string, 0, 0, {0,NULL} }
  61. struct _CmdGetPropertyValues
  62. {
  63. ProtobufCMessage base;
  64. size_t n_indices;
  65. uint32_t *indices;
  66. };
  67. #define CMD_GET_PROPERTY_VALUES__INIT \
  68. { PROTOBUF_C_MESSAGE_INIT (&cmd_get_property_values__descriptor) \
  69. , 0,NULL }
  70. struct _RespGetPropertyValues
  71. {
  72. ProtobufCMessage base;
  73. Status status;
  74. size_t n_props;
  75. PropertyInfo **props;
  76. };
  77. #define RESP_GET_PROPERTY_VALUES__INIT \
  78. { PROTOBUF_C_MESSAGE_INIT (&resp_get_property_values__descriptor) \
  79. , STATUS__Success, 0,NULL }
  80. struct _PropertyValue
  81. {
  82. ProtobufCMessage base;
  83. uint32_t index;
  84. ProtobufCBinaryData value;
  85. };
  86. #define PROPERTY_VALUE__INIT \
  87. { PROTOBUF_C_MESSAGE_INIT (&property_value__descriptor) \
  88. , 0, {0,NULL} }
  89. struct _CmdSetPropertyValues
  90. {
  91. ProtobufCMessage base;
  92. size_t n_props;
  93. PropertyValue **props;
  94. };
  95. #define CMD_SET_PROPERTY_VALUES__INIT \
  96. { PROTOBUF_C_MESSAGE_INIT (&cmd_set_property_values__descriptor) \
  97. , 0,NULL }
  98. struct _RespSetPropertyValues
  99. {
  100. ProtobufCMessage base;
  101. Status status;
  102. };
  103. #define RESP_SET_PROPERTY_VALUES__INIT \
  104. { PROTOBUF_C_MESSAGE_INIT (&resp_set_property_values__descriptor) \
  105. , STATUS__Success }
  106. typedef enum {
  107. LOCAL_CTRL_MESSAGE__PAYLOAD__NOT_SET = 0,
  108. LOCAL_CTRL_MESSAGE__PAYLOAD_CMD_GET_PROP_COUNT = 10,
  109. LOCAL_CTRL_MESSAGE__PAYLOAD_RESP_GET_PROP_COUNT = 11,
  110. LOCAL_CTRL_MESSAGE__PAYLOAD_CMD_GET_PROP_VALS = 12,
  111. LOCAL_CTRL_MESSAGE__PAYLOAD_RESP_GET_PROP_VALS = 13,
  112. LOCAL_CTRL_MESSAGE__PAYLOAD_CMD_SET_PROP_VALS = 14,
  113. LOCAL_CTRL_MESSAGE__PAYLOAD_RESP_SET_PROP_VALS = 15
  114. PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(LOCAL_CTRL_MESSAGE__PAYLOAD)
  115. } LocalCtrlMessage__PayloadCase;
  116. struct _LocalCtrlMessage
  117. {
  118. ProtobufCMessage base;
  119. LocalCtrlMsgType msg;
  120. LocalCtrlMessage__PayloadCase payload_case;
  121. union {
  122. CmdGetPropertyCount *cmd_get_prop_count;
  123. RespGetPropertyCount *resp_get_prop_count;
  124. CmdGetPropertyValues *cmd_get_prop_vals;
  125. RespGetPropertyValues *resp_get_prop_vals;
  126. CmdSetPropertyValues *cmd_set_prop_vals;
  127. RespSetPropertyValues *resp_set_prop_vals;
  128. };
  129. };
  130. #define LOCAL_CTRL_MESSAGE__INIT \
  131. { PROTOBUF_C_MESSAGE_INIT (&local_ctrl_message__descriptor) \
  132. , LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyCount, LOCAL_CTRL_MESSAGE__PAYLOAD__NOT_SET, {0} }
  133. /* CmdGetPropertyCount methods */
  134. void cmd_get_property_count__init
  135. (CmdGetPropertyCount *message);
  136. size_t cmd_get_property_count__get_packed_size
  137. (const CmdGetPropertyCount *message);
  138. size_t cmd_get_property_count__pack
  139. (const CmdGetPropertyCount *message,
  140. uint8_t *out);
  141. size_t cmd_get_property_count__pack_to_buffer
  142. (const CmdGetPropertyCount *message,
  143. ProtobufCBuffer *buffer);
  144. CmdGetPropertyCount *
  145. cmd_get_property_count__unpack
  146. (ProtobufCAllocator *allocator,
  147. size_t len,
  148. const uint8_t *data);
  149. void cmd_get_property_count__free_unpacked
  150. (CmdGetPropertyCount *message,
  151. ProtobufCAllocator *allocator);
  152. /* RespGetPropertyCount methods */
  153. void resp_get_property_count__init
  154. (RespGetPropertyCount *message);
  155. size_t resp_get_property_count__get_packed_size
  156. (const RespGetPropertyCount *message);
  157. size_t resp_get_property_count__pack
  158. (const RespGetPropertyCount *message,
  159. uint8_t *out);
  160. size_t resp_get_property_count__pack_to_buffer
  161. (const RespGetPropertyCount *message,
  162. ProtobufCBuffer *buffer);
  163. RespGetPropertyCount *
  164. resp_get_property_count__unpack
  165. (ProtobufCAllocator *allocator,
  166. size_t len,
  167. const uint8_t *data);
  168. void resp_get_property_count__free_unpacked
  169. (RespGetPropertyCount *message,
  170. ProtobufCAllocator *allocator);
  171. /* PropertyInfo methods */
  172. void property_info__init
  173. (PropertyInfo *message);
  174. size_t property_info__get_packed_size
  175. (const PropertyInfo *message);
  176. size_t property_info__pack
  177. (const PropertyInfo *message,
  178. uint8_t *out);
  179. size_t property_info__pack_to_buffer
  180. (const PropertyInfo *message,
  181. ProtobufCBuffer *buffer);
  182. PropertyInfo *
  183. property_info__unpack
  184. (ProtobufCAllocator *allocator,
  185. size_t len,
  186. const uint8_t *data);
  187. void property_info__free_unpacked
  188. (PropertyInfo *message,
  189. ProtobufCAllocator *allocator);
  190. /* CmdGetPropertyValues methods */
  191. void cmd_get_property_values__init
  192. (CmdGetPropertyValues *message);
  193. size_t cmd_get_property_values__get_packed_size
  194. (const CmdGetPropertyValues *message);
  195. size_t cmd_get_property_values__pack
  196. (const CmdGetPropertyValues *message,
  197. uint8_t *out);
  198. size_t cmd_get_property_values__pack_to_buffer
  199. (const CmdGetPropertyValues *message,
  200. ProtobufCBuffer *buffer);
  201. CmdGetPropertyValues *
  202. cmd_get_property_values__unpack
  203. (ProtobufCAllocator *allocator,
  204. size_t len,
  205. const uint8_t *data);
  206. void cmd_get_property_values__free_unpacked
  207. (CmdGetPropertyValues *message,
  208. ProtobufCAllocator *allocator);
  209. /* RespGetPropertyValues methods */
  210. void resp_get_property_values__init
  211. (RespGetPropertyValues *message);
  212. size_t resp_get_property_values__get_packed_size
  213. (const RespGetPropertyValues *message);
  214. size_t resp_get_property_values__pack
  215. (const RespGetPropertyValues *message,
  216. uint8_t *out);
  217. size_t resp_get_property_values__pack_to_buffer
  218. (const RespGetPropertyValues *message,
  219. ProtobufCBuffer *buffer);
  220. RespGetPropertyValues *
  221. resp_get_property_values__unpack
  222. (ProtobufCAllocator *allocator,
  223. size_t len,
  224. const uint8_t *data);
  225. void resp_get_property_values__free_unpacked
  226. (RespGetPropertyValues *message,
  227. ProtobufCAllocator *allocator);
  228. /* PropertyValue methods */
  229. void property_value__init
  230. (PropertyValue *message);
  231. size_t property_value__get_packed_size
  232. (const PropertyValue *message);
  233. size_t property_value__pack
  234. (const PropertyValue *message,
  235. uint8_t *out);
  236. size_t property_value__pack_to_buffer
  237. (const PropertyValue *message,
  238. ProtobufCBuffer *buffer);
  239. PropertyValue *
  240. property_value__unpack
  241. (ProtobufCAllocator *allocator,
  242. size_t len,
  243. const uint8_t *data);
  244. void property_value__free_unpacked
  245. (PropertyValue *message,
  246. ProtobufCAllocator *allocator);
  247. /* CmdSetPropertyValues methods */
  248. void cmd_set_property_values__init
  249. (CmdSetPropertyValues *message);
  250. size_t cmd_set_property_values__get_packed_size
  251. (const CmdSetPropertyValues *message);
  252. size_t cmd_set_property_values__pack
  253. (const CmdSetPropertyValues *message,
  254. uint8_t *out);
  255. size_t cmd_set_property_values__pack_to_buffer
  256. (const CmdSetPropertyValues *message,
  257. ProtobufCBuffer *buffer);
  258. CmdSetPropertyValues *
  259. cmd_set_property_values__unpack
  260. (ProtobufCAllocator *allocator,
  261. size_t len,
  262. const uint8_t *data);
  263. void cmd_set_property_values__free_unpacked
  264. (CmdSetPropertyValues *message,
  265. ProtobufCAllocator *allocator);
  266. /* RespSetPropertyValues methods */
  267. void resp_set_property_values__init
  268. (RespSetPropertyValues *message);
  269. size_t resp_set_property_values__get_packed_size
  270. (const RespSetPropertyValues *message);
  271. size_t resp_set_property_values__pack
  272. (const RespSetPropertyValues *message,
  273. uint8_t *out);
  274. size_t resp_set_property_values__pack_to_buffer
  275. (const RespSetPropertyValues *message,
  276. ProtobufCBuffer *buffer);
  277. RespSetPropertyValues *
  278. resp_set_property_values__unpack
  279. (ProtobufCAllocator *allocator,
  280. size_t len,
  281. const uint8_t *data);
  282. void resp_set_property_values__free_unpacked
  283. (RespSetPropertyValues *message,
  284. ProtobufCAllocator *allocator);
  285. /* LocalCtrlMessage methods */
  286. void local_ctrl_message__init
  287. (LocalCtrlMessage *message);
  288. size_t local_ctrl_message__get_packed_size
  289. (const LocalCtrlMessage *message);
  290. size_t local_ctrl_message__pack
  291. (const LocalCtrlMessage *message,
  292. uint8_t *out);
  293. size_t local_ctrl_message__pack_to_buffer
  294. (const LocalCtrlMessage *message,
  295. ProtobufCBuffer *buffer);
  296. LocalCtrlMessage *
  297. local_ctrl_message__unpack
  298. (ProtobufCAllocator *allocator,
  299. size_t len,
  300. const uint8_t *data);
  301. void local_ctrl_message__free_unpacked
  302. (LocalCtrlMessage *message,
  303. ProtobufCAllocator *allocator);
  304. /* --- per-message closures --- */
  305. typedef void (*CmdGetPropertyCount_Closure)
  306. (const CmdGetPropertyCount *message,
  307. void *closure_data);
  308. typedef void (*RespGetPropertyCount_Closure)
  309. (const RespGetPropertyCount *message,
  310. void *closure_data);
  311. typedef void (*PropertyInfo_Closure)
  312. (const PropertyInfo *message,
  313. void *closure_data);
  314. typedef void (*CmdGetPropertyValues_Closure)
  315. (const CmdGetPropertyValues *message,
  316. void *closure_data);
  317. typedef void (*RespGetPropertyValues_Closure)
  318. (const RespGetPropertyValues *message,
  319. void *closure_data);
  320. typedef void (*PropertyValue_Closure)
  321. (const PropertyValue *message,
  322. void *closure_data);
  323. typedef void (*CmdSetPropertyValues_Closure)
  324. (const CmdSetPropertyValues *message,
  325. void *closure_data);
  326. typedef void (*RespSetPropertyValues_Closure)
  327. (const RespSetPropertyValues *message,
  328. void *closure_data);
  329. typedef void (*LocalCtrlMessage_Closure)
  330. (const LocalCtrlMessage *message,
  331. void *closure_data);
  332. /* --- services --- */
  333. /* --- descriptors --- */
  334. extern const ProtobufCEnumDescriptor local_ctrl_msg_type__descriptor;
  335. extern const ProtobufCMessageDescriptor cmd_get_property_count__descriptor;
  336. extern const ProtobufCMessageDescriptor resp_get_property_count__descriptor;
  337. extern const ProtobufCMessageDescriptor property_info__descriptor;
  338. extern const ProtobufCMessageDescriptor cmd_get_property_values__descriptor;
  339. extern const ProtobufCMessageDescriptor resp_get_property_values__descriptor;
  340. extern const ProtobufCMessageDescriptor property_value__descriptor;
  341. extern const ProtobufCMessageDescriptor cmd_set_property_values__descriptor;
  342. extern const ProtobufCMessageDescriptor resp_set_property_values__descriptor;
  343. extern const ProtobufCMessageDescriptor local_ctrl_message__descriptor;
  344. PROTOBUF_C__END_DECLS
  345. #endif /* PROTOBUF_C_esp_5flocal_5fctrl_2eproto__INCLUDED */