5 #ifndef PROTOBUF_C__NO_DEPRECATED
6 #define PROTOBUF_C__NO_DEPRECATED
9 #include "nmsg/base/linkpair.pb-c.h"
10 void nmsg__base__linkpair__init
11 (Nmsg__Base__Linkpair *message)
13 static Nmsg__Base__Linkpair init_value = NMSG__BASE__LINKPAIR__INIT;
14 *message = init_value;
16 size_t nmsg__base__linkpair__get_packed_size
17 (
const Nmsg__Base__Linkpair *message)
19 assert(message->base.descriptor == &nmsg__base__linkpair__descriptor);
20 return protobuf_c_message_get_packed_size ((
const ProtobufCMessage*)(message));
22 size_t nmsg__base__linkpair__pack
23 (
const Nmsg__Base__Linkpair *message,
26 assert(message->base.descriptor == &nmsg__base__linkpair__descriptor);
27 return protobuf_c_message_pack ((
const ProtobufCMessage*)message, out);
29 size_t nmsg__base__linkpair__pack_to_buffer
30 (
const Nmsg__Base__Linkpair *message,
31 ProtobufCBuffer *buffer)
33 assert(message->base.descriptor == &nmsg__base__linkpair__descriptor);
34 return protobuf_c_message_pack_to_buffer ((
const ProtobufCMessage*)message, buffer);
36 Nmsg__Base__Linkpair *
37 nmsg__base__linkpair__unpack
38 (ProtobufCAllocator *allocator,
42 return (Nmsg__Base__Linkpair *)
43 protobuf_c_message_unpack (&nmsg__base__linkpair__descriptor,
44 allocator, len, data);
46 void nmsg__base__linkpair__free_unpacked
47 (Nmsg__Base__Linkpair *message,
48 ProtobufCAllocator *allocator)
50 assert(message->base.descriptor == &nmsg__base__linkpair__descriptor);
51 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
53 static const ProtobufCFieldDescriptor nmsg__base__linkpair__field_descriptors[4] =
58 PROTOBUF_C_LABEL_REQUIRED,
61 offsetof(Nmsg__Base__Linkpair,
type),
62 &nmsg__base__linktype__descriptor,
70 PROTOBUF_C_LABEL_REQUIRED,
71 PROTOBUF_C_TYPE_BYTES,
73 offsetof(Nmsg__Base__Linkpair, src),
82 PROTOBUF_C_LABEL_REQUIRED,
83 PROTOBUF_C_TYPE_BYTES,
85 offsetof(Nmsg__Base__Linkpair, dst),
94 PROTOBUF_C_LABEL_OPTIONAL,
95 PROTOBUF_C_TYPE_BYTES,
96 offsetof(Nmsg__Base__Linkpair, has_headers),
97 offsetof(Nmsg__Base__Linkpair, headers),
104 static const unsigned nmsg__base__linkpair__field_indices_by_name[] = {
110 static const ProtobufCIntRange nmsg__base__linkpair__number_ranges[2 + 1] =
116 const ProtobufCMessageDescriptor nmsg__base__linkpair__descriptor =
118 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
119 "nmsg.base.Linkpair",
121 "Nmsg__Base__Linkpair",
123 sizeof(Nmsg__Base__Linkpair),
125 nmsg__base__linkpair__field_descriptors,
126 nmsg__base__linkpair__field_indices_by_name,
127 2, nmsg__base__linkpair__number_ranges,
128 (ProtobufCMessageInit) nmsg__base__linkpair__init,
131 const ProtobufCEnumValue nmsg__base__linktype__enum_values_by_number[2] =
133 {
"anchor",
"NMSG__BASE__LINKTYPE__anchor", 0 },
134 {
"redirect",
"NMSG__BASE__LINKTYPE__redirect", 1 },
136 static const ProtobufCIntRange nmsg__base__linktype__value_ranges[] = {
139 const ProtobufCEnumValueIndex nmsg__base__linktype__enum_values_by_name[2] =
144 const ProtobufCEnumDescriptor nmsg__base__linktype__descriptor =
146 PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
147 "nmsg.base.Linktype",
149 "Nmsg__Base__Linktype",
152 nmsg__base__linktype__enum_values_by_number,
154 nmsg__base__linktype__enum_values_by_name,
156 nmsg__base__linktype__value_ranges,
nmsg_msgmod_type type
Module type.