EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
dns.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: dns.proto */
3 
4 #ifndef PROTOBUF_C_dns_2eproto__INCLUDED
5 #define PROTOBUF_C_dns_2eproto__INCLUDED
6 
7 #include <protobuf-c/protobuf-c.h>
8 
9 PROTOBUF_C__BEGIN_DECLS
10 
11 #if PROTOBUF_C_VERSION_NUMBER < 1003000
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 1004001 < 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 typedef struct Dns__DnsSchema Dns__DnsSchema;
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet id
27  */
28  char *id;
29  /*
30  * Packet Transaction ID
31  */
32  uint32_t tid;
33  /*
34  * Packet Flags
35  */
36  uint32_t flags;
37  /*
38  * Packet Questions
39  */
40  uint32_t nqueries;
41  /*
42  * Packet Answers
43  */
44  uint32_t nanswers;
45  /*
46  * Packet Authority PRs
47  */
48  uint32_t nauth;
49  /*
50  * Packet Other PRs
51  */
52  uint32_t nother;
53  /*
54  * Packet question name
55  */
56  char *qname;
57 };
58 #define DNS__DNS_SCHEMA__INIT \
59  { \
60  PROTOBUF_C_MESSAGE_INIT(&dns__dns_schema__descriptor) \
61  , (char *)protobuf_c_empty_string, 0, 0, 0, 0, 0, 0, \
62  (char *)protobuf_c_empty_string \
63  }
64 
65 /* Dns__DnsSchema methods */
68 size_t dns__dns_schema__pack(const Dns__DnsSchema *message, uint8_t *out);
70  ProtobufCBuffer *buffer);
71 Dns__DnsSchema *dns__dns_schema__unpack(ProtobufCAllocator *allocator,
72  size_t len, const uint8_t *data);
74  ProtobufCAllocator *allocator);
75 /* --- per-message closures --- */
76 
77 typedef void (*Dns__DnsSchema_Closure)(const Dns__DnsSchema *message,
78  void *closure_data);
79 
80 /* --- services --- */
81 
82 /* --- descriptors --- */
83 
84 extern const ProtobufCMessageDescriptor dns__dns_schema__descriptor;
85 
86 PROTOBUF_C__END_DECLS
87 
88 #endif /* PROTOBUF_C_dns_2eproto__INCLUDED */
const ProtobufCMessageDescriptor dns__dns_schema__descriptor
Definition: dns.pb-c.c:105
void(* Dns__DnsSchema_Closure)(const Dns__DnsSchema *message, void *closure_data)
Definition: dns.pb-c.h:77
size_t dns__dns_schema__pack(const Dns__DnsSchema *message, uint8_t *out)
Definition: dns.pb-c.c:19
Dns__DnsSchema * dns__dns_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: dns.pb-c.c:29
size_t dns__dns_schema__get_packed_size(const Dns__DnsSchema *message)
Definition: dns.pb-c.c:14
void dns__dns_schema__free_unpacked(Dns__DnsSchema *message, ProtobufCAllocator *allocator)
Definition: dns.pb-c.c:34
void dns__dns_schema__init(Dns__DnsSchema *message)
Definition: dns.pb-c.c:10
size_t dns__dns_schema__pack_to_buffer(const Dns__DnsSchema *message, ProtobufCBuffer *buffer)
Definition: dns.pb-c.c:23
Definition: dns.pb-c.h:23
uint32_t nqueries
Definition: dns.pb-c.h:40
uint32_t tid
Definition: dns.pb-c.h:32
uint32_t nanswers
Definition: dns.pb-c.h:44
char * qname
Definition: dns.pb-c.h:56
uint32_t nother
Definition: dns.pb-c.h:52
uint32_t nauth
Definition: dns.pb-c.h:48
char * id
Definition: dns.pb-c.h:28
uint32_t flags
Definition: dns.pb-c.h:36
ProtobufCMessage base
Definition: dns.pb-c.h:24