4 #ifndef PROTOBUF_C_nmsg_2fbase_2fpacket_2eproto__INCLUDED
5 #define PROTOBUF_C_nmsg_2fbase_2fpacket_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 1000001 < 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__Packet Nmsg__Base__Packet;
23 typedef enum _Nmsg__Base__PacketType {
24 NMSG__BASE__PACKET_TYPE__IP = 1
25 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__PACKET_TYPE)
26 } Nmsg__Base__PacketType;
30 struct _Nmsg__Base__Packet
32 ProtobufCMessage base;
33 Nmsg__Base__PacketType payload_type;
34 ProtobufCBinaryData payload;
36 #define NMSG__BASE__PACKET__INIT \
37 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__packet__descriptor) \
42 void nmsg__base__packet__init
43 (Nmsg__Base__Packet *message);
44 size_t nmsg__base__packet__get_packed_size
45 (
const Nmsg__Base__Packet *message);
46 size_t nmsg__base__packet__pack
47 (
const Nmsg__Base__Packet *message,
49 size_t nmsg__base__packet__pack_to_buffer
50 (
const Nmsg__Base__Packet *message,
51 ProtobufCBuffer *buffer);
53 nmsg__base__packet__unpack
54 (ProtobufCAllocator *allocator,
57 void nmsg__base__packet__free_unpacked
58 (Nmsg__Base__Packet *message,
59 ProtobufCAllocator *allocator);
62 typedef void (*Nmsg__Base__Packet_Closure)
63 (
const Nmsg__Base__Packet *message,
71 extern const ProtobufCEnumDescriptor nmsg__base__packet_type__descriptor;
72 extern const ProtobufCMessageDescriptor nmsg__base__packet__descriptor;