libsignal-protocol-c  master
LocalStorageProtocol.pb-c.h
1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: LocalStorageProtocol.proto */
3 
4 #ifndef PROTOBUF_C_LocalStorageProtocol_2eproto__INCLUDED
5 #define PROTOBUF_C_LocalStorageProtocol_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__SessionStructure Textsecure__SessionStructure;
33 
34 
35 /* --- enums --- */
36 
37 
38 /* --- messages --- */
39 
41 {
42  ProtobufCMessage base;
43  protobuf_c_boolean has_index;
44  uint32_t index;
45  protobuf_c_boolean has_key;
47 };
48 #define TEXTSECURE__SESSION_STRUCTURE__CHAIN__CHAIN_KEY__INIT \
49  { PROTOBUF_C_MESSAGE_INIT (&textsecure__session_structure__chain__chain_key__descriptor) \
50  , 0,0, 0,{0,NULL} }
51 
52 
54 {
55  ProtobufCMessage base;
56  protobuf_c_boolean has_index;
57  uint32_t index;
58  protobuf_c_boolean has_cipherkey;
59  ProtobufCBinaryData cipherkey;
60  protobuf_c_boolean has_mackey;
61  ProtobufCBinaryData mackey;
62  protobuf_c_boolean has_iv;
64 };
65 #define TEXTSECURE__SESSION_STRUCTURE__CHAIN__MESSAGE_KEY__INIT \
66  { PROTOBUF_C_MESSAGE_INIT (&textsecure__session_structure__chain__message_key__descriptor) \
67  , 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL} }
68 
69 
71 {
72  ProtobufCMessage base;
73  protobuf_c_boolean has_senderratchetkey;
74  ProtobufCBinaryData senderratchetkey;
75  protobuf_c_boolean has_senderratchetkeyprivate;
76  ProtobufCBinaryData senderratchetkeyprivate;
78  size_t n_messagekeys;
80 };
81 #define TEXTSECURE__SESSION_STRUCTURE__CHAIN__INIT \
82  { PROTOBUF_C_MESSAGE_INIT (&textsecure__session_structure__chain__descriptor) \
83  , 0,{0,NULL}, 0,{0,NULL}, NULL, 0,NULL }
84 
85 
87 {
88  ProtobufCMessage base;
89  protobuf_c_boolean has_sequence;
90  uint32_t sequence;
91  protobuf_c_boolean has_localbasekey;
92  ProtobufCBinaryData localbasekey;
93  protobuf_c_boolean has_localbasekeyprivate;
94  ProtobufCBinaryData localbasekeyprivate;
95  protobuf_c_boolean has_localratchetkey;
96  ProtobufCBinaryData localratchetkey;
97  protobuf_c_boolean has_localratchetkeyprivate;
98  ProtobufCBinaryData localratchetkeyprivate;
99  protobuf_c_boolean has_localidentitykey;
100  ProtobufCBinaryData localidentitykey;
101  protobuf_c_boolean has_localidentitykeyprivate;
102  ProtobufCBinaryData localidentitykeyprivate;
103 };
104 #define TEXTSECURE__SESSION_STRUCTURE__PENDING_KEY_EXCHANGE__INIT \
105  { PROTOBUF_C_MESSAGE_INIT (&textsecure__session_structure__pending_key_exchange__descriptor) \
106  , 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL} }
107 
108 
110 {
111  ProtobufCMessage base;
112  protobuf_c_boolean has_prekeyid;
113  uint32_t prekeyid;
114  protobuf_c_boolean has_signedprekeyid;
115  int32_t signedprekeyid;
116  protobuf_c_boolean has_basekey;
117  ProtobufCBinaryData basekey;
118 };
119 #define TEXTSECURE__SESSION_STRUCTURE__PENDING_PRE_KEY__INIT \
120  { PROTOBUF_C_MESSAGE_INIT (&textsecure__session_structure__pending_pre_key__descriptor) \
121  , 0,0, 0,0, 0,{0,NULL} }
122 
123 
125 {
126  ProtobufCMessage base;
127  protobuf_c_boolean has_sessionversion;
128  uint32_t sessionversion;
129  protobuf_c_boolean has_localidentitypublic;
130  ProtobufCBinaryData localidentitypublic;
131  protobuf_c_boolean has_remoteidentitypublic;
132  ProtobufCBinaryData remoteidentitypublic;
133  protobuf_c_boolean has_rootkey;
134  ProtobufCBinaryData rootkey;
135  protobuf_c_boolean has_previouscounter;
136  uint32_t previouscounter;
138  size_t n_receiverchains;
139  Textsecure__SessionStructure__Chain **receiverchains;
142  protobuf_c_boolean has_remoteregistrationid;
143  uint32_t remoteregistrationid;
144  protobuf_c_boolean has_localregistrationid;
145  uint32_t localregistrationid;
146  protobuf_c_boolean has_needsrefresh;
147  protobuf_c_boolean needsrefresh;
148  protobuf_c_boolean has_alicebasekey;
149  ProtobufCBinaryData alicebasekey;
150 };
151 #define TEXTSECURE__SESSION_STRUCTURE__INIT \
152  { PROTOBUF_C_MESSAGE_INIT (&textsecure__session_structure__descriptor) \
153  , 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL}, 0,0, NULL, 0,NULL, NULL, NULL, 0,0, 0,0, 0,0, 0,{0,NULL} }
154 
155 
157 {
158  ProtobufCMessage base;
159  Textsecure__SessionStructure *currentsession;
160  size_t n_previoussessions;
161  Textsecure__SessionStructure **previoussessions;
162 };
163 #define TEXTSECURE__RECORD_STRUCTURE__INIT \
164  { PROTOBUF_C_MESSAGE_INIT (&textsecure__record_structure__descriptor) \
165  , NULL, 0,NULL }
166 
167 
169 {
170  ProtobufCMessage base;
171  protobuf_c_boolean has_id;
172  uint32_t id;
173  protobuf_c_boolean has_publickey;
174  ProtobufCBinaryData publickey;
175  protobuf_c_boolean has_privatekey;
176  ProtobufCBinaryData privatekey;
177 };
178 #define TEXTSECURE__PRE_KEY_RECORD_STRUCTURE__INIT \
179  { PROTOBUF_C_MESSAGE_INIT (&textsecure__pre_key_record_structure__descriptor) \
180  , 0,0, 0,{0,NULL}, 0,{0,NULL} }
181 
182 
184 {
185  ProtobufCMessage base;
186  protobuf_c_boolean has_id;
187  uint32_t id;
188  protobuf_c_boolean has_publickey;
189  ProtobufCBinaryData publickey;
190  protobuf_c_boolean has_privatekey;
191  ProtobufCBinaryData privatekey;
192  protobuf_c_boolean has_signature;
193  ProtobufCBinaryData signature;
194  protobuf_c_boolean has_timestamp;
195  uint64_t timestamp;
196 };
197 #define TEXTSECURE__SIGNED_PRE_KEY_RECORD_STRUCTURE__INIT \
198  { PROTOBUF_C_MESSAGE_INIT (&textsecure__signed_pre_key_record_structure__descriptor) \
199  , 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL}, 0,0 }
200 
201 
203 {
204  ProtobufCMessage base;
205  protobuf_c_boolean has_publickey;
206  ProtobufCBinaryData publickey;
207  protobuf_c_boolean has_privatekey;
208  ProtobufCBinaryData privatekey;
209 };
210 #define TEXTSECURE__IDENTITY_KEY_PAIR_STRUCTURE__INIT \
211  { PROTOBUF_C_MESSAGE_INIT (&textsecure__identity_key_pair_structure__descriptor) \
212  , 0,{0,NULL}, 0,{0,NULL} }
213 
214 
216 {
217  ProtobufCMessage base;
218  protobuf_c_boolean has_iteration;
219  uint32_t iteration;
220  protobuf_c_boolean has_seed;
221  ProtobufCBinaryData seed;
222 };
223 #define TEXTSECURE__SENDER_KEY_STATE_STRUCTURE__SENDER_CHAIN_KEY__INIT \
224  { PROTOBUF_C_MESSAGE_INIT (&textsecure__sender_key_state_structure__sender_chain_key__descriptor) \
225  , 0,0, 0,{0,NULL} }
226 
227 
229 {
230  ProtobufCMessage base;
231  protobuf_c_boolean has_iteration;
232  uint32_t iteration;
233  protobuf_c_boolean has_seed;
234  ProtobufCBinaryData seed;
235 };
236 #define TEXTSECURE__SENDER_KEY_STATE_STRUCTURE__SENDER_MESSAGE_KEY__INIT \
237  { PROTOBUF_C_MESSAGE_INIT (&textsecure__sender_key_state_structure__sender_message_key__descriptor) \
238  , 0,0, 0,{0,NULL} }
239 
240 
242 {
243  ProtobufCMessage base;
244  protobuf_c_boolean has_public_;
245  ProtobufCBinaryData public_;
246  protobuf_c_boolean has_private_;
247  ProtobufCBinaryData private_;
248 };
249 #define TEXTSECURE__SENDER_KEY_STATE_STRUCTURE__SENDER_SIGNING_KEY__INIT \
250  { PROTOBUF_C_MESSAGE_INIT (&textsecure__sender_key_state_structure__sender_signing_key__descriptor) \
251  , 0,{0,NULL}, 0,{0,NULL} }
252 
253 
255 {
256  ProtobufCMessage base;
257  protobuf_c_boolean has_senderkeyid;
258  uint32_t senderkeyid;
261  size_t n_sendermessagekeys;
263 };
264 #define TEXTSECURE__SENDER_KEY_STATE_STRUCTURE__INIT \
265  { PROTOBUF_C_MESSAGE_INIT (&textsecure__sender_key_state_structure__descriptor) \
266  , 0,0, NULL, NULL, 0,NULL }
267 
268 
270 {
271  ProtobufCMessage base;
272  size_t n_senderkeystates;
273  Textsecure__SenderKeyStateStructure **senderkeystates;
274 };
275 #define TEXTSECURE__SENDER_KEY_RECORD_STRUCTURE__INIT \
276  { PROTOBUF_C_MESSAGE_INIT (&textsecure__sender_key_record_structure__descriptor) \
277  , 0,NULL }
278 
279 
280 /* Textsecure__SessionStructure__Chain__ChainKey methods */
281 void textsecure__session_structure__chain__chain_key__init
283 /* Textsecure__SessionStructure__Chain__MessageKey methods */
284 void textsecure__session_structure__chain__message_key__init
286 /* Textsecure__SessionStructure__Chain methods */
287 void textsecure__session_structure__chain__init
289 /* Textsecure__SessionStructure__PendingKeyExchange methods */
290 void textsecure__session_structure__pending_key_exchange__init
292 /* Textsecure__SessionStructure__PendingPreKey methods */
293 void textsecure__session_structure__pending_pre_key__init
295 /* Textsecure__SessionStructure methods */
296 void textsecure__session_structure__init
297  (Textsecure__SessionStructure *message);
298 size_t textsecure__session_structure__get_packed_size
299  (const Textsecure__SessionStructure *message);
300 size_t textsecure__session_structure__pack
301  (const Textsecure__SessionStructure *message,
302  uint8_t *out);
303 size_t textsecure__session_structure__pack_to_buffer
304  (const Textsecure__SessionStructure *message,
305  ProtobufCBuffer *buffer);
306 Textsecure__SessionStructure *
307  textsecure__session_structure__unpack
308  (ProtobufCAllocator *allocator,
309  size_t len,
310  const uint8_t *data);
311 void textsecure__session_structure__free_unpacked
312  (Textsecure__SessionStructure *message,
313  ProtobufCAllocator *allocator);
314 /* Textsecure__RecordStructure methods */
315 void textsecure__record_structure__init
316  (Textsecure__RecordStructure *message);
317 size_t textsecure__record_structure__get_packed_size
318  (const Textsecure__RecordStructure *message);
319 size_t textsecure__record_structure__pack
320  (const Textsecure__RecordStructure *message,
321  uint8_t *out);
322 size_t textsecure__record_structure__pack_to_buffer
323  (const Textsecure__RecordStructure *message,
324  ProtobufCBuffer *buffer);
326  textsecure__record_structure__unpack
327  (ProtobufCAllocator *allocator,
328  size_t len,
329  const uint8_t *data);
330 void textsecure__record_structure__free_unpacked
331  (Textsecure__RecordStructure *message,
332  ProtobufCAllocator *allocator);
333 /* Textsecure__PreKeyRecordStructure methods */
334 void textsecure__pre_key_record_structure__init
336 size_t textsecure__pre_key_record_structure__get_packed_size
337  (const Textsecure__PreKeyRecordStructure *message);
338 size_t textsecure__pre_key_record_structure__pack
339  (const Textsecure__PreKeyRecordStructure *message,
340  uint8_t *out);
341 size_t textsecure__pre_key_record_structure__pack_to_buffer
342  (const Textsecure__PreKeyRecordStructure *message,
343  ProtobufCBuffer *buffer);
345  textsecure__pre_key_record_structure__unpack
346  (ProtobufCAllocator *allocator,
347  size_t len,
348  const uint8_t *data);
349 void textsecure__pre_key_record_structure__free_unpacked
351  ProtobufCAllocator *allocator);
352 /* Textsecure__SignedPreKeyRecordStructure methods */
353 void textsecure__signed_pre_key_record_structure__init
355 size_t textsecure__signed_pre_key_record_structure__get_packed_size
357 size_t textsecure__signed_pre_key_record_structure__pack
359  uint8_t *out);
360 size_t textsecure__signed_pre_key_record_structure__pack_to_buffer
362  ProtobufCBuffer *buffer);
364  textsecure__signed_pre_key_record_structure__unpack
365  (ProtobufCAllocator *allocator,
366  size_t len,
367  const uint8_t *data);
368 void textsecure__signed_pre_key_record_structure__free_unpacked
370  ProtobufCAllocator *allocator);
371 /* Textsecure__IdentityKeyPairStructure methods */
372 void textsecure__identity_key_pair_structure__init
374 size_t textsecure__identity_key_pair_structure__get_packed_size
375  (const Textsecure__IdentityKeyPairStructure *message);
376 size_t textsecure__identity_key_pair_structure__pack
377  (const Textsecure__IdentityKeyPairStructure *message,
378  uint8_t *out);
379 size_t textsecure__identity_key_pair_structure__pack_to_buffer
380  (const Textsecure__IdentityKeyPairStructure *message,
381  ProtobufCBuffer *buffer);
383  textsecure__identity_key_pair_structure__unpack
384  (ProtobufCAllocator *allocator,
385  size_t len,
386  const uint8_t *data);
387 void textsecure__identity_key_pair_structure__free_unpacked
389  ProtobufCAllocator *allocator);
390 /* Textsecure__SenderKeyStateStructure__SenderChainKey methods */
391 void textsecure__sender_key_state_structure__sender_chain_key__init
393 /* Textsecure__SenderKeyStateStructure__SenderMessageKey methods */
394 void textsecure__sender_key_state_structure__sender_message_key__init
396 /* Textsecure__SenderKeyStateStructure__SenderSigningKey methods */
397 void textsecure__sender_key_state_structure__sender_signing_key__init
399 /* Textsecure__SenderKeyStateStructure methods */
400 void textsecure__sender_key_state_structure__init
402 size_t textsecure__sender_key_state_structure__get_packed_size
403  (const Textsecure__SenderKeyStateStructure *message);
404 size_t textsecure__sender_key_state_structure__pack
405  (const Textsecure__SenderKeyStateStructure *message,
406  uint8_t *out);
407 size_t textsecure__sender_key_state_structure__pack_to_buffer
408  (const Textsecure__SenderKeyStateStructure *message,
409  ProtobufCBuffer *buffer);
411  textsecure__sender_key_state_structure__unpack
412  (ProtobufCAllocator *allocator,
413  size_t len,
414  const uint8_t *data);
415 void textsecure__sender_key_state_structure__free_unpacked
417  ProtobufCAllocator *allocator);
418 /* Textsecure__SenderKeyRecordStructure methods */
419 void textsecure__sender_key_record_structure__init
421 size_t textsecure__sender_key_record_structure__get_packed_size
422  (const Textsecure__SenderKeyRecordStructure *message);
423 size_t textsecure__sender_key_record_structure__pack
424  (const Textsecure__SenderKeyRecordStructure *message,
425  uint8_t *out);
426 size_t textsecure__sender_key_record_structure__pack_to_buffer
427  (const Textsecure__SenderKeyRecordStructure *message,
428  ProtobufCBuffer *buffer);
430  textsecure__sender_key_record_structure__unpack
431  (ProtobufCAllocator *allocator,
432  size_t len,
433  const uint8_t *data);
434 void textsecure__sender_key_record_structure__free_unpacked
436  ProtobufCAllocator *allocator);
437 /* --- per-message closures --- */
438 
439 typedef void (*Textsecure__SessionStructure__Chain__ChainKey_Closure)
441  void *closure_data);
442 typedef void (*Textsecure__SessionStructure__Chain__MessageKey_Closure)
444  void *closure_data);
445 typedef void (*Textsecure__SessionStructure__Chain_Closure)
446  (const Textsecure__SessionStructure__Chain *message,
447  void *closure_data);
448 typedef void (*Textsecure__SessionStructure__PendingKeyExchange_Closure)
450  void *closure_data);
451 typedef void (*Textsecure__SessionStructure__PendingPreKey_Closure)
453  void *closure_data);
454 typedef void (*Textsecure__SessionStructure_Closure)
455  (const Textsecure__SessionStructure *message,
456  void *closure_data);
457 typedef void (*Textsecure__RecordStructure_Closure)
458  (const Textsecure__RecordStructure *message,
459  void *closure_data);
460 typedef void (*Textsecure__PreKeyRecordStructure_Closure)
461  (const Textsecure__PreKeyRecordStructure *message,
462  void *closure_data);
463 typedef void (*Textsecure__SignedPreKeyRecordStructure_Closure)
465  void *closure_data);
466 typedef void (*Textsecure__IdentityKeyPairStructure_Closure)
467  (const Textsecure__IdentityKeyPairStructure *message,
468  void *closure_data);
469 typedef void (*Textsecure__SenderKeyStateStructure__SenderChainKey_Closure)
471  void *closure_data);
472 typedef void (*Textsecure__SenderKeyStateStructure__SenderMessageKey_Closure)
474  void *closure_data);
475 typedef void (*Textsecure__SenderKeyStateStructure__SenderSigningKey_Closure)
477  void *closure_data);
478 typedef void (*Textsecure__SenderKeyStateStructure_Closure)
479  (const Textsecure__SenderKeyStateStructure *message,
480  void *closure_data);
481 typedef void (*Textsecure__SenderKeyRecordStructure_Closure)
482  (const Textsecure__SenderKeyRecordStructure *message,
483  void *closure_data);
484 
485 /* --- services --- */
486 
487 
488 /* --- descriptors --- */
489 
490 extern const ProtobufCMessageDescriptor textsecure__session_structure__descriptor;
491 extern const ProtobufCMessageDescriptor textsecure__session_structure__chain__descriptor;
492 extern const ProtobufCMessageDescriptor textsecure__session_structure__chain__chain_key__descriptor;
493 extern const ProtobufCMessageDescriptor textsecure__session_structure__chain__message_key__descriptor;
494 extern const ProtobufCMessageDescriptor textsecure__session_structure__pending_key_exchange__descriptor;
495 extern const ProtobufCMessageDescriptor textsecure__session_structure__pending_pre_key__descriptor;
496 extern const ProtobufCMessageDescriptor textsecure__record_structure__descriptor;
497 extern const ProtobufCMessageDescriptor textsecure__pre_key_record_structure__descriptor;
498 extern const ProtobufCMessageDescriptor textsecure__signed_pre_key_record_structure__descriptor;
499 extern const ProtobufCMessageDescriptor textsecure__identity_key_pair_structure__descriptor;
500 extern const ProtobufCMessageDescriptor textsecure__sender_key_state_structure__descriptor;
501 extern const ProtobufCMessageDescriptor textsecure__sender_key_state_structure__sender_chain_key__descriptor;
502 extern const ProtobufCMessageDescriptor textsecure__sender_key_state_structure__sender_message_key__descriptor;
503 extern const ProtobufCMessageDescriptor textsecure__sender_key_state_structure__sender_signing_key__descriptor;
504 extern const ProtobufCMessageDescriptor textsecure__sender_key_record_structure__descriptor;
505 
506 PROTOBUF_C__END_DECLS
507 
508 
509 #endif /* PROTOBUF_C_LocalStorageProtocol_2eproto__INCLUDED */
Definition: LocalStorageProtocol.pb-c.h:53
Definition: protobuf-c.h:393
Definition: LocalStorageProtocol.pb-c.h:183
Definition: LocalStorageProtocol.pb-c.h:228
Definition: LocalStorageProtocol.pb-c.h:202
Definition: LocalStorageProtocol.pb-c.h:168
Definition: protobuf-c.h:375
Definition: LocalStorageProtocol.pb-c.h:215
Definition: protobuf-c.h:640
Definition: LocalStorageProtocol.pb-c.h:86
Definition: LocalStorageProtocol.pb-c.h:109
Definition: LocalStorageProtocol.pb-c.h:156
Definition: protobuf-c.h:652
Definition: LocalStorageProtocol.pb-c.h:124
Definition: LocalStorageProtocol.pb-c.h:269
Definition: LocalStorageProtocol.pb-c.h:241
Definition: LocalStorageProtocol.pb-c.h:254
Definition: LocalStorageProtocol.pb-c.h:40
Definition: protobuf-c.h:433
Definition: LocalStorageProtocol.pb-c.h:70
int protobuf_c_boolean
Definition: protobuf-c.h:366