nmsg 1.1.2
pkt.pb-c.h
1/* Generated by the protocol buffer compiler. DO NOT EDIT! */
2/* Generated from: nmsg/base/pkt.proto */
3
4#ifndef PROTOBUF_C_nmsg_2fbase_2fpkt_2eproto__INCLUDED
5#define PROTOBUF_C_nmsg_2fbase_2fpkt_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
18typedef struct Nmsg__Base__Pkt Nmsg__Base__Pkt;
19
20
21/* --- enums --- */
22
23
24/* --- messages --- */
25
27{
28 ProtobufCMessage base;
29 ProtobufCBinaryData payload;
30 protobuf_c_boolean has_len_frame;
31 uint32_t len_frame;
32};
33#define NMSG__BASE__PKT__INIT \
34 { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__pkt__descriptor) \
35, {0,NULL}, 0, 0 }
36
37
38/* Nmsg__Base__Pkt methods */
39void nmsg__base__pkt__init
40 (Nmsg__Base__Pkt *message);
41size_t nmsg__base__pkt__get_packed_size
42 (const Nmsg__Base__Pkt *message);
43size_t nmsg__base__pkt__pack
44 (const Nmsg__Base__Pkt *message,
45 uint8_t *out);
46size_t nmsg__base__pkt__pack_to_buffer
47 (const Nmsg__Base__Pkt *message,
48 ProtobufCBuffer *buffer);
50 nmsg__base__pkt__unpack
51 (ProtobufCAllocator *allocator,
52 size_t len,
53 const uint8_t *data);
54void nmsg__base__pkt__free_unpacked
55 (Nmsg__Base__Pkt *message,
56 ProtobufCAllocator *allocator);
57/* --- per-message closures --- */
58
59typedef void (*Nmsg__Base__Pkt_Closure)
60 (const Nmsg__Base__Pkt *message,
61 void *closure_data);
62
63/* --- services --- */
64
65
66/* --- descriptors --- */
67
68extern const ProtobufCMessageDescriptor nmsg__base__pkt__descriptor;
69
70PROTOBUF_C__END_DECLS
71
72
73#endif /* PROTOBUF_C_nmsg_2fbase_2fpkt_2eproto__INCLUDED */