1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */ 2 /* Generated from: FingerprintProtocol.proto */ 3 4 #ifndef PROTOBUF_C_FingerprintProtocol_2eproto__INCLUDED 5 #define PROTOBUF_C_FingerprintProtocol_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 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__LogicalFingerprint Textsecure__LogicalFingerprint; 19 typedef struct _Textsecure__CombinedFingerprints Textsecure__CombinedFingerprints; 20 21 22 /* --- enums --- */ 23 24 25 /* --- messages --- */ 26 27 struct _Textsecure__LogicalFingerprint 28 { 29 ProtobufCMessage base; 30 protobuf_c_boolean has_content; 31 ProtobufCBinaryData content; 32 /* 33 * Version 0 34 */ 35 protobuf_c_boolean has_identifier; 36 ProtobufCBinaryData identifier; 37 }; 38 #define TEXTSECURE__LOGICAL_FINGERPRINT__INIT \ 39 { PROTOBUF_C_MESSAGE_INIT (&textsecure__logical_fingerprint__descriptor) \ 40 , 0,{0,NULL}, 0,{0,NULL} } 41 42 43 struct _Textsecure__CombinedFingerprints 44 { 45 ProtobufCMessage base; 46 protobuf_c_boolean has_version; 47 uint32_t version; 48 Textsecure__LogicalFingerprint *localfingerprint; 49 Textsecure__LogicalFingerprint *remotefingerprint; 50 }; 51 #define TEXTSECURE__COMBINED_FINGERPRINTS__INIT \ 52 { PROTOBUF_C_MESSAGE_INIT (&textsecure__combined_fingerprints__descriptor) \ 53 , 0,0, NULL, NULL } 54 55 56 /* Textsecure__LogicalFingerprint methods */ 57 void textsecure__logical_fingerprint__init 58 (Textsecure__LogicalFingerprint *message); 59 size_t textsecure__logical_fingerprint__get_packed_size 60 (const Textsecure__LogicalFingerprint *message); 61 size_t textsecure__logical_fingerprint__pack 62 (const Textsecure__LogicalFingerprint *message, 63 uint8_t *out); 64 size_t textsecure__logical_fingerprint__pack_to_buffer 65 (const Textsecure__LogicalFingerprint *message, 66 ProtobufCBuffer *buffer); 67 Textsecure__LogicalFingerprint * 68 textsecure__logical_fingerprint__unpack 69 (ProtobufCAllocator *allocator, 70 size_t len, 71 const uint8_t *data); 72 void textsecure__logical_fingerprint__free_unpacked 73 (Textsecure__LogicalFingerprint *message, 74 ProtobufCAllocator *allocator); 75 /* Textsecure__CombinedFingerprints methods */ 76 void textsecure__combined_fingerprints__init 77 (Textsecure__CombinedFingerprints *message); 78 size_t textsecure__combined_fingerprints__get_packed_size 79 (const Textsecure__CombinedFingerprints *message); 80 size_t textsecure__combined_fingerprints__pack 81 (const Textsecure__CombinedFingerprints *message, 82 uint8_t *out); 83 size_t textsecure__combined_fingerprints__pack_to_buffer 84 (const Textsecure__CombinedFingerprints *message, 85 ProtobufCBuffer *buffer); 86 Textsecure__CombinedFingerprints * 87 textsecure__combined_fingerprints__unpack 88 (ProtobufCAllocator *allocator, 89 size_t len, 90 const uint8_t *data); 91 void textsecure__combined_fingerprints__free_unpacked 92 (Textsecure__CombinedFingerprints *message, 93 ProtobufCAllocator *allocator); 94 /* --- per-message closures --- */ 95 96 typedef void (*Textsecure__LogicalFingerprint_Closure) 97 (const Textsecure__LogicalFingerprint *message, 98 void *closure_data); 99 typedef void (*Textsecure__CombinedFingerprints_Closure) 100 (const Textsecure__CombinedFingerprints *message, 101 void *closure_data); 102 103 /* --- services --- */ 104 105 106 /* --- descriptors --- */ 107 108 extern const ProtobufCMessageDescriptor textsecure__logical_fingerprint__descriptor; 109 extern const ProtobufCMessageDescriptor textsecure__combined_fingerprints__descriptor; 110 111 PROTOBUF_C__END_DECLS 112 113 114 #endif /* PROTOBUF_C_FingerprintProtocol_2eproto__INCLUDED */ 115