1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: appsrv.proto */
4 #ifndef PROTOBUF_C_appsrv_2eproto__INCLUDED
5 #define PROTOBUF_C_appsrv_2eproto__INCLUDED
7 #include <protobuf-c/protobuf-c.h>
9 PROTOBUF_C__BEGIN_DECLS
11 #if PROTOBUF_C_VERSION_NUMBER < 1000000
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 1002001 < 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
17 #include "smsgs.pb-c.h"
18 #include "api_mac.pb-c.h"
19 #include "llc.pb-c.h"
20 #include "cllc.pb-c.h"
21 #include "csf.pb-c.h"
23 typedef struct _AppsrvTxDataReq AppsrvTxDataReq;
24 typedef struct _AppsrvTxDataCnf AppsrvTxDataCnf;
25 typedef struct _AppsrvSetJoinPermitReq AppsrvSetJoinPermitReq;
26 typedef struct _AppsrvSetJoinPermitCnf AppsrvSetJoinPermitCnf;
27 typedef struct _AppsrvDeviceUpdateInd AppsrvDeviceUpdateInd;
28 typedef struct _AppsrvDeviceNotActiveUpdateInd AppsrvDeviceNotActiveUpdateInd;
29 typedef struct _AppsrvDeviceDataRxInd AppsrvDeviceDataRxInd;
30 typedef struct _AppsrvCollectorStateCngUpdateInd AppsrvCollectorStateCngUpdateInd;
31 typedef struct _AppsrvNwkParam AppsrvNwkParam;
32 typedef struct _AppsrvNwkInfoUpdateInd AppsrvNwkInfoUpdateInd;
33 typedef struct _AppsrvGetNwkInfoReq AppsrvGetNwkInfoReq;
34 typedef struct _AppsrvGetNwkInfoCnf AppsrvGetNwkInfoCnf;
35 typedef struct _AppsrvGetDeviceArrayReq AppsrvGetDeviceArrayReq;
36 typedef struct _AppsrvGetDeviceArrayCnf AppsrvGetDeviceArrayCnf;
39 /* --- enums --- */
41 /*
42 * MT System ID for TIMAC APP Server Interface Protobuf sub-system ID
43 */
44 typedef enum _TimacAppSrvSysId {
45 TIMAC_APP_SRV_SYS_ID__RPC_SYS_PB_TIMAC_APPSRV = 10
46 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TIMAC_APP_SRV_SYS_ID)
47 } TimacAppSrvSysId;
48 /*
49 * Command IDs - each of these are associated with Request,
50 * Responses, Indications, and Confirm messages
51 */
52 typedef enum _AppsrvCmdId {
53 APPSRV__CMD_ID__APPSRV_DEVICE_JOINED_IND = 1,
54 APPSRV__CMD_ID__APPSRV_DEVICE_LEFT_IND = 2,
55 APPSRV__CMD_ID__APPSRV_NWK_INFO_IND = 3,
56 APPSRV__CMD_ID__APPSRV_GET_NWK_INFO_REQ = 4,
57 APPSRV__CMD_ID__APPSRV_GET_NWK_INFO_RSP = 5,
58 APPSRV__CMD_ID__APPSRV_GET_NWK_INFO_CNF = 6,
59 APPSRV__CMD_ID__APPSRV_GET_DEVICE_ARRAY_REQ = 7,
60 APPSRV__CMD_ID__APPSRV_GET_DEVICE_ARRAY_CNF = 8,
61 APPSRV__CMD_ID__APPSRV_DEVICE_NOTACTIVE_UPDATE_IND = 9,
62 APPSRV__CMD_ID__APPSRV_DEVICE_DATA_RX_IND = 10,
63 APPSRV__CMD_ID__APPSRV_COLLECTOR_STATE_CNG_IND = 11,
64 APPSRV__CMD_ID__APPSRV_SET_JOIN_PERMIT_REQ = 12,
65 APPSRV__CMD_ID__APPSRV_SET_JOIN_PERMIT_CNF = 13,
66 APPSRV__CMD_ID__APPSRV_TX_DATA_REQ = 14,
67 APPSRV__CMD_ID__APPSRV_TX_DATA_CNF = 15
68 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(APPSRV__CMD_ID)
69 } AppsrvCmdId;
70 typedef enum _NwkMode {
71 NWK_MODE__BEACON_ENABLED = 1,
72 NWK_MODE__NON_BEACON = 2,
73 NWK_MODE__FREQUENCY_HOPPING = 3
74 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NWK_MODE)
75 } NwkMode;
77 /* --- messages --- */
79 /*
80 * APPSRV_TX_DATA_REQ
81 */
82 struct _AppsrvTxDataReq
83 {
84 ProtobufCMessage base;
85 /*
86 * don't change this field
87 */
88 AppsrvCmdId cmdid;
89 SmsgsCmdIds msgid;
90 ApiMacDeviceDescriptor *devdescriptor;
91 SmsgsConfigReqMsg *configreqmsg;
92 SmsgsToggleLedReqMsg *toggleledreq;
93 };
94 #define APPSRV_TX_DATA_REQ__INIT \
95 { PROTOBUF_C_MESSAGE_INIT (&appsrv_tx_data_req__descriptor) \
96 , APPSRV__CMD_ID__APPSRV_TX_DATA_REQ, 0, NULL, NULL, NULL }
99 /*
100 *APPSRV_TX_DATA_CNF
101 */
102 struct _AppsrvTxDataCnf
103 {
104 ProtobufCMessage base;
105 /*
106 * don't change this field
107 */
108 AppsrvCmdId cmdid;
109 int32_t status;
110 };
111 #define APPSRV_TX_DATA_CNF__INIT \
112 { PROTOBUF_C_MESSAGE_INIT (&appsrv_tx_data_cnf__descriptor) \
113 , APPSRV__CMD_ID__APPSRV_TX_DATA_CNF, 0 }
116 /*
117 * APPSRV_SET_JOIN_PERMIT_REQ
118 */
119 struct _AppsrvSetJoinPermitReq
120 {
121 ProtobufCMessage base;
122 /*
123 * don't change this field
124 */
125 AppsrvCmdId cmdid;
126 /*
127 * duration - duration for join permit to be turned on in
128 * milliseconds.
129 * 0 sets it Off, 0xFFFFFFFF sets it ON indefinitely
130 * Any other non zero value sets it on for that duration *
131 */
132 int32_t duration;
133 };
134 #define APPSRV_SET_JOIN_PERMIT_REQ__INIT \
135 { PROTOBUF_C_MESSAGE_INIT (&appsrv_set_join_permit_req__descriptor) \
136 , APPSRV__CMD_ID__APPSRV_SET_JOIN_PERMIT_REQ, 0 }
139 /*
140 * APPSRV_SET_JOIN_PERMIT_CNF
141 */
142 struct _AppsrvSetJoinPermitCnf
143 {
144 ProtobufCMessage base;
145 /*
146 * provides the result of processing of the
147 * APPSRV_SET_JOIN_PERMIT_REQ message
148 */
149 int32_t status;
150 };
151 #define APPSRV_SET_JOIN_PERMIT_CNF__INIT \
152 { PROTOBUF_C_MESSAGE_INIT (&appsrv_set_join_permit_cnf__descriptor) \
153 , 0 }
156 /*
157 * APPSRV_DEVICE_JOINED_IND
158 */
159 struct _AppsrvDeviceUpdateInd
160 {
161 ProtobufCMessage base;
162 ApiMacDeviceDescriptor *devdescriptor;
163 ApiMacCapabilityInfo *devcapinfo;
164 };
165 #define APPSRV_DEVICE_UPDATE_IND__INIT \
166 { PROTOBUF_C_MESSAGE_INIT (&appsrv_device_update_ind__descriptor) \
167 , NULL, NULL }
170 /*
171 * APPSRV_DEVICE_NOTACTIVE_UPDATE_IND
172 */
173 struct _AppsrvDeviceNotActiveUpdateInd
174 {
175 ProtobufCMessage base;
176 ApiMacDeviceDescriptor *devdescriptor;
177 uint32_t timeout;
178 };
179 #define APPSRV_DEVICE_NOT_ACTIVE_UPDATE_IND__INIT \
180 { PROTOBUF_C_MESSAGE_INIT (&appsrv_device_not_active_update_ind__descriptor) \
181 , NULL, 0 }
184 /*
185 * APPSRV_DEVICE_DATA_RX_IND
186 */
187 struct _AppsrvDeviceDataRxInd
188 {
189 ProtobufCMessage base;
190 ApiMacSAddr *srcaddr;
191 int32_t rssi;
192 SmsgsSensorMsg *sdatamsg;
193 SmsgsConfigRspMsg *sconfigmsg;
194 };
195 #define APPSRV_DEVICE_DATA_RX_IND__INIT \
196 { PROTOBUF_C_MESSAGE_INIT (&appsrv_device_data_rx_ind__descriptor) \
197 , NULL, 0, NULL, NULL }
200 struct _AppsrvCollectorStateCngUpdateInd
201 {
202 ProtobufCMessage base;
203 uint32_t state;
204 };
205 #define APPSRV_COLLECTOR_STATE_CNG_UPDATE_IND__INIT \
206 { PROTOBUF_C_MESSAGE_INIT (&appsrv_collector_state_cng_update_ind__descriptor) \
207 , 0 }
210 /*
211 * sub-message for the network parameters
212 * used by appsrv_nwkInfoUpdateInd
213 * and appsrv_getNwkInfoCnf
214 */
215 struct _AppsrvNwkParam
216 {
217 ProtobufCMessage base;
218 LlcNetInfo *nwkinfo;
219 int32_t securityenabled;
220 NwkMode networkmode;
221 CllcStates state;
222 };
223 #define APPSRV_NWK_PARAM__INIT \
224 { PROTOBUF_C_MESSAGE_INIT (&appsrv_nwk_param__descriptor) \
225 , NULL, 0, 0, 0 }
228 struct _AppsrvNwkInfoUpdateInd
229 {
230 ProtobufCMessage base;
231 AppsrvNwkParam *nwkinfo;
232 };
233 #define APPSRV_NWK_INFO_UPDATE_IND__INIT \
234 { PROTOBUF_C_MESSAGE_INIT (&appsrv_nwk_info_update_ind__descriptor) \
235 , NULL }
238 /*
239 * APPSRV_GET_NWK_INFO_REQ
240 */
241 struct _AppsrvGetNwkInfoReq
242 {
243 ProtobufCMessage base;
244 /*
245 * don't change this field
246 */
247 AppsrvCmdId cmdid;
248 };
249 #define APPSRV_GET_NWK_INFO_REQ__INIT \
250 { PROTOBUF_C_MESSAGE_INIT (&appsrv_get_nwk_info_req__descriptor) \
251 , APPSRV__CMD_ID__APPSRV_GET_NWK_INFO_REQ }
254 /*
255 * APPSRV_GET_NWK_INFO_CNF
256 */
257 struct _AppsrvGetNwkInfoCnf
258 {
259 ProtobufCMessage base;
260 /*
261 * don't change this field
262 */
263 AppsrvCmdId cmdid;
264 uint32_t status;
265 AppsrvNwkParam *nwkinfo;
266 };
267 #define APPSRV_GET_NWK_INFO_CNF__INIT \
268 { PROTOBUF_C_MESSAGE_INIT (&appsrv_get_nwk_info_cnf__descriptor) \
269 , APPSRV__CMD_ID__APPSRV_GET_NWK_INFO_CNF, 0, NULL }
272 /*
273 * APPSRV_GET_DEVICE_ARRAY_REQ
274 */
275 struct _AppsrvGetDeviceArrayReq
276 {
277 ProtobufCMessage base;
278 /*
279 * don't change this field
280 */
281 AppsrvCmdId cmdid;
282 };
283 #define APPSRV_GET_DEVICE_ARRAY_REQ__INIT \
284 { PROTOBUF_C_MESSAGE_INIT (&appsrv_get_device_array_req__descriptor) \
285 , APPSRV__CMD_ID__APPSRV_GET_DEVICE_ARRAY_REQ }
288 /*
289 * APPSRV_GET_DEVICE_ARRAY_CNF
290 */
291 struct _AppsrvGetDeviceArrayCnf
292 {
293 ProtobufCMessage base;
294 /*
295 * don't change this field
296 */
297 AppsrvCmdId cmdid;
298 uint32_t status;
299 size_t n_devinfo;
300 CsfDeviceInformation **devinfo;
301 };
302 #define APPSRV_GET_DEVICE_ARRAY_CNF__INIT \
303 { PROTOBUF_C_MESSAGE_INIT (&appsrv_get_device_array_cnf__descriptor) \
304 , APPSRV__CMD_ID__APPSRV_GET_DEVICE_ARRAY_CNF, 0, 0,NULL }
307 /* AppsrvTxDataReq methods */
308 void appsrv_tx_data_req__init
309 (AppsrvTxDataReq *message);
310 size_t appsrv_tx_data_req__get_packed_size
311 (const AppsrvTxDataReq *message);
312 size_t appsrv_tx_data_req__pack
313 (const AppsrvTxDataReq *message,
314 uint8_t *out);
315 size_t appsrv_tx_data_req__pack_to_buffer
316 (const AppsrvTxDataReq *message,
317 ProtobufCBuffer *buffer);
318 AppsrvTxDataReq *
319 appsrv_tx_data_req__unpack
320 (ProtobufCAllocator *allocator,
321 size_t len,
322 const uint8_t *data);
323 void appsrv_tx_data_req__free_unpacked
324 (AppsrvTxDataReq *message,
325 ProtobufCAllocator *allocator);
326 /* AppsrvTxDataCnf methods */
327 void appsrv_tx_data_cnf__init
328 (AppsrvTxDataCnf *message);
329 size_t appsrv_tx_data_cnf__get_packed_size
330 (const AppsrvTxDataCnf *message);
331 size_t appsrv_tx_data_cnf__pack
332 (const AppsrvTxDataCnf *message,
333 uint8_t *out);
334 size_t appsrv_tx_data_cnf__pack_to_buffer
335 (const AppsrvTxDataCnf *message,
336 ProtobufCBuffer *buffer);
337 AppsrvTxDataCnf *
338 appsrv_tx_data_cnf__unpack
339 (ProtobufCAllocator *allocator,
340 size_t len,
341 const uint8_t *data);
342 void appsrv_tx_data_cnf__free_unpacked
343 (AppsrvTxDataCnf *message,
344 ProtobufCAllocator *allocator);
345 /* AppsrvSetJoinPermitReq methods */
346 void appsrv_set_join_permit_req__init
347 (AppsrvSetJoinPermitReq *message);
348 size_t appsrv_set_join_permit_req__get_packed_size
349 (const AppsrvSetJoinPermitReq *message);
350 size_t appsrv_set_join_permit_req__pack
351 (const AppsrvSetJoinPermitReq *message,
352 uint8_t *out);
353 size_t appsrv_set_join_permit_req__pack_to_buffer
354 (const AppsrvSetJoinPermitReq *message,
355 ProtobufCBuffer *buffer);
356 AppsrvSetJoinPermitReq *
357 appsrv_set_join_permit_req__unpack
358 (ProtobufCAllocator *allocator,
359 size_t len,
360 const uint8_t *data);
361 void appsrv_set_join_permit_req__free_unpacked
362 (AppsrvSetJoinPermitReq *message,
363 ProtobufCAllocator *allocator);
364 /* AppsrvSetJoinPermitCnf methods */
365 void appsrv_set_join_permit_cnf__init
366 (AppsrvSetJoinPermitCnf *message);
367 size_t appsrv_set_join_permit_cnf__get_packed_size
368 (const AppsrvSetJoinPermitCnf *message);
369 size_t appsrv_set_join_permit_cnf__pack
370 (const AppsrvSetJoinPermitCnf *message,
371 uint8_t *out);
372 size_t appsrv_set_join_permit_cnf__pack_to_buffer
373 (const AppsrvSetJoinPermitCnf *message,
374 ProtobufCBuffer *buffer);
375 AppsrvSetJoinPermitCnf *
376 appsrv_set_join_permit_cnf__unpack
377 (ProtobufCAllocator *allocator,
378 size_t len,
379 const uint8_t *data);
380 void appsrv_set_join_permit_cnf__free_unpacked
381 (AppsrvSetJoinPermitCnf *message,
382 ProtobufCAllocator *allocator);
383 /* AppsrvDeviceUpdateInd methods */
384 void appsrv_device_update_ind__init
385 (AppsrvDeviceUpdateInd *message);
386 size_t appsrv_device_update_ind__get_packed_size
387 (const AppsrvDeviceUpdateInd *message);
388 size_t appsrv_device_update_ind__pack
389 (const AppsrvDeviceUpdateInd *message,
390 uint8_t *out);
391 size_t appsrv_device_update_ind__pack_to_buffer
392 (const AppsrvDeviceUpdateInd *message,
393 ProtobufCBuffer *buffer);
394 AppsrvDeviceUpdateInd *
395 appsrv_device_update_ind__unpack
396 (ProtobufCAllocator *allocator,
397 size_t len,
398 const uint8_t *data);
399 void appsrv_device_update_ind__free_unpacked
400 (AppsrvDeviceUpdateInd *message,
401 ProtobufCAllocator *allocator);
402 /* AppsrvDeviceNotActiveUpdateInd methods */
403 void appsrv_device_not_active_update_ind__init
404 (AppsrvDeviceNotActiveUpdateInd *message);
405 size_t appsrv_device_not_active_update_ind__get_packed_size
406 (const AppsrvDeviceNotActiveUpdateInd *message);
407 size_t appsrv_device_not_active_update_ind__pack
408 (const AppsrvDeviceNotActiveUpdateInd *message,
409 uint8_t *out);
410 size_t appsrv_device_not_active_update_ind__pack_to_buffer
411 (const AppsrvDeviceNotActiveUpdateInd *message,
412 ProtobufCBuffer *buffer);
413 AppsrvDeviceNotActiveUpdateInd *
414 appsrv_device_not_active_update_ind__unpack
415 (ProtobufCAllocator *allocator,
416 size_t len,
417 const uint8_t *data);
418 void appsrv_device_not_active_update_ind__free_unpacked
419 (AppsrvDeviceNotActiveUpdateInd *message,
420 ProtobufCAllocator *allocator);
421 /* AppsrvDeviceDataRxInd methods */
422 void appsrv_device_data_rx_ind__init
423 (AppsrvDeviceDataRxInd *message);
424 size_t appsrv_device_data_rx_ind__get_packed_size
425 (const AppsrvDeviceDataRxInd *message);
426 size_t appsrv_device_data_rx_ind__pack
427 (const AppsrvDeviceDataRxInd *message,
428 uint8_t *out);
429 size_t appsrv_device_data_rx_ind__pack_to_buffer
430 (const AppsrvDeviceDataRxInd *message,
431 ProtobufCBuffer *buffer);
432 AppsrvDeviceDataRxInd *
433 appsrv_device_data_rx_ind__unpack
434 (ProtobufCAllocator *allocator,
435 size_t len,
436 const uint8_t *data);
437 void appsrv_device_data_rx_ind__free_unpacked
438 (AppsrvDeviceDataRxInd *message,
439 ProtobufCAllocator *allocator);
440 /* AppsrvCollectorStateCngUpdateInd methods */
441 void appsrv_collector_state_cng_update_ind__init
442 (AppsrvCollectorStateCngUpdateInd *message);
443 size_t appsrv_collector_state_cng_update_ind__get_packed_size
444 (const AppsrvCollectorStateCngUpdateInd *message);
445 size_t appsrv_collector_state_cng_update_ind__pack
446 (const AppsrvCollectorStateCngUpdateInd *message,
447 uint8_t *out);
448 size_t appsrv_collector_state_cng_update_ind__pack_to_buffer
449 (const AppsrvCollectorStateCngUpdateInd *message,
450 ProtobufCBuffer *buffer);
451 AppsrvCollectorStateCngUpdateInd *
452 appsrv_collector_state_cng_update_ind__unpack
453 (ProtobufCAllocator *allocator,
454 size_t len,
455 const uint8_t *data);
456 void appsrv_collector_state_cng_update_ind__free_unpacked
457 (AppsrvCollectorStateCngUpdateInd *message,
458 ProtobufCAllocator *allocator);
459 /* AppsrvNwkParam methods */
460 void appsrv_nwk_param__init
461 (AppsrvNwkParam *message);
462 size_t appsrv_nwk_param__get_packed_size
463 (const AppsrvNwkParam *message);
464 size_t appsrv_nwk_param__pack
465 (const AppsrvNwkParam *message,
466 uint8_t *out);
467 size_t appsrv_nwk_param__pack_to_buffer
468 (const AppsrvNwkParam *message,
469 ProtobufCBuffer *buffer);
470 AppsrvNwkParam *
471 appsrv_nwk_param__unpack
472 (ProtobufCAllocator *allocator,
473 size_t len,
474 const uint8_t *data);
475 void appsrv_nwk_param__free_unpacked
476 (AppsrvNwkParam *message,
477 ProtobufCAllocator *allocator);
478 /* AppsrvNwkInfoUpdateInd methods */
479 void appsrv_nwk_info_update_ind__init
480 (AppsrvNwkInfoUpdateInd *message);
481 size_t appsrv_nwk_info_update_ind__get_packed_size
482 (const AppsrvNwkInfoUpdateInd *message);
483 size_t appsrv_nwk_info_update_ind__pack
484 (const AppsrvNwkInfoUpdateInd *message,
485 uint8_t *out);
486 size_t appsrv_nwk_info_update_ind__pack_to_buffer
487 (const AppsrvNwkInfoUpdateInd *message,
488 ProtobufCBuffer *buffer);
489 AppsrvNwkInfoUpdateInd *
490 appsrv_nwk_info_update_ind__unpack
491 (ProtobufCAllocator *allocator,
492 size_t len,
493 const uint8_t *data);
494 void appsrv_nwk_info_update_ind__free_unpacked
495 (AppsrvNwkInfoUpdateInd *message,
496 ProtobufCAllocator *allocator);
497 /* AppsrvGetNwkInfoReq methods */
498 void appsrv_get_nwk_info_req__init
499 (AppsrvGetNwkInfoReq *message);
500 size_t appsrv_get_nwk_info_req__get_packed_size
501 (const AppsrvGetNwkInfoReq *message);
502 size_t appsrv_get_nwk_info_req__pack
503 (const AppsrvGetNwkInfoReq *message,
504 uint8_t *out);
505 size_t appsrv_get_nwk_info_req__pack_to_buffer
506 (const AppsrvGetNwkInfoReq *message,
507 ProtobufCBuffer *buffer);
508 AppsrvGetNwkInfoReq *
509 appsrv_get_nwk_info_req__unpack
510 (ProtobufCAllocator *allocator,
511 size_t len,
512 const uint8_t *data);
513 void appsrv_get_nwk_info_req__free_unpacked
514 (AppsrvGetNwkInfoReq *message,
515 ProtobufCAllocator *allocator);
516 /* AppsrvGetNwkInfoCnf methods */
517 void appsrv_get_nwk_info_cnf__init
518 (AppsrvGetNwkInfoCnf *message);
519 size_t appsrv_get_nwk_info_cnf__get_packed_size
520 (const AppsrvGetNwkInfoCnf *message);
521 size_t appsrv_get_nwk_info_cnf__pack
522 (const AppsrvGetNwkInfoCnf *message,
523 uint8_t *out);
524 size_t appsrv_get_nwk_info_cnf__pack_to_buffer
525 (const AppsrvGetNwkInfoCnf *message,
526 ProtobufCBuffer *buffer);
527 AppsrvGetNwkInfoCnf *
528 appsrv_get_nwk_info_cnf__unpack
529 (ProtobufCAllocator *allocator,
530 size_t len,
531 const uint8_t *data);
532 void appsrv_get_nwk_info_cnf__free_unpacked
533 (AppsrvGetNwkInfoCnf *message,
534 ProtobufCAllocator *allocator);
535 /* AppsrvGetDeviceArrayReq methods */
536 void appsrv_get_device_array_req__init
537 (AppsrvGetDeviceArrayReq *message);
538 size_t appsrv_get_device_array_req__get_packed_size
539 (const AppsrvGetDeviceArrayReq *message);
540 size_t appsrv_get_device_array_req__pack
541 (const AppsrvGetDeviceArrayReq *message,
542 uint8_t *out);
543 size_t appsrv_get_device_array_req__pack_to_buffer
544 (const AppsrvGetDeviceArrayReq *message,
545 ProtobufCBuffer *buffer);
546 AppsrvGetDeviceArrayReq *
547 appsrv_get_device_array_req__unpack
548 (ProtobufCAllocator *allocator,
549 size_t len,
550 const uint8_t *data);
551 void appsrv_get_device_array_req__free_unpacked
552 (AppsrvGetDeviceArrayReq *message,
553 ProtobufCAllocator *allocator);
554 /* AppsrvGetDeviceArrayCnf methods */
555 void appsrv_get_device_array_cnf__init
556 (AppsrvGetDeviceArrayCnf *message);
557 size_t appsrv_get_device_array_cnf__get_packed_size
558 (const AppsrvGetDeviceArrayCnf *message);
559 size_t appsrv_get_device_array_cnf__pack
560 (const AppsrvGetDeviceArrayCnf *message,
561 uint8_t *out);
562 size_t appsrv_get_device_array_cnf__pack_to_buffer
563 (const AppsrvGetDeviceArrayCnf *message,
564 ProtobufCBuffer *buffer);
565 AppsrvGetDeviceArrayCnf *
566 appsrv_get_device_array_cnf__unpack
567 (ProtobufCAllocator *allocator,
568 size_t len,
569 const uint8_t *data);
570 void appsrv_get_device_array_cnf__free_unpacked
571 (AppsrvGetDeviceArrayCnf *message,
572 ProtobufCAllocator *allocator);
573 /* --- per-message closures --- */
575 typedef void (*AppsrvTxDataReq_Closure)
576 (const AppsrvTxDataReq *message,
577 void *closure_data);
578 typedef void (*AppsrvTxDataCnf_Closure)
579 (const AppsrvTxDataCnf *message,
580 void *closure_data);
581 typedef void (*AppsrvSetJoinPermitReq_Closure)
582 (const AppsrvSetJoinPermitReq *message,
583 void *closure_data);
584 typedef void (*AppsrvSetJoinPermitCnf_Closure)
585 (const AppsrvSetJoinPermitCnf *message,
586 void *closure_data);
587 typedef void (*AppsrvDeviceUpdateInd_Closure)
588 (const AppsrvDeviceUpdateInd *message,
589 void *closure_data);
590 typedef void (*AppsrvDeviceNotActiveUpdateInd_Closure)
591 (const AppsrvDeviceNotActiveUpdateInd *message,
592 void *closure_data);
593 typedef void (*AppsrvDeviceDataRxInd_Closure)
594 (const AppsrvDeviceDataRxInd *message,
595 void *closure_data);
596 typedef void (*AppsrvCollectorStateCngUpdateInd_Closure)
597 (const AppsrvCollectorStateCngUpdateInd *message,
598 void *closure_data);
599 typedef void (*AppsrvNwkParam_Closure)
600 (const AppsrvNwkParam *message,
601 void *closure_data);
602 typedef void (*AppsrvNwkInfoUpdateInd_Closure)
603 (const AppsrvNwkInfoUpdateInd *message,
604 void *closure_data);
605 typedef void (*AppsrvGetNwkInfoReq_Closure)
606 (const AppsrvGetNwkInfoReq *message,
607 void *closure_data);
608 typedef void (*AppsrvGetNwkInfoCnf_Closure)
609 (const AppsrvGetNwkInfoCnf *message,
610 void *closure_data);
611 typedef void (*AppsrvGetDeviceArrayReq_Closure)
612 (const AppsrvGetDeviceArrayReq *message,
613 void *closure_data);
614 typedef void (*AppsrvGetDeviceArrayCnf_Closure)
615 (const AppsrvGetDeviceArrayCnf *message,
616 void *closure_data);
618 /* --- services --- */
621 /* --- descriptors --- */
623 extern const ProtobufCEnumDescriptor timac_app_srv_sys_id__descriptor;
624 extern const ProtobufCEnumDescriptor appsrv__cmd_id__descriptor;
625 extern const ProtobufCEnumDescriptor nwk_mode__descriptor;
626 extern const ProtobufCMessageDescriptor appsrv_tx_data_req__descriptor;
627 extern const ProtobufCMessageDescriptor appsrv_tx_data_cnf__descriptor;
628 extern const ProtobufCMessageDescriptor appsrv_set_join_permit_req__descriptor;
629 extern const ProtobufCMessageDescriptor appsrv_set_join_permit_cnf__descriptor;
630 extern const ProtobufCMessageDescriptor appsrv_device_update_ind__descriptor;
631 extern const ProtobufCMessageDescriptor appsrv_device_not_active_update_ind__descriptor;
632 extern const ProtobufCMessageDescriptor appsrv_device_data_rx_ind__descriptor;
633 extern const ProtobufCMessageDescriptor appsrv_collector_state_cng_update_ind__descriptor;
634 extern const ProtobufCMessageDescriptor appsrv_nwk_param__descriptor;
635 extern const ProtobufCMessageDescriptor appsrv_nwk_info_update_ind__descriptor;
636 extern const ProtobufCMessageDescriptor appsrv_get_nwk_info_req__descriptor;
637 extern const ProtobufCMessageDescriptor appsrv_get_nwk_info_cnf__descriptor;
638 extern const ProtobufCMessageDescriptor appsrv_get_device_array_req__descriptor;
639 extern const ProtobufCMessageDescriptor appsrv_get_device_array_cnf__descriptor;
641 PROTOBUF_C__END_DECLS
644 #endif /* PROTOBUF_C_appsrv_2eproto__INCLUDED */