4 #ifndef PROTOBUF_C_nmsg_2fnmsg_2eproto__INCLUDED
5 #define PROTOBUF_C_nmsg_2fnmsg_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 1004000 < 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.
30 ProtobufCMessage base;
33 size_t n_payload_crcs;
34 uint32_t *payload_crcs;
35 protobuf_c_boolean has_sequence;
37 protobuf_c_boolean has_sequence_id;
40 #define NMSG__NMSG__INIT \
41 { PROTOBUF_C_MESSAGE_INIT (&nmsg__nmsg__descriptor) \
42 , 0,NULL, 0,NULL, 0, 0, 0, 0 }
47 ProtobufCMessage base;
51 ProtobufCBinaryData fragment;
52 protobuf_c_boolean has_crc;
55 #define NMSG__NMSG_FRAGMENT__INIT \
56 { PROTOBUF_C_MESSAGE_INIT (&nmsg__nmsg_fragment__descriptor) \
57 , 0, 0, 0, {0,NULL}, 0, 0 }
62 ProtobufCMessage base;
67 protobuf_c_boolean has_payload;
68 ProtobufCBinaryData payload;
69 protobuf_c_boolean has_source;
71 protobuf_c_boolean has_operator_;
73 protobuf_c_boolean has_group;
76 #define NMSG__NMSG_PAYLOAD__INIT \
77 { PROTOBUF_C_MESSAGE_INIT (&nmsg__nmsg_payload__descriptor) \
78 , 0, 0, 0, 0, 0, {0,NULL}, 0, 0, 0, 0, 0, 0 }
84 size_t nmsg__nmsg__get_packed_size
86 size_t nmsg__nmsg__pack
89 size_t nmsg__nmsg__pack_to_buffer
91 ProtobufCBuffer *buffer);
94 (ProtobufCAllocator *allocator,
97 void nmsg__nmsg__free_unpacked
99 ProtobufCAllocator *allocator);
101 void nmsg__nmsg_fragment__init
103 size_t nmsg__nmsg_fragment__get_packed_size
105 size_t nmsg__nmsg_fragment__pack
108 size_t nmsg__nmsg_fragment__pack_to_buffer
110 ProtobufCBuffer *buffer);
112 nmsg__nmsg_fragment__unpack
113 (ProtobufCAllocator *allocator,
115 const uint8_t *data);
116 void nmsg__nmsg_fragment__free_unpacked
118 ProtobufCAllocator *allocator);
120 void nmsg__nmsg_payload__init
122 size_t nmsg__nmsg_payload__get_packed_size
124 size_t nmsg__nmsg_payload__pack
127 size_t nmsg__nmsg_payload__pack_to_buffer
129 ProtobufCBuffer *buffer);
131 nmsg__nmsg_payload__unpack
132 (ProtobufCAllocator *allocator,
134 const uint8_t *data);
135 void nmsg__nmsg_payload__free_unpacked
137 ProtobufCAllocator *allocator);
140 typedef void (*Nmsg__Nmsg_Closure)
143 typedef void (*Nmsg__NmsgFragment_Closure)
146 typedef void (*Nmsg__NmsgPayload_Closure)
155 extern const ProtobufCMessageDescriptor nmsg__nmsg__descriptor;
156 extern const ProtobufCMessageDescriptor nmsg__nmsg_fragment__descriptor;
157 extern const ProtobufCMessageDescriptor nmsg__nmsg_payload__descriptor;
159 PROTOBUF_C__END_DECLS