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