--- a/libpurple/protocols/gg/lib/packets.pb-c.h Fri Apr 10 13:27:57 2015 +0530 +++ b/libpurple/protocols/gg/lib/packets.pb-c.h Sat May 09 14:54:05 2015 +0200 @@ -1,14 +1,22 @@ /* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: packets.proto */ #ifndef PROTOBUF_C_packets_2eproto__INCLUDED #define PROTOBUF_C_packets_2eproto__INCLUDED #include "protobuf.h" -PROTOBUF_C_BEGIN_DECLS +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1000000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1000002 < PROTOBUF_C_MIN_COMPILER_VERSION +# 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. +#endif typedef struct _GG110LoginOK GG110LoginOK; +typedef struct _GG110Pong GG110Pong; typedef struct _GG110Ack GG110Ack; typedef struct _GG105Login GG105Login; typedef struct _GG110MessageAckLink GG110MessageAckLink; @@ -24,6 +32,7 @@ typedef struct _GG112TransferInfoUin GG112TransferInfoUin; typedef struct _GG112TransferInfoFile GG112TransferInfoFile; typedef struct _GG112TransferInfo GG112TransferInfo; +typedef struct _GG110MagicNotification GG110MagicNotification; /* --- enums --- */ @@ -32,12 +41,15 @@ GG110_ACK__TYPE__MSG = 1, GG110_ACK__TYPE__CHAT = 2, GG110_ACK__TYPE__CHAT_INFO = 3, + GG110_ACK__TYPE__MAGIC_NOTIFICATION = 5, GG110_ACK__TYPE__MPA = 6, GG110_ACK__TYPE__TRANSFER_INFO = 7 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(GG110_ACK__TYPE) } GG110Ack__Type; typedef enum _GG110Event__Type { GG110_EVENT__TYPE__XML = 0, GG110_EVENT__TYPE__JSON = 2 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(GG110_EVENT__TYPE) } GG110Event__Type; /* --- messages --- */ @@ -55,6 +67,16 @@ , 1, NULL, 0, 0 } +struct _GG110Pong +{ + ProtobufCMessage base; + uint32_t server_time; +}; +#define GG110_PONG__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&gg110_pong__descriptor) \ + , 0 } + + struct _GG110Ack { ProtobufCMessage base; @@ -64,7 +86,7 @@ }; #define GG110_ACK__INIT \ { PROTOBUF_C_MESSAGE_INIT (&gg110_ack__descriptor) \ - , 0, 0, 1 } + , 0, 0, 1u } struct _GG105Login @@ -93,7 +115,7 @@ extern char gg105_login__initial_descr__default_value[]; #define GG105_LOGIN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&gg105_login__descriptor) \ - , NULL, {0,NULL}, {0,NULL}, NULL, 8227, gg105_login__initial_descr__default_value, NULL, 4, 65994615, 198164, {0,NULL}, 255, 100, 0,127, 0,0, 0,0 } + , NULL, {0,NULL}, {0,NULL}, NULL, 8227u, gg105_login__initial_descr__default_value, NULL, 4, 65994615u, 198164u, {0,NULL}, 255, 100, 0,127u, 0,0, 0,0u } struct _GG110MessageAckLink @@ -123,7 +145,7 @@ }; #define GG110_MESSAGE_ACK__INIT \ { PROTOBUF_C_MESSAGE_INIT (&gg110_message_ack__descriptor) \ - , 0, 0, 0, 0,0, 0,0, 0,NULL, 0 } + , 0, 0, 0, 0,0, 0,0, 0,NULL, 0u } struct _GG110Event @@ -182,7 +204,7 @@ extern char gg110_send_message__dummy3__default_value[]; #define GG110_SEND_MESSAGE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&gg110_send_message__descriptor) \ - , 0,{0,NULL}, 8, 0, NULL, NULL, gg110_send_message__dummy3__default_value, 0,0 } + , 0,{0,NULL}, 8u, 0, NULL, NULL, gg110_send_message__dummy3__default_value, 0,0 } struct _GG110Imtoken @@ -234,7 +256,7 @@ }; #define GG110_OPTIONS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&gg110_options__descriptor) \ - , 0,NULL, 0 } + , 0,NULL, 0u } struct _GG110AccessInfo @@ -248,7 +270,7 @@ }; #define GG110_ACCESS_INFO__INIT \ { PROTOBUF_C_MESSAGE_INIT (&gg110_access_info__descriptor) \ - , 1, 0, 0, 0, 0 } + , 1u, 0, 0, 0, 0 } struct _GG112TransferInfoUin @@ -259,7 +281,7 @@ }; #define GG112_TRANSFER_INFO_UIN__INIT \ { PROTOBUF_C_MESSAGE_INIT (&gg112_transfer_info_uin__descriptor) \ - , 1, {0,NULL} } + , 1u, {0,NULL} } struct _GG112TransferInfoFile @@ -294,7 +316,23 @@ }; #define GG112_TRANSFER_INFO__INIT \ { PROTOBUF_C_MESSAGE_INIT (&gg112_transfer_info__descriptor) \ - , 6, NULL, NULL, 0, 0,NULL, NULL, 0, 0, 0 } + , 0, NULL, NULL, 0, 0,NULL, NULL, 0, 0, 0 } + + +struct _GG110MagicNotification +{ + ProtobufCMessage base; + int32_t dummy1; + int32_t seq; + int32_t dummy2; + int32_t dummy3; + ProtobufCBinaryData uin; + char *dummy4; +}; +extern char gg110_magic_notification__dummy4__default_value[]; +#define GG110_MAGIC_NOTIFICATION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&gg110_magic_notification__descriptor) \ + , 2, 0, 1, 1, {0,NULL}, gg110_magic_notification__dummy4__default_value } /* GG110LoginOK methods */ @@ -316,6 +354,25 @@ void gg110_login_ok__free_unpacked (GG110LoginOK *message, ProtobufCAllocator *allocator); +/* GG110Pong methods */ +void gg110_pong__init + (GG110Pong *message); +size_t gg110_pong__get_packed_size + (const GG110Pong *message); +size_t gg110_pong__pack + (const GG110Pong *message, + uint8_t *out); +size_t gg110_pong__pack_to_buffer + (const GG110Pong *message, + ProtobufCBuffer *buffer); +GG110Pong * + gg110_pong__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void gg110_pong__free_unpacked + (GG110Pong *message, + ProtobufCAllocator *allocator); /* GG110Ack methods */ void gg110_ack__init (GG110Ack *message); @@ -601,11 +658,33 @@ void gg112_transfer_info__free_unpacked (GG112TransferInfo *message, ProtobufCAllocator *allocator); +/* GG110MagicNotification methods */ +void gg110_magic_notification__init + (GG110MagicNotification *message); +size_t gg110_magic_notification__get_packed_size + (const GG110MagicNotification *message); +size_t gg110_magic_notification__pack + (const GG110MagicNotification *message, + uint8_t *out); +size_t gg110_magic_notification__pack_to_buffer + (const GG110MagicNotification *message, + ProtobufCBuffer *buffer); +GG110MagicNotification * + gg110_magic_notification__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void gg110_magic_notification__free_unpacked + (GG110MagicNotification *message, + ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*GG110LoginOK_Closure) (const GG110LoginOK *message, void *closure_data); +typedef void (*GG110Pong_Closure) + (const GG110Pong *message, + void *closure_data); typedef void (*GG110Ack_Closure) (const GG110Ack *message, void *closure_data); @@ -651,6 +730,9 @@ typedef void (*GG112TransferInfo_Closure) (const GG112TransferInfo *message, void *closure_data); +typedef void (*GG110MagicNotification_Closure) + (const GG110MagicNotification *message, + void *closure_data); /* --- services --- */ @@ -658,6 +740,7 @@ /* --- descriptors --- */ extern const ProtobufCMessageDescriptor gg110_login_ok__descriptor; +extern const ProtobufCMessageDescriptor gg110_pong__descriptor; extern const ProtobufCMessageDescriptor gg110_ack__descriptor; extern const ProtobufCEnumDescriptor gg110_ack__type__descriptor; extern const ProtobufCMessageDescriptor gg105_login__descriptor; @@ -675,8 +758,9 @@ extern const ProtobufCMessageDescriptor gg112_transfer_info_uin__descriptor; extern const ProtobufCMessageDescriptor gg112_transfer_info_file__descriptor; extern const ProtobufCMessageDescriptor gg112_transfer_info__descriptor; +extern const ProtobufCMessageDescriptor gg110_magic_notification__descriptor; -PROTOBUF_C_END_DECLS +PROTOBUF_C__END_DECLS -#endif /* PROTOBUF_packets_2eproto__INCLUDED */ +#endif /* PROTOBUF_C_packets_2eproto__INCLUDED */