nmsg  0.9.0
ipconn.pb-c.h
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: nmsg/base/ipconn.proto */
3 
4 #ifndef PROTOBUF_C_nmsg_2fbase_2fipconn_2eproto__INCLUDED
5 #define PROTOBUF_C_nmsg_2fbase_2fipconn_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 1000001 < 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__IPConn Nmsg__Base__IPConn;
19 
20 
21 /* --- enums --- */
22 
23 
24 /* --- messages --- */
25 
26 struct _Nmsg__Base__IPConn
27 {
28  ProtobufCMessage base;
29  protobuf_c_boolean has_proto;
30  uint32_t proto;
31  protobuf_c_boolean has_srcip;
32  ProtobufCBinaryData srcip;
33  protobuf_c_boolean has_srcport;
34  uint32_t srcport;
35  protobuf_c_boolean has_dstip;
36  ProtobufCBinaryData dstip;
37  protobuf_c_boolean has_dstport;
38  uint32_t dstport;
39 };
40 #define NMSG__BASE__IPCONN__INIT \
41  { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__ipconn__descriptor) \
42  , 0,0, 0,{0,NULL}, 0,0, 0,{0,NULL}, 0,0 }
43 
44 
45 /* Nmsg__Base__IPConn methods */
46 void nmsg__base__ipconn__init
47  (Nmsg__Base__IPConn *message);
48 size_t nmsg__base__ipconn__get_packed_size
49  (const Nmsg__Base__IPConn *message);
50 size_t nmsg__base__ipconn__pack
51  (const Nmsg__Base__IPConn *message,
52  uint8_t *out);
53 size_t nmsg__base__ipconn__pack_to_buffer
54  (const Nmsg__Base__IPConn *message,
55  ProtobufCBuffer *buffer);
56 Nmsg__Base__IPConn *
57  nmsg__base__ipconn__unpack
58  (ProtobufCAllocator *allocator,
59  size_t len,
60  const uint8_t *data);
61 void nmsg__base__ipconn__free_unpacked
62  (Nmsg__Base__IPConn *message,
63  ProtobufCAllocator *allocator);
64 /* --- per-message closures --- */
65 
66 typedef void (*Nmsg__Base__IPConn_Closure)
67  (const Nmsg__Base__IPConn *message,
68  void *closure_data);
69 
70 /* --- services --- */
71 
72 
73 /* --- descriptors --- */
74 
75 extern const ProtobufCMessageDescriptor nmsg__base__ipconn__descriptor;
76 
77 PROTOBUF_C__END_DECLS
78 
79 
80 #endif /* PROTOBUF_C_nmsg_2fbase_2fipconn_2eproto__INCLUDED */