EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
udp.pb-c.h
Go to the documentation of this file.
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: udp.proto */
3 
4 #ifndef PROTOBUF_C_udp_2eproto__INCLUDED
5 #define PROTOBUF_C_udp_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 Udp__UdpSchema Udp__UdpSchema;
18 
19 /* --- enums --- */
20 
21 /* --- messages --- */
22 
24  ProtobufCMessage base;
25  /*
26  * Packet id
27  */
28  char *id;
29  /*
30  * Packet source port
31  */
32  uint32_t source;
33  /*
34  * Packet destination port
35  */
36  uint32_t dest;
37  /*
38  * Packet udp length
39  */
40  uint32_t len;
41  /*
42  * Packet udp checksum
43  */
44  uint32_t check_p;
45 };
46 #define UDP__UDP_SCHEMA__INIT \
47  { \
48  PROTOBUF_C_MESSAGE_INIT(&udp__udp_schema__descriptor) \
49  , (char *)protobuf_c_empty_string, 0, 0, 0, 0 \
50  }
51 
52 /* Udp__UdpSchema methods */
55 size_t udp__udp_schema__pack(const Udp__UdpSchema *message, uint8_t *out);
57  ProtobufCBuffer *buffer);
58 Udp__UdpSchema *udp__udp_schema__unpack(ProtobufCAllocator *allocator,
59  size_t len, const uint8_t *data);
61  ProtobufCAllocator *allocator);
62 /* --- per-message closures --- */
63 
64 typedef void (*Udp__UdpSchema_Closure)(const Udp__UdpSchema *message,
65  void *closure_data);
66 
67 /* --- services --- */
68 
69 /* --- descriptors --- */
70 
71 extern const ProtobufCMessageDescriptor udp__udp_schema__descriptor;
72 
73 PROTOBUF_C__END_DECLS
74 
75 #endif /* PROTOBUF_C_udp_2eproto__INCLUDED */
Definition: udp.pb-c.h:23
uint32_t len
Definition: udp.pb-c.h:40
uint32_t dest
Definition: udp.pb-c.h:36
uint32_t check_p
Definition: udp.pb-c.h:44
uint32_t source
Definition: udp.pb-c.h:32
char * id
Definition: udp.pb-c.h:28
ProtobufCMessage base
Definition: udp.pb-c.h:24
size_t udp__udp_schema__pack(const Udp__UdpSchema *message, uint8_t *out)
Definition: udp.pb-c.c:19
void udp__udp_schema__free_unpacked(Udp__UdpSchema *message, ProtobufCAllocator *allocator)
Definition: udp.pb-c.c:34
Udp__UdpSchema * udp__udp_schema__unpack(ProtobufCAllocator *allocator, size_t len, const uint8_t *data)
Definition: udp.pb-c.c:29
void udp__udp_schema__init(Udp__UdpSchema *message)
Definition: udp.pb-c.c:10
const ProtobufCMessageDescriptor udp__udp_schema__descriptor
Definition: udp.pb-c.c:83
size_t udp__udp_schema__pack_to_buffer(const Udp__UdpSchema *message, ProtobufCBuffer *buffer)
Definition: udp.pb-c.c:23
void(* Udp__UdpSchema_Closure)(const Udp__UdpSchema *message, void *closure_data)
Definition: udp.pb-c.h:64
size_t udp__udp_schema__get_packed_size(const Udp__UdpSchema *message)
Definition: udp.pb-c.c:14