--- a/libpurple/protocols/gg/lib/packets.pb-c.c Fri Apr 10 13:27:57 2015 +0530 +++ b/libpurple/protocols/gg/lib/packets.pb-c.c Sat May 09 14:54:05 2015 +0200 @@ -1,8 +1,9 @@ /* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: packets.proto */ /* Do not generate deprecated warnings for self */ -#ifndef PROTOBUF_C_NO_DEPRECATED -#define PROTOBUF_C_NO_DEPRECATED +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED #endif #include "packets.pb-c.h" @@ -15,21 +16,21 @@ size_t gg110_login_ok__get_packed_size (const GG110LoginOK *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_login_ok__descriptor); + assert(message->base.descriptor == &gg110_login_ok__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_login_ok__pack (const GG110LoginOK *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_login_ok__descriptor); + assert(message->base.descriptor == &gg110_login_ok__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_login_ok__pack_to_buffer (const GG110LoginOK *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_login_ok__descriptor); + assert(message->base.descriptor == &gg110_login_ok__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110LoginOK * @@ -46,7 +47,50 @@ (GG110LoginOK *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_login_ok__descriptor); + assert(message->base.descriptor == &gg110_login_ok__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void gg110_pong__init + (GG110Pong *message) +{ + static GG110Pong init_value = GG110_PONG__INIT; + *message = init_value; +} +size_t gg110_pong__get_packed_size + (const GG110Pong *message) +{ + assert(message->base.descriptor == &gg110_pong__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t gg110_pong__pack + (const GG110Pong *message, + uint8_t *out) +{ + assert(message->base.descriptor == &gg110_pong__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t gg110_pong__pack_to_buffer + (const GG110Pong *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &gg110_pong__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +GG110Pong * + gg110_pong__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (GG110Pong *) + protobuf_c_message_unpack (&gg110_pong__descriptor, + allocator, len, data); +} +void gg110_pong__free_unpacked + (GG110Pong *message, + ProtobufCAllocator *allocator) +{ + assert(message->base.descriptor == &gg110_pong__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_ack__init @@ -58,21 +102,21 @@ size_t gg110_ack__get_packed_size (const GG110Ack *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_ack__descriptor); + assert(message->base.descriptor == &gg110_ack__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_ack__pack (const GG110Ack *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_ack__descriptor); + assert(message->base.descriptor == &gg110_ack__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_ack__pack_to_buffer (const GG110Ack *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_ack__descriptor); + assert(message->base.descriptor == &gg110_ack__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110Ack * @@ -89,7 +133,7 @@ (GG110Ack *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_ack__descriptor); + assert(message->base.descriptor == &gg110_ack__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg105_login__init @@ -101,21 +145,21 @@ size_t gg105_login__get_packed_size (const GG105Login *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg105_login__descriptor); + assert(message->base.descriptor == &gg105_login__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg105_login__pack (const GG105Login *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg105_login__descriptor); + assert(message->base.descriptor == &gg105_login__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg105_login__pack_to_buffer (const GG105Login *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg105_login__descriptor); + assert(message->base.descriptor == &gg105_login__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG105Login * @@ -132,7 +176,7 @@ (GG105Login *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg105_login__descriptor); + assert(message->base.descriptor == &gg105_login__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_message_ack_link__init @@ -144,21 +188,21 @@ size_t gg110_message_ack_link__get_packed_size (const GG110MessageAckLink *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_message_ack_link__descriptor); + assert(message->base.descriptor == &gg110_message_ack_link__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_message_ack_link__pack (const GG110MessageAckLink *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_message_ack_link__descriptor); + assert(message->base.descriptor == &gg110_message_ack_link__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_message_ack_link__pack_to_buffer (const GG110MessageAckLink *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_message_ack_link__descriptor); + assert(message->base.descriptor == &gg110_message_ack_link__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110MessageAckLink * @@ -175,7 +219,7 @@ (GG110MessageAckLink *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_message_ack_link__descriptor); + assert(message->base.descriptor == &gg110_message_ack_link__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_message_ack__init @@ -187,21 +231,21 @@ size_t gg110_message_ack__get_packed_size (const GG110MessageAck *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_message_ack__descriptor); + assert(message->base.descriptor == &gg110_message_ack__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_message_ack__pack (const GG110MessageAck *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_message_ack__descriptor); + assert(message->base.descriptor == &gg110_message_ack__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_message_ack__pack_to_buffer (const GG110MessageAck *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_message_ack__descriptor); + assert(message->base.descriptor == &gg110_message_ack__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110MessageAck * @@ -218,7 +262,7 @@ (GG110MessageAck *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_message_ack__descriptor); + assert(message->base.descriptor == &gg110_message_ack__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_event__init @@ -230,21 +274,21 @@ size_t gg110_event__get_packed_size (const GG110Event *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_event__descriptor); + assert(message->base.descriptor == &gg110_event__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_event__pack (const GG110Event *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_event__descriptor); + assert(message->base.descriptor == &gg110_event__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_event__pack_to_buffer (const GG110Event *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_event__descriptor); + assert(message->base.descriptor == &gg110_event__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110Event * @@ -261,7 +305,7 @@ (GG110Event *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_event__descriptor); + assert(message->base.descriptor == &gg110_event__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_recv_message__init @@ -273,21 +317,21 @@ size_t gg110_recv_message__get_packed_size (const GG110RecvMessage *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_recv_message__descriptor); + assert(message->base.descriptor == &gg110_recv_message__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_recv_message__pack (const GG110RecvMessage *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_recv_message__descriptor); + assert(message->base.descriptor == &gg110_recv_message__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_recv_message__pack_to_buffer (const GG110RecvMessage *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_recv_message__descriptor); + assert(message->base.descriptor == &gg110_recv_message__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110RecvMessage * @@ -304,7 +348,7 @@ (GG110RecvMessage *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_recv_message__descriptor); + assert(message->base.descriptor == &gg110_recv_message__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_send_message__init @@ -316,21 +360,21 @@ size_t gg110_send_message__get_packed_size (const GG110SendMessage *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_send_message__descriptor); + assert(message->base.descriptor == &gg110_send_message__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_send_message__pack (const GG110SendMessage *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_send_message__descriptor); + assert(message->base.descriptor == &gg110_send_message__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_send_message__pack_to_buffer (const GG110SendMessage *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_send_message__descriptor); + assert(message->base.descriptor == &gg110_send_message__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110SendMessage * @@ -347,7 +391,7 @@ (GG110SendMessage *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_send_message__descriptor); + assert(message->base.descriptor == &gg110_send_message__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_imtoken__init @@ -359,21 +403,21 @@ size_t gg110_imtoken__get_packed_size (const GG110Imtoken *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_imtoken__descriptor); + assert(message->base.descriptor == &gg110_imtoken__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_imtoken__pack (const GG110Imtoken *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_imtoken__descriptor); + assert(message->base.descriptor == &gg110_imtoken__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_imtoken__pack_to_buffer (const GG110Imtoken *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_imtoken__descriptor); + assert(message->base.descriptor == &gg110_imtoken__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110Imtoken * @@ -390,7 +434,7 @@ (GG110Imtoken *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_imtoken__descriptor); + assert(message->base.descriptor == &gg110_imtoken__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_chat_info_update__init @@ -402,21 +446,21 @@ size_t gg110_chat_info_update__get_packed_size (const GG110ChatInfoUpdate *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_chat_info_update__descriptor); + assert(message->base.descriptor == &gg110_chat_info_update__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_chat_info_update__pack (const GG110ChatInfoUpdate *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_chat_info_update__descriptor); + assert(message->base.descriptor == &gg110_chat_info_update__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_chat_info_update__pack_to_buffer (const GG110ChatInfoUpdate *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_chat_info_update__descriptor); + assert(message->base.descriptor == &gg110_chat_info_update__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110ChatInfoUpdate * @@ -433,7 +477,7 @@ (GG110ChatInfoUpdate *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_chat_info_update__descriptor); + assert(message->base.descriptor == &gg110_chat_info_update__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void protobuf_kvp__init @@ -445,21 +489,21 @@ size_t protobuf_kvp__get_packed_size (const ProtobufKVP *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &protobuf_kvp__descriptor); + assert(message->base.descriptor == &protobuf_kvp__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t protobuf_kvp__pack (const ProtobufKVP *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &protobuf_kvp__descriptor); + assert(message->base.descriptor == &protobuf_kvp__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t protobuf_kvp__pack_to_buffer (const ProtobufKVP *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &protobuf_kvp__descriptor); + assert(message->base.descriptor == &protobuf_kvp__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } ProtobufKVP * @@ -476,7 +520,7 @@ (ProtobufKVP *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &protobuf_kvp__descriptor); + assert(message->base.descriptor == &protobuf_kvp__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_options__init @@ -488,21 +532,21 @@ size_t gg110_options__get_packed_size (const GG110Options *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_options__descriptor); + assert(message->base.descriptor == &gg110_options__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_options__pack (const GG110Options *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_options__descriptor); + assert(message->base.descriptor == &gg110_options__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_options__pack_to_buffer (const GG110Options *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_options__descriptor); + assert(message->base.descriptor == &gg110_options__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110Options * @@ -519,7 +563,7 @@ (GG110Options *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_options__descriptor); + assert(message->base.descriptor == &gg110_options__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg110_access_info__init @@ -531,21 +575,21 @@ size_t gg110_access_info__get_packed_size (const GG110AccessInfo *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_access_info__descriptor); + assert(message->base.descriptor == &gg110_access_info__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg110_access_info__pack (const GG110AccessInfo *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_access_info__descriptor); + assert(message->base.descriptor == &gg110_access_info__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg110_access_info__pack_to_buffer (const GG110AccessInfo *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_access_info__descriptor); + assert(message->base.descriptor == &gg110_access_info__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG110AccessInfo * @@ -562,7 +606,7 @@ (GG110AccessInfo *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg110_access_info__descriptor); + assert(message->base.descriptor == &gg110_access_info__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg112_transfer_info_uin__init @@ -574,21 +618,21 @@ size_t gg112_transfer_info_uin__get_packed_size (const GG112TransferInfoUin *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info_uin__descriptor); + assert(message->base.descriptor == &gg112_transfer_info_uin__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg112_transfer_info_uin__pack (const GG112TransferInfoUin *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info_uin__descriptor); + assert(message->base.descriptor == &gg112_transfer_info_uin__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg112_transfer_info_uin__pack_to_buffer (const GG112TransferInfoUin *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info_uin__descriptor); + assert(message->base.descriptor == &gg112_transfer_info_uin__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG112TransferInfoUin * @@ -605,7 +649,7 @@ (GG112TransferInfoUin *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info_uin__descriptor); + assert(message->base.descriptor == &gg112_transfer_info_uin__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg112_transfer_info_file__init @@ -617,21 +661,21 @@ size_t gg112_transfer_info_file__get_packed_size (const GG112TransferInfoFile *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info_file__descriptor); + assert(message->base.descriptor == &gg112_transfer_info_file__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg112_transfer_info_file__pack (const GG112TransferInfoFile *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info_file__descriptor); + assert(message->base.descriptor == &gg112_transfer_info_file__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg112_transfer_info_file__pack_to_buffer (const GG112TransferInfoFile *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info_file__descriptor); + assert(message->base.descriptor == &gg112_transfer_info_file__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG112TransferInfoFile * @@ -648,7 +692,7 @@ (GG112TransferInfoFile *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info_file__descriptor); + assert(message->base.descriptor == &gg112_transfer_info_file__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void gg112_transfer_info__init @@ -660,21 +704,21 @@ size_t gg112_transfer_info__get_packed_size (const GG112TransferInfo *message) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info__descriptor); + assert(message->base.descriptor == &gg112_transfer_info__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t gg112_transfer_info__pack (const GG112TransferInfo *message, uint8_t *out) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info__descriptor); + assert(message->base.descriptor == &gg112_transfer_info__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t gg112_transfer_info__pack_to_buffer (const GG112TransferInfo *message, ProtobufCBuffer *buffer) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info__descriptor); + assert(message->base.descriptor == &gg112_transfer_info__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } GG112TransferInfo * @@ -691,7 +735,50 @@ (GG112TransferInfo *message, ProtobufCAllocator *allocator) { - PROTOBUF_C_ASSERT (message->base.descriptor == &gg112_transfer_info__descriptor); + assert(message->base.descriptor == &gg112_transfer_info__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void gg110_magic_notification__init + (GG110MagicNotification *message) +{ + static GG110MagicNotification init_value = GG110_MAGIC_NOTIFICATION__INIT; + *message = init_value; +} +size_t gg110_magic_notification__get_packed_size + (const GG110MagicNotification *message) +{ + assert(message->base.descriptor == &gg110_magic_notification__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t gg110_magic_notification__pack + (const GG110MagicNotification *message, + uint8_t *out) +{ + assert(message->base.descriptor == &gg110_magic_notification__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t gg110_magic_notification__pack_to_buffer + (const GG110MagicNotification *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &gg110_magic_notification__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +GG110MagicNotification * + gg110_magic_notification__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (GG110MagicNotification *) + protobuf_c_message_unpack (&gg110_magic_notification__descriptor, + allocator, len, data); +} +void gg110_magic_notification__free_unpacked + (GG110MagicNotification *message, + ProtobufCAllocator *allocator) +{ + assert(message->base.descriptor == &gg110_magic_notification__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const int32_t gg110_login_ok__dummy1__default_value = 1; @@ -703,10 +790,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110LoginOK, dummy1), + offsetof(GG110LoginOK, dummy1), NULL, &gg110_login_ok__dummy1__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -715,10 +802,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110LoginOK, dummyhash), + offsetof(GG110LoginOK, dummyhash), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -727,10 +814,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110LoginOK, uin), + offsetof(GG110LoginOK, uin), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -739,10 +826,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110LoginOK, server_time), + offsetof(GG110LoginOK, server_time), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -759,7 +846,7 @@ }; const ProtobufCMessageDescriptor gg110_login_ok__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110LoginOK", "GG110LoginOK", "GG110LoginOK", @@ -772,41 +859,81 @@ (ProtobufCMessageInit) gg110_login_ok__init, NULL,NULL,NULL /* reserved[123] */ }; -const ProtobufCEnumValue gg110_ack__type__enum_values_by_number[5] = +static const ProtobufCFieldDescriptor gg110_pong__field_descriptors[1] = +{ + { + "server_time", + 1, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_FIXED32, + 0, /* quantifier_offset */ + offsetof(GG110Pong, server_time), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned gg110_pong__field_indices_by_name[] = { + 0, /* field[0] = server_time */ +}; +static const ProtobufCIntRange gg110_pong__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor gg110_pong__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "GG110Pong", + "GG110Pong", + "GG110Pong", + "", + sizeof(GG110Pong), + 1, + gg110_pong__field_descriptors, + gg110_pong__field_indices_by_name, + 1, gg110_pong__number_ranges, + (ProtobufCMessageInit) gg110_pong__init, + NULL,NULL,NULL /* reserved[123] */ +}; +const ProtobufCEnumValue gg110_ack__type__enum_values_by_number[6] = { { "MSG", "GG110_ACK__TYPE__MSG", 1 }, { "CHAT", "GG110_ACK__TYPE__CHAT", 2 }, { "CHAT_INFO", "GG110_ACK__TYPE__CHAT_INFO", 3 }, + { "MAGIC_NOTIFICATION", "GG110_ACK__TYPE__MAGIC_NOTIFICATION", 5 }, { "MPA", "GG110_ACK__TYPE__MPA", 6 }, { "TRANSFER_INFO", "GG110_ACK__TYPE__TRANSFER_INFO", 7 }, }; static const ProtobufCIntRange gg110_ack__type__value_ranges[] = { -{1, 0},{6, 3},{0, 5} +{1, 0},{5, 3},{0, 6} }; -const ProtobufCEnumValueIndex gg110_ack__type__enum_values_by_name[5] = +const ProtobufCEnumValueIndex gg110_ack__type__enum_values_by_name[6] = { { "CHAT", 1 }, { "CHAT_INFO", 2 }, - { "MPA", 3 }, + { "MAGIC_NOTIFICATION", 3 }, + { "MPA", 4 }, { "MSG", 0 }, - { "TRANSFER_INFO", 4 }, + { "TRANSFER_INFO", 5 }, }; const ProtobufCEnumDescriptor gg110_ack__type__descriptor = { - PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC, + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "GG110Ack.Type", "Type", "GG110Ack__Type", "", - 5, + 6, gg110_ack__type__enum_values_by_number, - 5, + 6, gg110_ack__type__enum_values_by_name, 2, gg110_ack__type__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }; -static const uint32_t gg110_ack__dummy1__default_value = 1; +static const uint32_t gg110_ack__dummy1__default_value = 1u; static const ProtobufCFieldDescriptor gg110_ack__field_descriptors[3] = { { @@ -815,10 +942,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Ack, type), + offsetof(GG110Ack, type), &gg110_ack__type__descriptor, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -827,10 +954,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Ack, seq), + offsetof(GG110Ack, seq), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -839,10 +966,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Ack, dummy1), + offsetof(GG110Ack, dummy1), NULL, &gg110_ack__dummy1__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -858,7 +985,7 @@ }; const ProtobufCMessageDescriptor gg110_ack__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110Ack", "GG110Ack", "GG110Ack", @@ -872,15 +999,15 @@ NULL,NULL,NULL /* reserved[123] */ }; char gg105_login__initial_descr__default_value[] = ""; -static const uint32_t gg105_login__initial_status__default_value = 8227; +static const uint32_t gg105_login__initial_status__default_value = 8227u; static const int32_t gg105_login__dummy1__default_value = 4; -static const uint32_t gg105_login__dummy2__default_value = 65994615; -static const uint32_t gg105_login__dummy3__default_value = 198164; +static const uint32_t gg105_login__dummy2__default_value = 65994615u; +static const uint32_t gg105_login__dummy3__default_value = 198164u; static const int32_t gg105_login__dummy5__default_value = 255; static const int32_t gg105_login__dummy6__default_value = 100; -static const uint32_t gg105_login__dummy7__default_value = 127; +static const uint32_t gg105_login__dummy7__default_value = 127u; static const int32_t gg105_login__dummy8__default_value = 0; -static const uint32_t gg105_login__dummy10__default_value = 0; +static const uint32_t gg105_login__dummy10__default_value = 0u; static const ProtobufCFieldDescriptor gg105_login__field_descriptors[16] = { { @@ -889,10 +1016,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, lang), + offsetof(GG105Login, lang), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -901,10 +1028,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, uin), + offsetof(GG105Login, uin), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -913,10 +1040,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, hash), + offsetof(GG105Login, hash), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -925,10 +1052,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, dummy1), + offsetof(GG105Login, dummy1), NULL, &gg105_login__dummy1__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -937,10 +1064,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, dummy2), + offsetof(GG105Login, dummy2), NULL, &gg105_login__dummy2__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -949,10 +1076,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, dummy3), + offsetof(GG105Login, dummy3), NULL, &gg105_login__dummy3__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -961,10 +1088,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, client), + offsetof(GG105Login, client), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -973,10 +1100,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, initial_status), + offsetof(GG105Login, initial_status), NULL, &gg105_login__initial_status__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -985,10 +1112,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, initial_descr), + offsetof(GG105Login, initial_descr), NULL, &gg105_login__initial_descr__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -997,10 +1124,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, dummy4), + offsetof(GG105Login, dummy4), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1009,10 +1136,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, supported_features), + offsetof(GG105Login, supported_features), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1021,10 +1148,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, dummy5), + offsetof(GG105Login, dummy5), NULL, &gg105_login__dummy5__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1033,10 +1160,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG105Login, dummy6), + offsetof(GG105Login, dummy6), NULL, &gg105_login__dummy6__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1044,11 +1171,11 @@ 14, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_FIXED32, - PROTOBUF_C_OFFSETOF(GG105Login, has_dummy7), - PROTOBUF_C_OFFSETOF(GG105Login, dummy7), + offsetof(GG105Login, has_dummy7), + offsetof(GG105Login, dummy7), NULL, &gg105_login__dummy7__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1056,11 +1183,11 @@ 15, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_INT32, - PROTOBUF_C_OFFSETOF(GG105Login, has_dummy8), - PROTOBUF_C_OFFSETOF(GG105Login, dummy8), + offsetof(GG105Login, has_dummy8), + offsetof(GG105Login, dummy8), NULL, &gg105_login__dummy8__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1068,11 +1195,11 @@ 17, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, - PROTOBUF_C_OFFSETOF(GG105Login, has_dummy10), - PROTOBUF_C_OFFSETOF(GG105Login, dummy10), + offsetof(GG105Login, has_dummy10), + offsetof(GG105Login, dummy10), NULL, &gg105_login__dummy10__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1102,7 +1229,7 @@ }; const ProtobufCMessageDescriptor gg105_login__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG105Login", "GG105Login", "GG105Login", @@ -1123,10 +1250,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED64, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110MessageAckLink, id), + offsetof(GG110MessageAckLink, id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1135,10 +1262,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110MessageAckLink, url), + offsetof(GG110MessageAckLink, url), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1153,7 +1280,7 @@ }; const ProtobufCMessageDescriptor gg110_message_ack_link__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110MessageAckLink", "GG110MessageAckLink", "GG110MessageAckLink", @@ -1166,7 +1293,7 @@ (ProtobufCMessageInit) gg110_message_ack_link__init, NULL,NULL,NULL /* reserved[123] */ }; -static const uint32_t gg110_message_ack__dummy1__default_value = 0; +static const uint32_t gg110_message_ack__dummy1__default_value = 0u; static const ProtobufCFieldDescriptor gg110_message_ack__field_descriptors[7] = { { @@ -1175,10 +1302,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110MessageAck, msg_type), + offsetof(GG110MessageAck, msg_type), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1187,10 +1314,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110MessageAck, seq), + offsetof(GG110MessageAck, seq), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1199,10 +1326,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110MessageAck, time), + offsetof(GG110MessageAck, time), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1210,11 +1337,11 @@ 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_FIXED64, - PROTOBUF_C_OFFSETOF(GG110MessageAck, has_msg_id), - PROTOBUF_C_OFFSETOF(GG110MessageAck, msg_id), + offsetof(GG110MessageAck, has_msg_id), + offsetof(GG110MessageAck, msg_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1222,11 +1349,11 @@ 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_FIXED64, - PROTOBUF_C_OFFSETOF(GG110MessageAck, has_conv_id), - PROTOBUF_C_OFFSETOF(GG110MessageAck, conv_id), + offsetof(GG110MessageAck, has_conv_id), + offsetof(GG110MessageAck, conv_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1234,11 +1361,11 @@ 6, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - PROTOBUF_C_OFFSETOF(GG110MessageAck, n_links), - PROTOBUF_C_OFFSETOF(GG110MessageAck, links), + offsetof(GG110MessageAck, n_links), + offsetof(GG110MessageAck, links), &gg110_message_ack_link__descriptor, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1247,10 +1374,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110MessageAck, dummy1), + offsetof(GG110MessageAck, dummy1), NULL, &gg110_message_ack__dummy1__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1270,7 +1397,7 @@ }; const ProtobufCMessageDescriptor gg110_message_ack__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110MessageAck", "GG110MessageAck", "GG110MessageAck", @@ -1298,7 +1425,7 @@ }; const ProtobufCEnumDescriptor gg110_event__type__descriptor = { - PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC, + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "GG110Event.Type", "Type", "GG110Event__Type", @@ -1319,10 +1446,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Event, type), + offsetof(GG110Event, type), &gg110_event__type__descriptor, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1331,10 +1458,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Event, seq), + offsetof(GG110Event, seq), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1343,10 +1470,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Event, data), + offsetof(GG110Event, data), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1355,10 +1482,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Event, subtype), + offsetof(GG110Event, subtype), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1366,11 +1493,11 @@ 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT64, - PROTOBUF_C_OFFSETOF(GG110Event, has_id), - PROTOBUF_C_OFFSETOF(GG110Event, id), + offsetof(GG110Event, has_id), + offsetof(GG110Event, id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1388,7 +1515,7 @@ }; const ProtobufCMessageDescriptor gg110_event__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110Event", "GG110Event", "GG110Event", @@ -1409,11 +1536,11 @@ 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, - PROTOBUF_C_OFFSETOF(GG110RecvMessage, has_sender), - PROTOBUF_C_OFFSETOF(GG110RecvMessage, sender), + offsetof(GG110RecvMessage, has_sender), + offsetof(GG110RecvMessage, sender), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1422,10 +1549,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110RecvMessage, flags), + offsetof(GG110RecvMessage, flags), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1434,10 +1561,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110RecvMessage, seq), + offsetof(GG110RecvMessage, seq), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1446,10 +1573,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110RecvMessage, time), + offsetof(GG110RecvMessage, time), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1458,10 +1585,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110RecvMessage, msg_plain), + offsetof(GG110RecvMessage, msg_plain), NULL, &gg110_recv_message__msg_plain__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1470,10 +1597,10 @@ PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110RecvMessage, msg_xhtml), + offsetof(GG110RecvMessage, msg_xhtml), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1481,11 +1608,11 @@ 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, - PROTOBUF_C_OFFSETOF(GG110RecvMessage, has_data), - PROTOBUF_C_OFFSETOF(GG110RecvMessage, data), + offsetof(GG110RecvMessage, has_data), + offsetof(GG110RecvMessage, data), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1493,11 +1620,11 @@ 9, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_FIXED64, - PROTOBUF_C_OFFSETOF(GG110RecvMessage, has_msg_id), - PROTOBUF_C_OFFSETOF(GG110RecvMessage, msg_id), + offsetof(GG110RecvMessage, has_msg_id), + offsetof(GG110RecvMessage, msg_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1505,11 +1632,11 @@ 10, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_FIXED64, - PROTOBUF_C_OFFSETOF(GG110RecvMessage, has_chat_id), - PROTOBUF_C_OFFSETOF(GG110RecvMessage, chat_id), + offsetof(GG110RecvMessage, has_chat_id), + offsetof(GG110RecvMessage, chat_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1517,11 +1644,11 @@ 11, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_FIXED64, - PROTOBUF_C_OFFSETOF(GG110RecvMessage, has_conv_id), - PROTOBUF_C_OFFSETOF(GG110RecvMessage, conv_id), + offsetof(GG110RecvMessage, has_conv_id), + offsetof(GG110RecvMessage, conv_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1545,7 +1672,7 @@ }; const ProtobufCMessageDescriptor gg110_recv_message__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110RecvMessage", "GG110RecvMessage", "GG110RecvMessage", @@ -1559,7 +1686,7 @@ NULL,NULL,NULL /* reserved[123] */ }; char gg110_send_message__dummy3__default_value[] = ""; -static const uint32_t gg110_send_message__dummy1__default_value = 8; +static const uint32_t gg110_send_message__dummy1__default_value = 8u; static const ProtobufCFieldDescriptor gg110_send_message__field_descriptors[7] = { { @@ -1567,11 +1694,11 @@ 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BYTES, - PROTOBUF_C_OFFSETOF(GG110SendMessage, has_recipient), - PROTOBUF_C_OFFSETOF(GG110SendMessage, recipient), + offsetof(GG110SendMessage, has_recipient), + offsetof(GG110SendMessage, recipient), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1580,10 +1707,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110SendMessage, dummy1), + offsetof(GG110SendMessage, dummy1), NULL, &gg110_send_message__dummy1__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1592,10 +1719,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110SendMessage, seq), + offsetof(GG110SendMessage, seq), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1604,10 +1731,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110SendMessage, msg_plain), + offsetof(GG110SendMessage, msg_plain), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1616,10 +1743,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110SendMessage, msg_xhtml), + offsetof(GG110SendMessage, msg_xhtml), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1628,10 +1755,10 @@ PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110SendMessage, dummy3), + offsetof(GG110SendMessage, dummy3), NULL, &gg110_send_message__dummy3__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1639,11 +1766,11 @@ 10, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_FIXED64, - PROTOBUF_C_OFFSETOF(GG110SendMessage, has_chat_id), - PROTOBUF_C_OFFSETOF(GG110SendMessage, chat_id), + offsetof(GG110SendMessage, has_chat_id), + offsetof(GG110SendMessage, chat_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1665,7 +1792,7 @@ }; const ProtobufCMessageDescriptor gg110_send_message__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110SendMessage", "GG110SendMessage", "GG110SendMessage", @@ -1686,10 +1813,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Imtoken, imtoken), + offsetof(GG110Imtoken, imtoken), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1703,7 +1830,7 @@ }; const ProtobufCMessageDescriptor gg110_imtoken__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110Imtoken", "GG110Imtoken", "GG110Imtoken", @@ -1724,10 +1851,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, participant), + offsetof(GG110ChatInfoUpdate, participant), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1736,10 +1863,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, inviter), + offsetof(GG110ChatInfoUpdate, inviter), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1748,10 +1875,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, update_type), + offsetof(GG110ChatInfoUpdate, update_type), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1760,10 +1887,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, time), + offsetof(GG110ChatInfoUpdate, time), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1772,10 +1899,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, dummy1), + offsetof(GG110ChatInfoUpdate, dummy1), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1784,10 +1911,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, version), + offsetof(GG110ChatInfoUpdate, version), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1796,10 +1923,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, dummy2), + offsetof(GG110ChatInfoUpdate, dummy2), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1808,10 +1935,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED64, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, msg_id), + offsetof(GG110ChatInfoUpdate, msg_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1820,10 +1947,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED64, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, chat_id), + offsetof(GG110ChatInfoUpdate, chat_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1832,10 +1959,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED64, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110ChatInfoUpdate, conv_id), + offsetof(GG110ChatInfoUpdate, conv_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1859,7 +1986,7 @@ }; const ProtobufCMessageDescriptor gg110_chat_info_update__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110ChatInfoUpdate", "GG110ChatInfoUpdate", "GG110ChatInfoUpdate", @@ -1880,10 +2007,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(ProtobufKVP, key), + offsetof(ProtobufKVP, key), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1892,10 +2019,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(ProtobufKVP, value), + offsetof(ProtobufKVP, value), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1910,7 +2037,7 @@ }; const ProtobufCMessageDescriptor protobuf_kvp__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "ProtobufKVP", "ProtobufKVP", "ProtobufKVP", @@ -1923,7 +2050,7 @@ (ProtobufCMessageInit) protobuf_kvp__init, NULL,NULL,NULL /* reserved[123] */ }; -static const uint32_t gg110_options__dummy1__default_value = 0; +static const uint32_t gg110_options__dummy1__default_value = 0u; static const ProtobufCFieldDescriptor gg110_options__field_descriptors[2] = { { @@ -1931,11 +2058,11 @@ 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - PROTOBUF_C_OFFSETOF(GG110Options, n_options), - PROTOBUF_C_OFFSETOF(GG110Options, options), + offsetof(GG110Options, n_options), + offsetof(GG110Options, options), &protobuf_kvp__descriptor, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1944,10 +2071,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110Options, dummy1), + offsetof(GG110Options, dummy1), NULL, &gg110_options__dummy1__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -1962,7 +2089,7 @@ }; const ProtobufCMessageDescriptor gg110_options__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110Options", "GG110Options", "GG110Options", @@ -1975,7 +2102,7 @@ (ProtobufCMessageInit) gg110_options__init, NULL,NULL,NULL /* reserved[123] */ }; -static const uint32_t gg110_access_info__dummy1__default_value = 1; +static const uint32_t gg110_access_info__dummy1__default_value = 1u; static const ProtobufCFieldDescriptor gg110_access_info__field_descriptors[5] = { { @@ -1984,10 +2111,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110AccessInfo, dummy1), + offsetof(GG110AccessInfo, dummy1), NULL, &gg110_access_info__dummy1__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -1996,10 +2123,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110AccessInfo, dummy2), + offsetof(GG110AccessInfo, dummy2), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2008,10 +2135,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110AccessInfo, last_message), + offsetof(GG110AccessInfo, last_message), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2020,10 +2147,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110AccessInfo, last_file_transfer), + offsetof(GG110AccessInfo, last_file_transfer), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2032,10 +2159,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG110AccessInfo, last_conference_ch), + offsetof(GG110AccessInfo, last_conference_ch), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -2053,7 +2180,7 @@ }; const ProtobufCMessageDescriptor gg110_access_info__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG110AccessInfo", "GG110AccessInfo", "GG110AccessInfo", @@ -2066,7 +2193,7 @@ (ProtobufCMessageInit) gg110_access_info__init, NULL,NULL,NULL /* reserved[123] */ }; -static const uint32_t gg112_transfer_info_uin__dummy1__default_value = 1; +static const uint32_t gg112_transfer_info_uin__dummy1__default_value = 1u; static const ProtobufCFieldDescriptor gg112_transfer_info_uin__field_descriptors[2] = { { @@ -2075,10 +2202,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfoUin, dummy1), + offsetof(GG112TransferInfoUin, dummy1), NULL, &gg112_transfer_info_uin__dummy1__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2087,10 +2214,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfoUin, uin), + offsetof(GG112TransferInfoUin, uin), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -2105,7 +2232,7 @@ }; const ProtobufCMessageDescriptor gg112_transfer_info_uin__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG112TransferInfoUin", "GG112TransferInfoUin", "GG112TransferInfoUin", @@ -2127,10 +2254,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfoFile, type), + offsetof(GG112TransferInfoFile, type), NULL, &gg112_transfer_info_file__type__default_value, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2139,10 +2266,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfoFile, url), + offsetof(GG112TransferInfoFile, url), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2151,10 +2278,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfoFile, content_type), + offsetof(GG112TransferInfoFile, content_type), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2163,10 +2290,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfoFile, filename), + offsetof(GG112TransferInfoFile, filename), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2175,10 +2302,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfoFile, filesize), + offsetof(GG112TransferInfoFile, filesize), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2187,10 +2314,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED64, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfoFile, msg_id), + offsetof(GG112TransferInfoFile, msg_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -2211,7 +2338,7 @@ }; const ProtobufCMessageDescriptor gg112_transfer_info_file__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG112TransferInfoFile", "GG112TransferInfoFile", "GG112TransferInfoFile", @@ -2224,7 +2351,6 @@ (ProtobufCMessageInit) gg112_transfer_info_file__init, NULL,NULL,NULL /* reserved[123] */ }; -static const uint32_t gg112_transfer_info__dummy1__default_value = 6; static const ProtobufCFieldDescriptor gg112_transfer_info__field_descriptors[9] = { { @@ -2233,10 +2359,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfo, dummy1), + offsetof(GG112TransferInfo, dummy1), NULL, - &gg112_transfer_info__dummy1__default_value, - 0, /* packed */ + NULL, + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2245,10 +2371,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfo, peer), + offsetof(GG112TransferInfo, peer), &gg112_transfer_info_uin__descriptor, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2257,10 +2383,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfo, time), + offsetof(GG112TransferInfo, time), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2269,10 +2395,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfo, sender), + offsetof(GG112TransferInfo, sender), &gg112_transfer_info_uin__descriptor, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2280,23 +2406,23 @@ 5, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_MESSAGE, - PROTOBUF_C_OFFSETOF(GG112TransferInfo, n_data), - PROTOBUF_C_OFFSETOF(GG112TransferInfo, data), + offsetof(GG112TransferInfo, n_data), + offsetof(GG112TransferInfo, data), &protobuf_kvp__descriptor, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "file", 6, - PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfo, file), + offsetof(GG112TransferInfo, file), &gg112_transfer_info_file__descriptor, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2305,10 +2431,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfo, seq), + offsetof(GG112TransferInfo, seq), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2317,10 +2443,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED64, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfo, msg_id), + offsetof(GG112TransferInfo, msg_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { @@ -2329,10 +2455,10 @@ PROTOBUF_C_LABEL_REQUIRED, PROTOBUF_C_TYPE_FIXED64, 0, /* quantifier_offset */ - PROTOBUF_C_OFFSETOF(GG112TransferInfo, conv_id), + offsetof(GG112TransferInfo, conv_id), NULL, NULL, - 0, /* packed */ + 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; @@ -2355,7 +2481,7 @@ }; const ProtobufCMessageDescriptor gg112_transfer_info__descriptor = { - PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC, + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "GG112TransferInfo", "GG112TransferInfo", "GG112TransferInfo", @@ -2368,3 +2494,110 @@ (ProtobufCMessageInit) gg112_transfer_info__init, NULL,NULL,NULL /* reserved[123] */ }; +char gg110_magic_notification__dummy4__default_value[] = ""; +static const int32_t gg110_magic_notification__dummy1__default_value = 2; +static const int32_t gg110_magic_notification__dummy2__default_value = 1; +static const int32_t gg110_magic_notification__dummy3__default_value = 1; +static const ProtobufCFieldDescriptor gg110_magic_notification__field_descriptors[6] = +{ + { + "dummy1", + 1, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(GG110MagicNotification, dummy1), + NULL, + &gg110_magic_notification__dummy1__default_value, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "seq", + 2, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(GG110MagicNotification, seq), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "dummy2", + 3, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(GG110MagicNotification, dummy2), + NULL, + &gg110_magic_notification__dummy2__default_value, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "dummy3", + 4, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(GG110MagicNotification, dummy3), + NULL, + &gg110_magic_notification__dummy3__default_value, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "uin", + 5, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(GG110MagicNotification, uin), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "dummy4", + 6, + PROTOBUF_C_LABEL_REQUIRED, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(GG110MagicNotification, dummy4), + NULL, + &gg110_magic_notification__dummy4__default_value, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned gg110_magic_notification__field_indices_by_name[] = { + 0, /* field[0] = dummy1 */ + 2, /* field[2] = dummy2 */ + 3, /* field[3] = dummy3 */ + 5, /* field[5] = dummy4 */ + 1, /* field[1] = seq */ + 4, /* field[4] = uin */ +}; +static const ProtobufCIntRange gg110_magic_notification__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor gg110_magic_notification__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "GG110MagicNotification", + "GG110MagicNotification", + "GG110MagicNotification", + "", + sizeof(GG110MagicNotification), + 6, + gg110_magic_notification__field_descriptors, + gg110_magic_notification__field_indices_by_name, + 1, gg110_magic_notification__number_ranges, + (ProtobufCMessageInit) gg110_magic_notification__init, + NULL,NULL,NULL /* reserved[123] */ +};