nmsg 1.1.2
dnsqr.pb-c.h
1/* Generated by the protocol buffer compiler. DO NOT EDIT! */
2/* Generated from: nmsg/base/dnsqr.proto */
3
4#ifndef PROTOBUF_C_nmsg_2fbase_2fdnsqr_2eproto__INCLUDED
5#define PROTOBUF_C_nmsg_2fbase_2fdnsqr_2eproto__INCLUDED
6
7#include <protobuf-c/protobuf-c.h>
8
9PROTOBUF_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 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
19
20
21/* --- enums --- */
22
23typedef enum _Nmsg__Base__DnsQR__DnsQRType {
24 NMSG__BASE__DNS_QR__DNS_QRTYPE__UDP_INVALID = 0,
25 NMSG__BASE__DNS_QR__DNS_QRTYPE__UDP_QUERY_RESPONSE = 1,
26 NMSG__BASE__DNS_QR__DNS_QRTYPE__UDP_UNANSWERED_QUERY = 2,
27 NMSG__BASE__DNS_QR__DNS_QRTYPE__UDP_UNSOLICITED_RESPONSE = 3,
28 NMSG__BASE__DNS_QR__DNS_QRTYPE__TCP = 4,
29 NMSG__BASE__DNS_QR__DNS_QRTYPE__ICMP = 5,
30 NMSG__BASE__DNS_QR__DNS_QRTYPE__UDP_QUERY_ONLY = 6,
31 NMSG__BASE__DNS_QR__DNS_QRTYPE__UDP_RESPONSE_ONLY = 7
32 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__DNS_QR__DNS_QRTYPE)
33} Nmsg__Base__DnsQR__DnsQRType;
34typedef enum _Nmsg__Base__DnsQR__UdpChecksum {
35 NMSG__BASE__DNS_QR__UDP_CHECKSUM__ERROR = 0,
36 NMSG__BASE__DNS_QR__UDP_CHECKSUM__ABSENT = 1,
37 NMSG__BASE__DNS_QR__UDP_CHECKSUM__INCORRECT = 2,
38 NMSG__BASE__DNS_QR__UDP_CHECKSUM__CORRECT = 3
39 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(NMSG__BASE__DNS_QR__UDP_CHECKSUM)
40} Nmsg__Base__DnsQR__UdpChecksum;
41
42/* --- messages --- */
43
45{
46 ProtobufCMessage base;
47 Nmsg__Base__DnsQR__DnsQRType type;
48 ProtobufCBinaryData query_ip;
49 ProtobufCBinaryData response_ip;
50 uint32_t proto;
51 uint32_t query_port;
52 uint32_t response_port;
53 uint32_t id;
54 protobuf_c_boolean has_qname;
55 ProtobufCBinaryData qname;
56 protobuf_c_boolean has_qtype;
57 uint32_t qtype;
58 protobuf_c_boolean has_qclass;
59 uint32_t qclass;
60 protobuf_c_boolean has_rcode;
61 uint32_t rcode;
62 size_t n_query_packet;
63 ProtobufCBinaryData *query_packet;
64 size_t n_query_time_sec;
65 int64_t *query_time_sec;
66 size_t n_query_time_nsec;
67 int32_t *query_time_nsec;
68 size_t n_response_packet;
69 ProtobufCBinaryData *response_packet;
70 size_t n_response_time_sec;
71 int64_t *response_time_sec;
72 size_t n_response_time_nsec;
73 int32_t *response_time_nsec;
74 protobuf_c_boolean has_tcp;
75 ProtobufCBinaryData tcp;
76 protobuf_c_boolean has_icmp;
77 ProtobufCBinaryData icmp;
78 protobuf_c_boolean has_timeout;
79 double timeout;
80 protobuf_c_boolean has_udp_checksum;
81 Nmsg__Base__DnsQR__UdpChecksum udp_checksum;
82 protobuf_c_boolean has_resolver_address_zeroed;
83 protobuf_c_boolean resolver_address_zeroed;
84};
85#define NMSG__BASE__DNS_QR__INIT \
86 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__dns_qr__descriptor) \
87, NMSG__BASE__DNS_QR__DNS_QRTYPE__UDP_INVALID, {0,NULL}, {0,NULL}, 0, 0, 0, 0, 0, {0,NULL}, 0, 0, 0, 0, 0, 0, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0, {0,NULL}, 0, {0,NULL}, 0, 0, 0, NMSG__BASE__DNS_QR__UDP_CHECKSUM__ERROR, 0, 0 }
88
89
90/* Nmsg__Base__DnsQR methods */
91void nmsg__base__dns_qr__init
92 (Nmsg__Base__DnsQR *message);
93size_t nmsg__base__dns_qr__get_packed_size
94 (const Nmsg__Base__DnsQR *message);
95size_t nmsg__base__dns_qr__pack
96 (const Nmsg__Base__DnsQR *message,
97 uint8_t *out);
98size_t nmsg__base__dns_qr__pack_to_buffer
99 (const Nmsg__Base__DnsQR *message,
100 ProtobufCBuffer *buffer);
102 nmsg__base__dns_qr__unpack
103 (ProtobufCAllocator *allocator,
104 size_t len,
105 const uint8_t *data);
106void nmsg__base__dns_qr__free_unpacked
107 (Nmsg__Base__DnsQR *message,
108 ProtobufCAllocator *allocator);
109/* --- per-message closures --- */
110
111typedef void (*Nmsg__Base__DnsQR_Closure)
112 (const Nmsg__Base__DnsQR *message,
113 void *closure_data);
114
115/* --- services --- */
116
117
118/* --- descriptors --- */
119
120extern const ProtobufCMessageDescriptor nmsg__base__dns_qr__descriptor;
121extern const ProtobufCEnumDescriptor nmsg__base__dns_qr__dns_qrtype__descriptor;
122extern const ProtobufCEnumDescriptor nmsg__base__dns_qr__udp_checksum__descriptor;
123
124PROTOBUF_C__END_DECLS
125
126
127#endif /* PROTOBUF_C_nmsg_2fbase_2fdnsqr_2eproto__INCLUDED */