1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
|
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Generated from: ecs.proto */
#ifndef PROTOBUF_C_ecs_2eproto__INCLUDED
#define PROTOBUF_C_ecs_2eproto__INCLUDED
#include <protobuf-c/protobuf-c.h>
PROTOBUF_C__BEGIN_DECLS
#if PROTOBUF_C_VERSION_NUMBER < 1000000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1002001 < PROTOBUF_C_MIN_COMPILER_VERSION
# 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.
#endif
#include "ecs_ids.pb-c.h"
typedef struct _ECS__CheckVersionReq ECS__CheckVersionReq;
typedef struct _ECS__CheckVersionAns ECS__CheckVersionAns;
typedef struct _ECS__KeepAliveReq ECS__KeepAliveReq;
typedef struct _ECS__KeepAliveAns ECS__KeepAliveAns;
typedef struct _ECS__InjectorReq ECS__InjectorReq;
typedef struct _ECS__InjectorAns ECS__InjectorAns;
typedef struct _ECS__InjectorNtf ECS__InjectorNtf;
typedef struct _ECS__DeviceReq ECS__DeviceReq;
typedef struct _ECS__DeviceAns ECS__DeviceAns;
typedef struct _ECS__DeviceNtf ECS__DeviceNtf;
typedef struct _ECS__MonitorReq ECS__MonitorReq;
typedef struct _ECS__MonitorAns ECS__MonitorAns;
typedef struct _ECS__MonitorNtf ECS__MonitorNtf;
typedef struct _ECS__NfcReq ECS__NfcReq;
typedef struct _ECS__NfcNtf ECS__NfcNtf;
typedef struct _ECS__EventCastReq ECS__EventCastReq;
typedef struct _ECS__EventCastAns ECS__EventCastAns;
typedef struct _ECS__EventCastNtf ECS__EventCastNtf;
typedef struct _ECS__Master ECS__Master;
/* --- enums --- */
/* --- messages --- */
struct _ECS__CheckVersionReq
{
ProtobufCMessage base;
char *version_str;
};
#define ECS__CHECK_VERSION_REQ__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__check_version_req__descriptor) \
, NULL }
struct _ECS__CheckVersionAns
{
ProtobufCMessage base;
int32_t errcode;
char *version_str;
};
#define ECS__CHECK_VERSION_ANS__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__check_version_ans__descriptor) \
, 0, NULL }
struct _ECS__KeepAliveReq
{
ProtobufCMessage base;
char *time_str;
};
#define ECS__KEEP_ALIVE_REQ__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__keep_alive_req__descriptor) \
, NULL }
struct _ECS__KeepAliveAns
{
ProtobufCMessage base;
char *time_str;
};
#define ECS__KEEP_ALIVE_ANS__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__keep_alive_ans__descriptor) \
, NULL }
struct _ECS__InjectorReq
{
ProtobufCMessage base;
char *category;
int32_t length;
int32_t group;
int32_t action;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__INJECTOR_REQ__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__injector_req__descriptor) \
, NULL, 0, 0, 0, 0,{0,NULL} }
struct _ECS__InjectorAns
{
ProtobufCMessage base;
int32_t errcode;
char *errstr;
char *category;
};
#define ECS__INJECTOR_ANS__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__injector_ans__descriptor) \
, 0, NULL, NULL }
struct _ECS__InjectorNtf
{
ProtobufCMessage base;
char *category;
int32_t length;
int32_t group;
int32_t action;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__INJECTOR_NTF__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__injector_ntf__descriptor) \
, NULL, 0, 0, 0, 0,{0,NULL} }
struct _ECS__DeviceReq
{
ProtobufCMessage base;
char *category;
int32_t length;
int32_t group;
int32_t action;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__DEVICE_REQ__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__device_req__descriptor) \
, NULL, 0, 0, 0, 0,{0,NULL} }
struct _ECS__DeviceAns
{
ProtobufCMessage base;
int32_t errcode;
char *errstr;
char *category;
int32_t length;
int32_t group;
int32_t action;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__DEVICE_ANS__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__device_ans__descriptor) \
, 0, NULL, NULL, 0, 0, 0, 0,{0,NULL} }
struct _ECS__DeviceNtf
{
ProtobufCMessage base;
char *category;
int32_t length;
int32_t group;
int32_t action;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__DEVICE_NTF__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__device_ntf__descriptor) \
, NULL, 0, 0, 0, 0,{0,NULL} }
struct _ECS__MonitorReq
{
ProtobufCMessage base;
char *command;
};
#define ECS__MONITOR_REQ__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__monitor_req__descriptor) \
, NULL }
struct _ECS__MonitorAns
{
ProtobufCMessage base;
int32_t errcode;
char *errmsg;
char *command;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__MONITOR_ANS__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__monitor_ans__descriptor) \
, 0, NULL, NULL, 0,{0,NULL} }
struct _ECS__MonitorNtf
{
ProtobufCMessage base;
char *command;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__MONITOR_NTF__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__monitor_ntf__descriptor) \
, NULL, 0,{0,NULL} }
struct _ECS__NfcReq
{
ProtobufCMessage base;
char *category;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__NFC_REQ__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__nfc_req__descriptor) \
, NULL, 0,{0,NULL} }
struct _ECS__NfcNtf
{
ProtobufCMessage base;
char *category;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__NFC_NTF__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__nfc_ntf__descriptor) \
, NULL, 0,{0,NULL} }
struct _ECS__EventCastReq
{
ProtobufCMessage base;
char *category;
int32_t length;
int32_t group;
int32_t action;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__EVENT_CAST_REQ__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__event_cast_req__descriptor) \
, NULL, 0, 0, 0, 0,{0,NULL} }
struct _ECS__EventCastAns
{
ProtobufCMessage base;
int32_t errcode;
char *errstr;
char *category;
int32_t length;
int32_t group;
int32_t action;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__EVENT_CAST_ANS__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__event_cast_ans__descriptor) \
, 0, NULL, NULL, 0, 0, 0, 0,{0,NULL} }
struct _ECS__EventCastNtf
{
ProtobufCMessage base;
char *category;
int32_t length;
int32_t group;
int32_t action;
protobuf_c_boolean has_data;
ProtobufCBinaryData data;
};
#define ECS__EVENT_CAST_NTF__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__event_cast_ntf__descriptor) \
, NULL, 0, 0, 0, 0,{0,NULL} }
struct _ECS__Master
{
ProtobufCMessage base;
ECS__MasterType type;
ECS__CheckVersionReq *checkversion_req;
ECS__CheckVersionAns *checkversion_ans;
ECS__KeepAliveReq *keepalive_req;
ECS__KeepAliveAns *keepalive_ans;
ECS__InjectorReq *injector_req;
ECS__InjectorAns *injector_ans;
ECS__InjectorNtf *injector_ntf;
ECS__DeviceReq *device_req;
ECS__DeviceAns *device_ans;
ECS__DeviceNtf *device_ntf;
ECS__MonitorReq *monitor_req;
ECS__MonitorAns *monitor_ans;
ECS__MonitorNtf *monitor_ntf;
/*
* Extensions 101 to 150;
*/
ECS__NfcReq *nfc_req;
ECS__NfcNtf *nfc_ntf;
ECS__EventCastReq *eventcast_req;
ECS__EventCastAns *eventcast_ans;
ECS__EventCastNtf *eventcast_ntf;
};
#define ECS__MASTER__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&ecs__master__descriptor) \
, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
/* ECS__CheckVersionReq methods */
void ecs__check_version_req__init
(ECS__CheckVersionReq *message);
size_t ecs__check_version_req__get_packed_size
(const ECS__CheckVersionReq *message);
size_t ecs__check_version_req__pack
(const ECS__CheckVersionReq *message,
uint8_t *out);
size_t ecs__check_version_req__pack_to_buffer
(const ECS__CheckVersionReq *message,
ProtobufCBuffer *buffer);
ECS__CheckVersionReq *
ecs__check_version_req__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__check_version_req__free_unpacked
(ECS__CheckVersionReq *message,
ProtobufCAllocator *allocator);
/* ECS__CheckVersionAns methods */
void ecs__check_version_ans__init
(ECS__CheckVersionAns *message);
size_t ecs__check_version_ans__get_packed_size
(const ECS__CheckVersionAns *message);
size_t ecs__check_version_ans__pack
(const ECS__CheckVersionAns *message,
uint8_t *out);
size_t ecs__check_version_ans__pack_to_buffer
(const ECS__CheckVersionAns *message,
ProtobufCBuffer *buffer);
ECS__CheckVersionAns *
ecs__check_version_ans__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__check_version_ans__free_unpacked
(ECS__CheckVersionAns *message,
ProtobufCAllocator *allocator);
/* ECS__KeepAliveReq methods */
void ecs__keep_alive_req__init
(ECS__KeepAliveReq *message);
size_t ecs__keep_alive_req__get_packed_size
(const ECS__KeepAliveReq *message);
size_t ecs__keep_alive_req__pack
(const ECS__KeepAliveReq *message,
uint8_t *out);
size_t ecs__keep_alive_req__pack_to_buffer
(const ECS__KeepAliveReq *message,
ProtobufCBuffer *buffer);
ECS__KeepAliveReq *
ecs__keep_alive_req__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__keep_alive_req__free_unpacked
(ECS__KeepAliveReq *message,
ProtobufCAllocator *allocator);
/* ECS__KeepAliveAns methods */
void ecs__keep_alive_ans__init
(ECS__KeepAliveAns *message);
size_t ecs__keep_alive_ans__get_packed_size
(const ECS__KeepAliveAns *message);
size_t ecs__keep_alive_ans__pack
(const ECS__KeepAliveAns *message,
uint8_t *out);
size_t ecs__keep_alive_ans__pack_to_buffer
(const ECS__KeepAliveAns *message,
ProtobufCBuffer *buffer);
ECS__KeepAliveAns *
ecs__keep_alive_ans__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__keep_alive_ans__free_unpacked
(ECS__KeepAliveAns *message,
ProtobufCAllocator *allocator);
/* ECS__InjectorReq methods */
void ecs__injector_req__init
(ECS__InjectorReq *message);
size_t ecs__injector_req__get_packed_size
(const ECS__InjectorReq *message);
size_t ecs__injector_req__pack
(const ECS__InjectorReq *message,
uint8_t *out);
size_t ecs__injector_req__pack_to_buffer
(const ECS__InjectorReq *message,
ProtobufCBuffer *buffer);
ECS__InjectorReq *
ecs__injector_req__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__injector_req__free_unpacked
(ECS__InjectorReq *message,
ProtobufCAllocator *allocator);
/* ECS__InjectorAns methods */
void ecs__injector_ans__init
(ECS__InjectorAns *message);
size_t ecs__injector_ans__get_packed_size
(const ECS__InjectorAns *message);
size_t ecs__injector_ans__pack
(const ECS__InjectorAns *message,
uint8_t *out);
size_t ecs__injector_ans__pack_to_buffer
(const ECS__InjectorAns *message,
ProtobufCBuffer *buffer);
ECS__InjectorAns *
ecs__injector_ans__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__injector_ans__free_unpacked
(ECS__InjectorAns *message,
ProtobufCAllocator *allocator);
/* ECS__InjectorNtf methods */
void ecs__injector_ntf__init
(ECS__InjectorNtf *message);
size_t ecs__injector_ntf__get_packed_size
(const ECS__InjectorNtf *message);
size_t ecs__injector_ntf__pack
(const ECS__InjectorNtf *message,
uint8_t *out);
size_t ecs__injector_ntf__pack_to_buffer
(const ECS__InjectorNtf *message,
ProtobufCBuffer *buffer);
ECS__InjectorNtf *
ecs__injector_ntf__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__injector_ntf__free_unpacked
(ECS__InjectorNtf *message,
ProtobufCAllocator *allocator);
/* ECS__DeviceReq methods */
void ecs__device_req__init
(ECS__DeviceReq *message);
size_t ecs__device_req__get_packed_size
(const ECS__DeviceReq *message);
size_t ecs__device_req__pack
(const ECS__DeviceReq *message,
uint8_t *out);
size_t ecs__device_req__pack_to_buffer
(const ECS__DeviceReq *message,
ProtobufCBuffer *buffer);
ECS__DeviceReq *
ecs__device_req__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__device_req__free_unpacked
(ECS__DeviceReq *message,
ProtobufCAllocator *allocator);
/* ECS__DeviceAns methods */
void ecs__device_ans__init
(ECS__DeviceAns *message);
size_t ecs__device_ans__get_packed_size
(const ECS__DeviceAns *message);
size_t ecs__device_ans__pack
(const ECS__DeviceAns *message,
uint8_t *out);
size_t ecs__device_ans__pack_to_buffer
(const ECS__DeviceAns *message,
ProtobufCBuffer *buffer);
ECS__DeviceAns *
ecs__device_ans__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__device_ans__free_unpacked
(ECS__DeviceAns *message,
ProtobufCAllocator *allocator);
/* ECS__DeviceNtf methods */
void ecs__device_ntf__init
(ECS__DeviceNtf *message);
size_t ecs__device_ntf__get_packed_size
(const ECS__DeviceNtf *message);
size_t ecs__device_ntf__pack
(const ECS__DeviceNtf *message,
uint8_t *out);
size_t ecs__device_ntf__pack_to_buffer
(const ECS__DeviceNtf *message,
ProtobufCBuffer *buffer);
ECS__DeviceNtf *
ecs__device_ntf__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__device_ntf__free_unpacked
(ECS__DeviceNtf *message,
ProtobufCAllocator *allocator);
/* ECS__MonitorReq methods */
void ecs__monitor_req__init
(ECS__MonitorReq *message);
size_t ecs__monitor_req__get_packed_size
(const ECS__MonitorReq *message);
size_t ecs__monitor_req__pack
(const ECS__MonitorReq *message,
uint8_t *out);
size_t ecs__monitor_req__pack_to_buffer
(const ECS__MonitorReq *message,
ProtobufCBuffer *buffer);
ECS__MonitorReq *
ecs__monitor_req__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__monitor_req__free_unpacked
(ECS__MonitorReq *message,
ProtobufCAllocator *allocator);
/* ECS__MonitorAns methods */
void ecs__monitor_ans__init
(ECS__MonitorAns *message);
size_t ecs__monitor_ans__get_packed_size
(const ECS__MonitorAns *message);
size_t ecs__monitor_ans__pack
(const ECS__MonitorAns *message,
uint8_t *out);
size_t ecs__monitor_ans__pack_to_buffer
(const ECS__MonitorAns *message,
ProtobufCBuffer *buffer);
ECS__MonitorAns *
ecs__monitor_ans__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__monitor_ans__free_unpacked
(ECS__MonitorAns *message,
ProtobufCAllocator *allocator);
/* ECS__MonitorNtf methods */
void ecs__monitor_ntf__init
(ECS__MonitorNtf *message);
size_t ecs__monitor_ntf__get_packed_size
(const ECS__MonitorNtf *message);
size_t ecs__monitor_ntf__pack
(const ECS__MonitorNtf *message,
uint8_t *out);
size_t ecs__monitor_ntf__pack_to_buffer
(const ECS__MonitorNtf *message,
ProtobufCBuffer *buffer);
ECS__MonitorNtf *
ecs__monitor_ntf__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__monitor_ntf__free_unpacked
(ECS__MonitorNtf *message,
ProtobufCAllocator *allocator);
/* ECS__NfcReq methods */
void ecs__nfc_req__init
(ECS__NfcReq *message);
size_t ecs__nfc_req__get_packed_size
(const ECS__NfcReq *message);
size_t ecs__nfc_req__pack
(const ECS__NfcReq *message,
uint8_t *out);
size_t ecs__nfc_req__pack_to_buffer
(const ECS__NfcReq *message,
ProtobufCBuffer *buffer);
ECS__NfcReq *
ecs__nfc_req__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__nfc_req__free_unpacked
(ECS__NfcReq *message,
ProtobufCAllocator *allocator);
/* ECS__NfcNtf methods */
void ecs__nfc_ntf__init
(ECS__NfcNtf *message);
size_t ecs__nfc_ntf__get_packed_size
(const ECS__NfcNtf *message);
size_t ecs__nfc_ntf__pack
(const ECS__NfcNtf *message,
uint8_t *out);
size_t ecs__nfc_ntf__pack_to_buffer
(const ECS__NfcNtf *message,
ProtobufCBuffer *buffer);
ECS__NfcNtf *
ecs__nfc_ntf__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__nfc_ntf__free_unpacked
(ECS__NfcNtf *message,
ProtobufCAllocator *allocator);
/* ECS__EventCastReq methods */
void ecs__event_cast_req__init
(ECS__EventCastReq *message);
size_t ecs__event_cast_req__get_packed_size
(const ECS__EventCastReq *message);
size_t ecs__event_cast_req__pack
(const ECS__EventCastReq *message,
uint8_t *out);
size_t ecs__event_cast_req__pack_to_buffer
(const ECS__EventCastReq *message,
ProtobufCBuffer *buffer);
ECS__EventCastReq *
ecs__event_cast_req__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__event_cast_req__free_unpacked
(ECS__EventCastReq *message,
ProtobufCAllocator *allocator);
/* ECS__EventCastAns methods */
void ecs__event_cast_ans__init
(ECS__EventCastAns *message);
size_t ecs__event_cast_ans__get_packed_size
(const ECS__EventCastAns *message);
size_t ecs__event_cast_ans__pack
(const ECS__EventCastAns *message,
uint8_t *out);
size_t ecs__event_cast_ans__pack_to_buffer
(const ECS__EventCastAns *message,
ProtobufCBuffer *buffer);
ECS__EventCastAns *
ecs__event_cast_ans__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__event_cast_ans__free_unpacked
(ECS__EventCastAns *message,
ProtobufCAllocator *allocator);
/* ECS__EventCastNtf methods */
void ecs__event_cast_ntf__init
(ECS__EventCastNtf *message);
size_t ecs__event_cast_ntf__get_packed_size
(const ECS__EventCastNtf *message);
size_t ecs__event_cast_ntf__pack
(const ECS__EventCastNtf *message,
uint8_t *out);
size_t ecs__event_cast_ntf__pack_to_buffer
(const ECS__EventCastNtf *message,
ProtobufCBuffer *buffer);
ECS__EventCastNtf *
ecs__event_cast_ntf__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__event_cast_ntf__free_unpacked
(ECS__EventCastNtf *message,
ProtobufCAllocator *allocator);
/* ECS__Master methods */
void ecs__master__init
(ECS__Master *message);
size_t ecs__master__get_packed_size
(const ECS__Master *message);
size_t ecs__master__pack
(const ECS__Master *message,
uint8_t *out);
size_t ecs__master__pack_to_buffer
(const ECS__Master *message,
ProtobufCBuffer *buffer);
ECS__Master *
ecs__master__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void ecs__master__free_unpacked
(ECS__Master *message,
ProtobufCAllocator *allocator);
/* --- per-message closures --- */
typedef void (*ECS__CheckVersionReq_Closure)
(const ECS__CheckVersionReq *message,
void *closure_data);
typedef void (*ECS__CheckVersionAns_Closure)
(const ECS__CheckVersionAns *message,
void *closure_data);
typedef void (*ECS__KeepAliveReq_Closure)
(const ECS__KeepAliveReq *message,
void *closure_data);
typedef void (*ECS__KeepAliveAns_Closure)
(const ECS__KeepAliveAns *message,
void *closure_data);
typedef void (*ECS__InjectorReq_Closure)
(const ECS__InjectorReq *message,
void *closure_data);
typedef void (*ECS__InjectorAns_Closure)
(const ECS__InjectorAns *message,
void *closure_data);
typedef void (*ECS__InjectorNtf_Closure)
(const ECS__InjectorNtf *message,
void *closure_data);
typedef void (*ECS__DeviceReq_Closure)
(const ECS__DeviceReq *message,
void *closure_data);
typedef void (*ECS__DeviceAns_Closure)
(const ECS__DeviceAns *message,
void *closure_data);
typedef void (*ECS__DeviceNtf_Closure)
(const ECS__DeviceNtf *message,
void *closure_data);
typedef void (*ECS__MonitorReq_Closure)
(const ECS__MonitorReq *message,
void *closure_data);
typedef void (*ECS__MonitorAns_Closure)
(const ECS__MonitorAns *message,
void *closure_data);
typedef void (*ECS__MonitorNtf_Closure)
(const ECS__MonitorNtf *message,
void *closure_data);
typedef void (*ECS__NfcReq_Closure)
(const ECS__NfcReq *message,
void *closure_data);
typedef void (*ECS__NfcNtf_Closure)
(const ECS__NfcNtf *message,
void *closure_data);
typedef void (*ECS__EventCastReq_Closure)
(const ECS__EventCastReq *message,
void *closure_data);
typedef void (*ECS__EventCastAns_Closure)
(const ECS__EventCastAns *message,
void *closure_data);
typedef void (*ECS__EventCastNtf_Closure)
(const ECS__EventCastNtf *message,
void *closure_data);
typedef void (*ECS__Master_Closure)
(const ECS__Master *message,
void *closure_data);
/* --- services --- */
/* --- descriptors --- */
extern const ProtobufCMessageDescriptor ecs__check_version_req__descriptor;
extern const ProtobufCMessageDescriptor ecs__check_version_ans__descriptor;
extern const ProtobufCMessageDescriptor ecs__keep_alive_req__descriptor;
extern const ProtobufCMessageDescriptor ecs__keep_alive_ans__descriptor;
extern const ProtobufCMessageDescriptor ecs__injector_req__descriptor;
extern const ProtobufCMessageDescriptor ecs__injector_ans__descriptor;
extern const ProtobufCMessageDescriptor ecs__injector_ntf__descriptor;
extern const ProtobufCMessageDescriptor ecs__device_req__descriptor;
extern const ProtobufCMessageDescriptor ecs__device_ans__descriptor;
extern const ProtobufCMessageDescriptor ecs__device_ntf__descriptor;
extern const ProtobufCMessageDescriptor ecs__monitor_req__descriptor;
extern const ProtobufCMessageDescriptor ecs__monitor_ans__descriptor;
extern const ProtobufCMessageDescriptor ecs__monitor_ntf__descriptor;
extern const ProtobufCMessageDescriptor ecs__nfc_req__descriptor;
extern const ProtobufCMessageDescriptor ecs__nfc_ntf__descriptor;
extern const ProtobufCMessageDescriptor ecs__event_cast_req__descriptor;
extern const ProtobufCMessageDescriptor ecs__event_cast_ans__descriptor;
extern const ProtobufCMessageDescriptor ecs__event_cast_ntf__descriptor;
extern const ProtobufCMessageDescriptor ecs__master__descriptor;
PROTOBUF_C__END_DECLS
#endif /* PROTOBUF_C_ecs_2eproto__INCLUDED */
|