libsignal-protocol-c  master
WhisperTextProtocol.pb-c.h
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: WhisperTextProtocol.proto */
3 
4 #ifndef PROTOBUF_C_WhisperTextProtocol_2eproto__INCLUDED
5 #define PROTOBUF_C_WhisperTextProtocol_2eproto__INCLUDED
6 
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 1002001 < 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 _Textsecure__SignalMessage Textsecure__SignalMessage;
24 
25 
26 /* --- enums --- */
27 
28 
29 /* --- messages --- */
30 
32 {
33  ProtobufCMessage base;
34  protobuf_c_boolean has_ratchetkey;
35  ProtobufCBinaryData ratchetkey;
36  protobuf_c_boolean has_counter;
37  uint32_t counter;
38  protobuf_c_boolean has_previouscounter;
39  uint32_t previouscounter;
40  protobuf_c_boolean has_ciphertext;
41  ProtobufCBinaryData ciphertext;
42 };
43 #define TEXTSECURE__SIGNAL_MESSAGE__INIT \
44  { PROTOBUF_C_MESSAGE_INIT (&textsecure__signal_message__descriptor) \
45  , 0,{0,NULL}, 0,0, 0,0, 0,{0,NULL} }
46 
47 
49 {
50  ProtobufCMessage base;
51  protobuf_c_boolean has_registrationid;
52  uint32_t registrationid;
53  protobuf_c_boolean has_prekeyid;
54  uint32_t prekeyid;
55  protobuf_c_boolean has_signedprekeyid;
56  uint32_t signedprekeyid;
57  protobuf_c_boolean has_basekey;
58  ProtobufCBinaryData basekey;
59  protobuf_c_boolean has_identitykey;
60  ProtobufCBinaryData identitykey;
61  /*
62  * SignalMessage
63  */
64  protobuf_c_boolean has_message;
65  ProtobufCBinaryData message;
66 };
67 #define TEXTSECURE__PRE_KEY_SIGNAL_MESSAGE__INIT \
68  { PROTOBUF_C_MESSAGE_INIT (&textsecure__pre_key_signal_message__descriptor) \
69  , 0,0, 0,0, 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL} }
70 
71 
73 {
74  ProtobufCMessage base;
75  protobuf_c_boolean has_id;
76  uint32_t id;
77  protobuf_c_boolean has_basekey;
78  ProtobufCBinaryData basekey;
79  protobuf_c_boolean has_ratchetkey;
80  ProtobufCBinaryData ratchetkey;
81  protobuf_c_boolean has_identitykey;
82  ProtobufCBinaryData identitykey;
83  protobuf_c_boolean has_basekeysignature;
84  ProtobufCBinaryData basekeysignature;
85 };
86 #define TEXTSECURE__KEY_EXCHANGE_MESSAGE__INIT \
87  { PROTOBUF_C_MESSAGE_INIT (&textsecure__key_exchange_message__descriptor) \
88  , 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL} }
89 
90 
92 {
93  ProtobufCMessage base;
94  protobuf_c_boolean has_id;
95  uint32_t id;
96  protobuf_c_boolean has_iteration;
97  uint32_t iteration;
98  protobuf_c_boolean has_ciphertext;
99  ProtobufCBinaryData ciphertext;
100 };
101 #define TEXTSECURE__SENDER_KEY_MESSAGE__INIT \
102  { PROTOBUF_C_MESSAGE_INIT (&textsecure__sender_key_message__descriptor) \
103  , 0,0, 0,0, 0,{0,NULL} }
104 
105 
107 {
108  ProtobufCMessage base;
109  protobuf_c_boolean has_id;
110  uint32_t id;
111  protobuf_c_boolean has_iteration;
112  uint32_t iteration;
113  protobuf_c_boolean has_chainkey;
114  ProtobufCBinaryData chainkey;
115  protobuf_c_boolean has_signingkey;
116  ProtobufCBinaryData signingkey;
117 };
118 #define TEXTSECURE__SENDER_KEY_DISTRIBUTION_MESSAGE__INIT \
119  { PROTOBUF_C_MESSAGE_INIT (&textsecure__sender_key_distribution_message__descriptor) \
120  , 0,0, 0,0, 0,{0,NULL}, 0,{0,NULL} }
121 
122 
124 {
125  ProtobufCMessage base;
126  protobuf_c_boolean has_generation;
127  uint32_t generation;
128  protobuf_c_boolean has_signature;
129  ProtobufCBinaryData signature;
130 };
131 #define TEXTSECURE__DEVICE_CONSISTENCY_CODE_MESSAGE__INIT \
132  { PROTOBUF_C_MESSAGE_INIT (&textsecure__device_consistency_code_message__descriptor) \
133  , 0,0, 0,{0,NULL} }
134 
135 
136 /* Textsecure__SignalMessage methods */
137 void textsecure__signal_message__init
138  (Textsecure__SignalMessage *message);
139 size_t textsecure__signal_message__get_packed_size
140  (const Textsecure__SignalMessage *message);
141 size_t textsecure__signal_message__pack
142  (const Textsecure__SignalMessage *message,
143  uint8_t *out);
144 size_t textsecure__signal_message__pack_to_buffer
145  (const Textsecure__SignalMessage *message,
146  ProtobufCBuffer *buffer);
147 Textsecure__SignalMessage *
148  textsecure__signal_message__unpack
149  (ProtobufCAllocator *allocator,
150  size_t len,
151  const uint8_t *data);
152 void textsecure__signal_message__free_unpacked
153  (Textsecure__SignalMessage *message,
154  ProtobufCAllocator *allocator);
155 /* Textsecure__PreKeySignalMessage methods */
156 void textsecure__pre_key_signal_message__init
158 size_t textsecure__pre_key_signal_message__get_packed_size
159  (const Textsecure__PreKeySignalMessage *message);
160 size_t textsecure__pre_key_signal_message__pack
161  (const Textsecure__PreKeySignalMessage *message,
162  uint8_t *out);
163 size_t textsecure__pre_key_signal_message__pack_to_buffer
164  (const Textsecure__PreKeySignalMessage *message,
165  ProtobufCBuffer *buffer);
167  textsecure__pre_key_signal_message__unpack
168  (ProtobufCAllocator *allocator,
169  size_t len,
170  const uint8_t *data);
171 void textsecure__pre_key_signal_message__free_unpacked
173  ProtobufCAllocator *allocator);
174 /* Textsecure__KeyExchangeMessage methods */
175 void textsecure__key_exchange_message__init
177 size_t textsecure__key_exchange_message__get_packed_size
178  (const Textsecure__KeyExchangeMessage *message);
179 size_t textsecure__key_exchange_message__pack
180  (const Textsecure__KeyExchangeMessage *message,
181  uint8_t *out);
182 size_t textsecure__key_exchange_message__pack_to_buffer
183  (const Textsecure__KeyExchangeMessage *message,
184  ProtobufCBuffer *buffer);
186  textsecure__key_exchange_message__unpack
187  (ProtobufCAllocator *allocator,
188  size_t len,
189  const uint8_t *data);
190 void textsecure__key_exchange_message__free_unpacked
192  ProtobufCAllocator *allocator);
193 /* Textsecure__SenderKeyMessage methods */
194 void textsecure__sender_key_message__init
195  (Textsecure__SenderKeyMessage *message);
196 size_t textsecure__sender_key_message__get_packed_size
197  (const Textsecure__SenderKeyMessage *message);
198 size_t textsecure__sender_key_message__pack
199  (const Textsecure__SenderKeyMessage *message,
200  uint8_t *out);
201 size_t textsecure__sender_key_message__pack_to_buffer
202  (const Textsecure__SenderKeyMessage *message,
203  ProtobufCBuffer *buffer);
205  textsecure__sender_key_message__unpack
206  (ProtobufCAllocator *allocator,
207  size_t len,
208  const uint8_t *data);
209 void textsecure__sender_key_message__free_unpacked
211  ProtobufCAllocator *allocator);
212 /* Textsecure__SenderKeyDistributionMessage methods */
213 void textsecure__sender_key_distribution_message__init
215 size_t textsecure__sender_key_distribution_message__get_packed_size
217 size_t textsecure__sender_key_distribution_message__pack
219  uint8_t *out);
220 size_t textsecure__sender_key_distribution_message__pack_to_buffer
222  ProtobufCBuffer *buffer);
224  textsecure__sender_key_distribution_message__unpack
225  (ProtobufCAllocator *allocator,
226  size_t len,
227  const uint8_t *data);
228 void textsecure__sender_key_distribution_message__free_unpacked
230  ProtobufCAllocator *allocator);
231 /* Textsecure__DeviceConsistencyCodeMessage methods */
232 void textsecure__device_consistency_code_message__init
234 size_t textsecure__device_consistency_code_message__get_packed_size
236 size_t textsecure__device_consistency_code_message__pack
238  uint8_t *out);
239 size_t textsecure__device_consistency_code_message__pack_to_buffer
241  ProtobufCBuffer *buffer);
243  textsecure__device_consistency_code_message__unpack
244  (ProtobufCAllocator *allocator,
245  size_t len,
246  const uint8_t *data);
247 void textsecure__device_consistency_code_message__free_unpacked
249  ProtobufCAllocator *allocator);
250 /* --- per-message closures --- */
251 
252 typedef void (*Textsecure__SignalMessage_Closure)
253  (const Textsecure__SignalMessage *message,
254  void *closure_data);
255 typedef void (*Textsecure__PreKeySignalMessage_Closure)
256  (const Textsecure__PreKeySignalMessage *message,
257  void *closure_data);
258 typedef void (*Textsecure__KeyExchangeMessage_Closure)
259  (const Textsecure__KeyExchangeMessage *message,
260  void *closure_data);
261 typedef void (*Textsecure__SenderKeyMessage_Closure)
262  (const Textsecure__SenderKeyMessage *message,
263  void *closure_data);
264 typedef void (*Textsecure__SenderKeyDistributionMessage_Closure)
266  void *closure_data);
267 typedef void (*Textsecure__DeviceConsistencyCodeMessage_Closure)
269  void *closure_data);
270 
271 /* --- services --- */
272 
273 
274 /* --- descriptors --- */
275 
276 extern const ProtobufCMessageDescriptor textsecure__signal_message__descriptor;
277 extern const ProtobufCMessageDescriptor textsecure__pre_key_signal_message__descriptor;
278 extern const ProtobufCMessageDescriptor textsecure__key_exchange_message__descriptor;
279 extern const ProtobufCMessageDescriptor textsecure__sender_key_message__descriptor;
280 extern const ProtobufCMessageDescriptor textsecure__sender_key_distribution_message__descriptor;
281 extern const ProtobufCMessageDescriptor textsecure__device_consistency_code_message__descriptor;
282 
283 PROTOBUF_C__END_DECLS
284 
285 
286 #endif /* PROTOBUF_C_WhisperTextProtocol_2eproto__INCLUDED */
Definition: WhisperTextProtocol.pb-c.h:72
Definition: protobuf-c.h:393
Definition: protobuf-c.h:375
Definition: protobuf-c.h:640
Definition: WhisperTextProtocol.pb-c.h:106
Definition: WhisperTextProtocol.pb-c.h:123
Definition: WhisperTextProtocol.pb-c.h:48
Definition: protobuf-c.h:652
Definition: WhisperTextProtocol.pb-c.h:31
Definition: protobuf-c.h:433
Definition: WhisperTextProtocol.pb-c.h:91
int protobuf_c_boolean
Definition: protobuf-c.h:366