diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-04-24 12:01:36 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-04-24 12:01:36 +0300 |
commit | 0b1150d20f49eb0ec82b57ab3fac727f346c0da0 (patch) | |
tree | 387c1d63df86419dd92f2c6adef701567c6bf91f /libs/libaxolotl/src/FingerprintProtocol.pb-c.c | |
parent | 0998b447f51c40d2300db7f673e080de20e8f0be (diff) |
libs:
updated libsignal-c
protocols:
jabber: omemo:
used 31bit device id instead of 32bit (32bit conflicts with conversations, not xep compliant)
Diffstat (limited to 'libs/libaxolotl/src/FingerprintProtocol.pb-c.c')
-rw-r--r-- | libs/libaxolotl/src/FingerprintProtocol.pb-c.c | 148 |
1 files changed, 74 insertions, 74 deletions
diff --git a/libs/libaxolotl/src/FingerprintProtocol.pb-c.c b/libs/libaxolotl/src/FingerprintProtocol.pb-c.c index f5e62e0301..421ee2febb 100644 --- a/libs/libaxolotl/src/FingerprintProtocol.pb-c.c +++ b/libs/libaxolotl/src/FingerprintProtocol.pb-c.c @@ -7,101 +7,101 @@ #endif #include "FingerprintProtocol.pb-c.h" -void textsecure__fingerprint_data__init - (Textsecure__FingerprintData *message) +void textsecure__logical_fingerprint__init + (Textsecure__LogicalFingerprint *message) { - static Textsecure__FingerprintData init_value = TEXTSECURE__FINGERPRINT_DATA__INIT; + static Textsecure__LogicalFingerprint init_value = TEXTSECURE__LOGICAL_FINGERPRINT__INIT; *message = init_value; } -size_t textsecure__fingerprint_data__get_packed_size - (const Textsecure__FingerprintData *message) +size_t textsecure__logical_fingerprint__get_packed_size + (const Textsecure__LogicalFingerprint *message) { - assert(message->base.descriptor == &textsecure__fingerprint_data__descriptor); + assert(message->base.descriptor == &textsecure__logical_fingerprint__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } -size_t textsecure__fingerprint_data__pack - (const Textsecure__FingerprintData *message, +size_t textsecure__logical_fingerprint__pack + (const Textsecure__LogicalFingerprint *message, uint8_t *out) { - assert(message->base.descriptor == &textsecure__fingerprint_data__descriptor); + assert(message->base.descriptor == &textsecure__logical_fingerprint__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } -size_t textsecure__fingerprint_data__pack_to_buffer - (const Textsecure__FingerprintData *message, +size_t textsecure__logical_fingerprint__pack_to_buffer + (const Textsecure__LogicalFingerprint *message, ProtobufCBuffer *buffer) { - assert(message->base.descriptor == &textsecure__fingerprint_data__descriptor); + assert(message->base.descriptor == &textsecure__logical_fingerprint__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } -Textsecure__FingerprintData * - textsecure__fingerprint_data__unpack +Textsecure__LogicalFingerprint * + textsecure__logical_fingerprint__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { - return (Textsecure__FingerprintData *) - protobuf_c_message_unpack (&textsecure__fingerprint_data__descriptor, + return (Textsecure__LogicalFingerprint *) + protobuf_c_message_unpack (&textsecure__logical_fingerprint__descriptor, allocator, len, data); } -void textsecure__fingerprint_data__free_unpacked - (Textsecure__FingerprintData *message, +void textsecure__logical_fingerprint__free_unpacked + (Textsecure__LogicalFingerprint *message, ProtobufCAllocator *allocator) { - assert(message->base.descriptor == &textsecure__fingerprint_data__descriptor); + assert(message->base.descriptor == &textsecure__logical_fingerprint__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -void textsecure__combined_fingerprint__init - (Textsecure__CombinedFingerprint *message) +void textsecure__combined_fingerprints__init + (Textsecure__CombinedFingerprints *message) { - static Textsecure__CombinedFingerprint init_value = TEXTSECURE__COMBINED_FINGERPRINT__INIT; + static Textsecure__CombinedFingerprints init_value = TEXTSECURE__COMBINED_FINGERPRINTS__INIT; *message = init_value; } -size_t textsecure__combined_fingerprint__get_packed_size - (const Textsecure__CombinedFingerprint *message) +size_t textsecure__combined_fingerprints__get_packed_size + (const Textsecure__CombinedFingerprints *message) { - assert(message->base.descriptor == &textsecure__combined_fingerprint__descriptor); + assert(message->base.descriptor == &textsecure__combined_fingerprints__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } -size_t textsecure__combined_fingerprint__pack - (const Textsecure__CombinedFingerprint *message, +size_t textsecure__combined_fingerprints__pack + (const Textsecure__CombinedFingerprints *message, uint8_t *out) { - assert(message->base.descriptor == &textsecure__combined_fingerprint__descriptor); + assert(message->base.descriptor == &textsecure__combined_fingerprints__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } -size_t textsecure__combined_fingerprint__pack_to_buffer - (const Textsecure__CombinedFingerprint *message, +size_t textsecure__combined_fingerprints__pack_to_buffer + (const Textsecure__CombinedFingerprints *message, ProtobufCBuffer *buffer) { - assert(message->base.descriptor == &textsecure__combined_fingerprint__descriptor); + assert(message->base.descriptor == &textsecure__combined_fingerprints__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } -Textsecure__CombinedFingerprint * - textsecure__combined_fingerprint__unpack +Textsecure__CombinedFingerprints * + textsecure__combined_fingerprints__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { - return (Textsecure__CombinedFingerprint *) - protobuf_c_message_unpack (&textsecure__combined_fingerprint__descriptor, + return (Textsecure__CombinedFingerprints *) + protobuf_c_message_unpack (&textsecure__combined_fingerprints__descriptor, allocator, len, data); } -void textsecure__combined_fingerprint__free_unpacked - (Textsecure__CombinedFingerprint *message, +void textsecure__combined_fingerprints__free_unpacked + (Textsecure__CombinedFingerprints *message, ProtobufCAllocator *allocator) { - assert(message->base.descriptor == &textsecure__combined_fingerprint__descriptor); + assert(message->base.descriptor == &textsecure__combined_fingerprints__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -static const ProtobufCFieldDescriptor textsecure__fingerprint_data__field_descriptors[2] = +static const ProtobufCFieldDescriptor textsecure__logical_fingerprint__field_descriptors[2] = { { - "publicKey", + "content", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, - offsetof(Textsecure__FingerprintData, has_publickey), - offsetof(Textsecure__FingerprintData, publickey), + offsetof(Textsecure__LogicalFingerprint, has_content), + offsetof(Textsecure__LogicalFingerprint, content), NULL, NULL, 0, /* flags */ @@ -112,47 +112,47 @@ static const ProtobufCFieldDescriptor textsecure__fingerprint_data__field_descri 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, - offsetof(Textsecure__FingerprintData, has_identifier), - offsetof(Textsecure__FingerprintData, identifier), + offsetof(Textsecure__LogicalFingerprint, has_identifier), + offsetof(Textsecure__LogicalFingerprint, identifier), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned textsecure__fingerprint_data__field_indices_by_name[] = { +static const unsigned textsecure__logical_fingerprint__field_indices_by_name[] = { + 0, /* field[0] = content */ 1, /* field[1] = identifier */ - 0, /* field[0] = publicKey */ }; -static const ProtobufCIntRange textsecure__fingerprint_data__number_ranges[1 + 1] = +static const ProtobufCIntRange textsecure__logical_fingerprint__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; -const ProtobufCMessageDescriptor textsecure__fingerprint_data__descriptor = +const ProtobufCMessageDescriptor textsecure__logical_fingerprint__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "textsecure.FingerprintData", - "FingerprintData", - "Textsecure__FingerprintData", + "textsecure.LogicalFingerprint", + "LogicalFingerprint", + "Textsecure__LogicalFingerprint", "textsecure", - sizeof(Textsecure__FingerprintData), + sizeof(Textsecure__LogicalFingerprint), 2, - textsecure__fingerprint_data__field_descriptors, - textsecure__fingerprint_data__field_indices_by_name, - 1, textsecure__fingerprint_data__number_ranges, - (ProtobufCMessageInit) textsecure__fingerprint_data__init, + textsecure__logical_fingerprint__field_descriptors, + textsecure__logical_fingerprint__field_indices_by_name, + 1, textsecure__logical_fingerprint__number_ranges, + (ProtobufCMessageInit) textsecure__logical_fingerprint__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor textsecure__combined_fingerprint__field_descriptors[3] = +static const ProtobufCFieldDescriptor textsecure__combined_fingerprints__field_descriptors[3] = { { "version", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, - offsetof(Textsecure__CombinedFingerprint, has_version), - offsetof(Textsecure__CombinedFingerprint, version), + offsetof(Textsecure__CombinedFingerprints, has_version), + offsetof(Textsecure__CombinedFingerprints, version), NULL, NULL, 0, /* flags */ @@ -164,8 +164,8 @@ static const ProtobufCFieldDescriptor textsecure__combined_fingerprint__field_de PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(Textsecure__CombinedFingerprint, localfingerprint), - &textsecure__fingerprint_data__descriptor, + offsetof(Textsecure__CombinedFingerprints, localfingerprint), + &textsecure__logical_fingerprint__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -176,35 +176,35 @@ static const ProtobufCFieldDescriptor textsecure__combined_fingerprint__field_de PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - offsetof(Textsecure__CombinedFingerprint, remotefingerprint), - &textsecure__fingerprint_data__descriptor, + offsetof(Textsecure__CombinedFingerprints, remotefingerprint), + &textsecure__logical_fingerprint__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned textsecure__combined_fingerprint__field_indices_by_name[] = { +static const unsigned textsecure__combined_fingerprints__field_indices_by_name[] = { 1, /* field[1] = localFingerprint */ 2, /* field[2] = remoteFingerprint */ 0, /* field[0] = version */ }; -static const ProtobufCIntRange textsecure__combined_fingerprint__number_ranges[1 + 1] = +static const ProtobufCIntRange textsecure__combined_fingerprints__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; -const ProtobufCMessageDescriptor textsecure__combined_fingerprint__descriptor = +const ProtobufCMessageDescriptor textsecure__combined_fingerprints__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "textsecure.CombinedFingerprint", - "CombinedFingerprint", - "Textsecure__CombinedFingerprint", + "textsecure.CombinedFingerprints", + "CombinedFingerprints", + "Textsecure__CombinedFingerprints", "textsecure", - sizeof(Textsecure__CombinedFingerprint), + sizeof(Textsecure__CombinedFingerprints), 3, - textsecure__combined_fingerprint__field_descriptors, - textsecure__combined_fingerprint__field_indices_by_name, - 1, textsecure__combined_fingerprint__number_ranges, - (ProtobufCMessageInit) textsecure__combined_fingerprint__init, + textsecure__combined_fingerprints__field_descriptors, + textsecure__combined_fingerprints__field_indices_by_name, + 1, textsecure__combined_fingerprints__number_ranges, + (ProtobufCMessageInit) textsecure__combined_fingerprints__init, NULL,NULL,NULL /* reserved[123] */ }; |