4 #ifndef PROTOBUF_C_nmsg_2fbase_2fdns_2eproto__INCLUDED 5 #define PROTOBUF_C_nmsg_2fbase_2fdns_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__Dns Nmsg__Base__Dns;
26 struct _Nmsg__Base__Dns
28 ProtobufCMessage base;
29 protobuf_c_boolean has_section;
31 protobuf_c_boolean has_qname;
32 ProtobufCBinaryData qname;
33 protobuf_c_boolean has_qtype;
35 protobuf_c_boolean has_qclass;
37 protobuf_c_boolean has_rrname;
38 ProtobufCBinaryData rrname;
39 protobuf_c_boolean has_rrtype;
41 protobuf_c_boolean has_rrclass;
43 protobuf_c_boolean has_rrttl;
46 ProtobufCBinaryData *rdata;
48 #define NMSG__BASE__DNS__INIT \ 49 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__dns__descriptor) \ 50 , 0, 0, 0, {0,NULL}, 0, 0, 0, 0, 0, {0,NULL}, 0, 0, 0, 0, 0, 0, 0,NULL } 54 void nmsg__base__dns__init
55 (Nmsg__Base__Dns *message);
56 size_t nmsg__base__dns__get_packed_size
57 (
const Nmsg__Base__Dns *message);
58 size_t nmsg__base__dns__pack
59 (
const Nmsg__Base__Dns *message,
61 size_t nmsg__base__dns__pack_to_buffer
62 (
const Nmsg__Base__Dns *message,
63 ProtobufCBuffer *buffer);
65 nmsg__base__dns__unpack
66 (ProtobufCAllocator *allocator,
69 void nmsg__base__dns__free_unpacked
70 (Nmsg__Base__Dns *message,
71 ProtobufCAllocator *allocator);
74 typedef void (*Nmsg__Base__Dns_Closure)
75 (
const Nmsg__Base__Dns *message,
83 extern const ProtobufCMessageDescriptor nmsg__base__dns__descriptor;