4 #ifndef PROTOBUF_C_nmsg_2fbase_2fencode_2eproto__INCLUDED
5 #define PROTOBUF_C_nmsg_2fbase_2fencode_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.
23 typedef enum _Nmsg__Base__Encode__EncodeType {
24 NMSG__BASE__ENCODE__ENCODE_TYPE__TEXT = 0,
25 NMSG__BASE__ENCODE__ENCODE_TYPE__JSON = 1,
26 NMSG__BASE__ENCODE__ENCODE_TYPE__YAML = 2,
27 NMSG__BASE__ENCODE__ENCODE_TYPE__MSGPACK = 3,
28 NMSG__BASE__ENCODE__ENCODE_TYPE__XML = 4
29 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__ENCODE__ENCODE_TYPE)
30 } Nmsg__Base__Encode__EncodeType;
36 ProtobufCMessage base;
37 Nmsg__Base__Encode__EncodeType type;
38 ProtobufCBinaryData payload;
40 #define NMSG__BASE__ENCODE__INIT \
41 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__encode__descriptor) \
42 , NMSG__BASE__ENCODE__ENCODE_TYPE__TEXT, {0,NULL} }
46 void nmsg__base__encode__init
48 size_t nmsg__base__encode__get_packed_size
50 size_t nmsg__base__encode__pack
53 size_t nmsg__base__encode__pack_to_buffer
55 ProtobufCBuffer *buffer);
57 nmsg__base__encode__unpack
58 (ProtobufCAllocator *allocator,
61 void nmsg__base__encode__free_unpacked
63 ProtobufCAllocator *allocator);
66 typedef void (*Nmsg__Base__Encode_Closure)
75 extern const ProtobufCMessageDescriptor nmsg__base__encode__descriptor;
76 extern const ProtobufCEnumDescriptor nmsg__base__encode__encode_type__descriptor;