nmsg  1.0.0
logline.pb-c.h
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: nmsg/base/logline.proto */
3 
4 #ifndef PROTOBUF_C_nmsg_2fbase_2flogline_2eproto__INCLUDED
5 #define PROTOBUF_C_nmsg_2fbase_2flogline_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 1004000 < 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 
23 
24 /* --- messages --- */
25 
27 {
28  ProtobufCMessage base;
29  protobuf_c_boolean has_category;
30  ProtobufCBinaryData category;
31  protobuf_c_boolean has_message;
32  ProtobufCBinaryData message;
33 };
34 #define NMSG__BASE__LOG_LINE__INIT \
35  { PROTOBUF_C_MESSAGE_INIT (&nmsg__base__log_line__descriptor) \
36  , 0, {0,NULL}, 0, {0,NULL} }
37 
38 
39 /* Nmsg__Base__LogLine methods */
40 void nmsg__base__log_line__init
41  (Nmsg__Base__LogLine *message);
42 size_t nmsg__base__log_line__get_packed_size
43  (const Nmsg__Base__LogLine *message);
44 size_t nmsg__base__log_line__pack
45  (const Nmsg__Base__LogLine *message,
46  uint8_t *out);
47 size_t nmsg__base__log_line__pack_to_buffer
48  (const Nmsg__Base__LogLine *message,
49  ProtobufCBuffer *buffer);
51  nmsg__base__log_line__unpack
52  (ProtobufCAllocator *allocator,
53  size_t len,
54  const uint8_t *data);
55 void nmsg__base__log_line__free_unpacked
56  (Nmsg__Base__LogLine *message,
57  ProtobufCAllocator *allocator);
58 /* --- per-message closures --- */
59 
60 typedef void (*Nmsg__Base__LogLine_Closure)
61  (const Nmsg__Base__LogLine *message,
62  void *closure_data);
63 
64 /* --- services --- */
65 
66 
67 /* --- descriptors --- */
68 
69 extern const ProtobufCMessageDescriptor nmsg__base__log_line__descriptor;
70 
71 PROTOBUF_C__END_DECLS
72 
73 
74 #endif /* PROTOBUF_C_nmsg_2fbase_2flogline_2eproto__INCLUDED */