4 #ifndef PROTOBUF_C_nmsg_2fbase_2flinkpair_2eproto__INCLUDED 5 #define PROTOBUF_C_nmsg_2fbase_2flinkpair_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 1002001 < 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__Linkpair Nmsg__Base__Linkpair;
23 typedef enum _Nmsg__Base__Linkpair__Linktype {
24 NMSG__BASE__LINKPAIR__LINKTYPE__anchor = 0,
25 NMSG__BASE__LINKPAIR__LINKTYPE__redirect = 1
26 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__LINKPAIR__LINKTYPE)
27 } Nmsg__Base__Linkpair__Linktype;
31 struct _Nmsg__Base__Linkpair
33 ProtobufCMessage base;
34 Nmsg__Base__Linkpair__Linktype type;
35 ProtobufCBinaryData src;
36 ProtobufCBinaryData dst;
37 protobuf_c_boolean has_headers;
38 ProtobufCBinaryData headers;
40 #define NMSG__BASE__LINKPAIR__INIT \ 41 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__linkpair__descriptor) \ 42 , 0, {0,NULL}, {0,NULL}, 0,{0,NULL} } 46 void nmsg__base__linkpair__init
47 (Nmsg__Base__Linkpair *message);
48 size_t nmsg__base__linkpair__get_packed_size
49 (
const Nmsg__Base__Linkpair *message);
50 size_t nmsg__base__linkpair__pack
51 (
const Nmsg__Base__Linkpair *message,
53 size_t nmsg__base__linkpair__pack_to_buffer
54 (
const Nmsg__Base__Linkpair *message,
55 ProtobufCBuffer *buffer);
56 Nmsg__Base__Linkpair *
57 nmsg__base__linkpair__unpack
58 (ProtobufCAllocator *allocator,
61 void nmsg__base__linkpair__free_unpacked
62 (Nmsg__Base__Linkpair *message,
63 ProtobufCAllocator *allocator);
66 typedef void (*Nmsg__Base__Linkpair_Closure)
67 (
const Nmsg__Base__Linkpair *message,
75 extern const ProtobufCMessageDescriptor nmsg__base__linkpair__descriptor;
76 extern const ProtobufCEnumDescriptor nmsg__base__linkpair__linktype__descriptor;