nmsg  0.15.1
dns.pb-c.h
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: nmsg/base/dns.proto */
3 
4 #ifndef PROTOBUF_C_nmsg_2fbase_2fdns_2eproto__INCLUDED
5 #define PROTOBUF_C_nmsg_2fbase_2fdns_2eproto__INCLUDED
6 
7 #include <protobuf-c/protobuf-c.h>
8 
9 PROTOBUF_C__BEGIN_DECLS
10 
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.
15 #endif
16 
17 
18 typedef struct _Nmsg__Base__Dns Nmsg__Base__Dns;
19 
20 
21 /* --- enums --- */
22 
23 
24 /* --- messages --- */
25 
26 struct _Nmsg__Base__Dns
27 {
28  ProtobufCMessage base;
29  protobuf_c_boolean has_section;
30  uint32_t section;
31  protobuf_c_boolean has_qname;
32  ProtobufCBinaryData qname;
33  protobuf_c_boolean has_qtype;
34  uint32_t qtype;
35  protobuf_c_boolean has_qclass;
36  uint32_t qclass;
37  protobuf_c_boolean has_rrname;
38  ProtobufCBinaryData rrname;
39  protobuf_c_boolean has_rrtype;
40  uint32_t rrtype;
41  protobuf_c_boolean has_rrclass;
42  uint32_t rrclass;
43  protobuf_c_boolean has_rrttl;
44  uint32_t rrttl;
45  size_t n_rdata;
46  ProtobufCBinaryData *rdata;
47 };
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 }
51 
52 
53 /* Nmsg__Base__Dns methods */
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,
60  uint8_t *out);
61 size_t nmsg__base__dns__pack_to_buffer
62  (const Nmsg__Base__Dns *message,
63  ProtobufCBuffer *buffer);
64 Nmsg__Base__Dns *
65  nmsg__base__dns__unpack
66  (ProtobufCAllocator *allocator,
67  size_t len,
68  const uint8_t *data);
69 void nmsg__base__dns__free_unpacked
70  (Nmsg__Base__Dns *message,
71  ProtobufCAllocator *allocator);
72 /* --- per-message closures --- */
73 
74 typedef void (*Nmsg__Base__Dns_Closure)
75  (const Nmsg__Base__Dns *message,
76  void *closure_data);
77 
78 /* --- services --- */
79 
80 
81 /* --- descriptors --- */
82 
83 extern const ProtobufCMessageDescriptor nmsg__base__dns__descriptor;
84 
85 PROTOBUF_C__END_DECLS
86 
87 
88 #endif /* PROTOBUF_C_nmsg_2fbase_2fdns_2eproto__INCLUDED */