4 #ifndef PROTOBUF_C_nmsg_2fbase_2fpkt_2eproto__INCLUDED 5 #define PROTOBUF_C_nmsg_2fbase_2fpkt_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 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. 18 typedef struct _Nmsg__Base__Pkt Nmsg__Base__Pkt;
26 struct _Nmsg__Base__Pkt
28 ProtobufCMessage base;
29 ProtobufCBinaryData payload;
30 protobuf_c_boolean has_len_frame;
33 #define NMSG__BASE__PKT__INIT \ 34 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__pkt__descriptor) \ 39 void nmsg__base__pkt__init
40 (Nmsg__Base__Pkt *message);
41 size_t nmsg__base__pkt__get_packed_size
42 (
const Nmsg__Base__Pkt *message);
43 size_t nmsg__base__pkt__pack
44 (
const Nmsg__Base__Pkt *message,
46 size_t nmsg__base__pkt__pack_to_buffer
47 (
const Nmsg__Base__Pkt *message,
48 ProtobufCBuffer *buffer);
50 nmsg__base__pkt__unpack
51 (ProtobufCAllocator *allocator,
54 void nmsg__base__pkt__free_unpacked
55 (Nmsg__Base__Pkt *message,
56 ProtobufCAllocator *allocator);
59 typedef void (*Nmsg__Base__Pkt_Closure)
60 (
const Nmsg__Base__Pkt *message,
68 extern const ProtobufCMessageDescriptor nmsg__base__pkt__descriptor;