1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */ 2 /* Generated from: packets.proto */ 3 4 #ifndef PROTOBUF_C_packets_2eproto__INCLUDED 5 #define PROTOBUF_C_packets_2eproto__INCLUDED 6 7 #include "protobuf.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 1000002 < 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 _GG110LoginOK GG110LoginOK; 19 typedef struct _GG110Pong GG110Pong; 20 typedef struct _GG110Ack GG110Ack; 21 typedef struct _GG105Login GG105Login; 22 typedef struct _GG110MessageAckLink GG110MessageAckLink; 23 typedef struct _GG110MessageAck GG110MessageAck; 24 typedef struct _GG110Event GG110Event; 25 typedef struct _GG110RecvMessage GG110RecvMessage; 26 typedef struct _GG110SendMessage GG110SendMessage; 27 typedef struct _GG110Imtoken GG110Imtoken; 28 typedef struct _GG110ChatInfoUpdate GG110ChatInfoUpdate; 29 typedef struct _ProtobufKVP ProtobufKVP; 30 typedef struct _GG110Options GG110Options; 31 typedef struct _GG110AccessInfo GG110AccessInfo; 32 typedef struct _GG112TransferInfoUin GG112TransferInfoUin; 33 typedef struct _GG112TransferInfoFile GG112TransferInfoFile; 34 typedef struct _GG112TransferInfo GG112TransferInfo; 35 typedef struct _GG110MagicNotification GG110MagicNotification; 36 37 38 /* --- enums --- */ 39 40 typedef enum _GG110Ack__Type { 41 GG110_ACK__TYPE__MSG = 1, 42 GG110_ACK__TYPE__CHAT = 2, 43 GG110_ACK__TYPE__CHAT_INFO = 3, 44 GG110_ACK__TYPE__MAGIC_NOTIFICATION = 5, 45 GG110_ACK__TYPE__MPA = 6, 46 GG110_ACK__TYPE__TRANSFER_INFO = 7 47 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(GG110_ACK__TYPE) 48 } GG110Ack__Type; 49 typedef enum _GG110Event__Type { 50 GG110_EVENT__TYPE__XML = 0, 51 GG110_EVENT__TYPE__JSON = 2 52 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(GG110_EVENT__TYPE) 53 } GG110Event__Type; 54 55 /* --- messages --- */ 56 57 struct _GG110LoginOK 58 { 59 ProtobufCMessage base; 60 int32_t dummy1; 61 char *dummyhash; 62 uint32_t uin; 63 uint32_t server_time; 64 }; 65 #define GG110_LOGIN_OK__INIT \ 66 { PROTOBUF_C_MESSAGE_INIT (&gg110_login_ok__descriptor) \ 67 , 1, NULL, 0, 0 } 68 69 70 struct _GG110Pong 71 { 72 ProtobufCMessage base; 73 uint32_t server_time; 74 }; 75 #define GG110_PONG__INIT \ 76 { PROTOBUF_C_MESSAGE_INIT (&gg110_pong__descriptor) \ 77 , 0 } 78 79 80 struct _GG110Ack 81 { 82 ProtobufCMessage base; 83 GG110Ack__Type type; 84 uint32_t seq; 85 uint32_t dummy1; 86 }; 87 #define GG110_ACK__INIT \ 88 { PROTOBUF_C_MESSAGE_INIT (&gg110_ack__descriptor) \ 89 , 0, 0, 1u } 90 91 92 struct _GG105Login 93 { 94 ProtobufCMessage base; 95 char *lang; 96 ProtobufCBinaryData uin; 97 ProtobufCBinaryData hash; 98 char *client; 99 uint32_t initial_status; 100 char *initial_descr; 101 char *supported_features; 102 int32_t dummy1; 103 uint32_t dummy2; 104 uint32_t dummy3; 105 ProtobufCBinaryData dummy4; 106 int32_t dummy5; 107 int32_t dummy6; 108 protobuf_c_boolean has_dummy7; 109 uint32_t dummy7; 110 protobuf_c_boolean has_dummy8; 111 int32_t dummy8; 112 protobuf_c_boolean has_dummy10; 113 uint32_t dummy10; 114 }; 115 extern char gg105_login__initial_descr__default_value[]; 116 #define GG105_LOGIN__INIT \ 117 { PROTOBUF_C_MESSAGE_INIT (&gg105_login__descriptor) \ 118 , 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 } 119 120 121 struct _GG110MessageAckLink 122 { 123 ProtobufCMessage base; 124 uint64_t id; 125 char *url; 126 }; 127 #define GG110_MESSAGE_ACK_LINK__INIT \ 128 { PROTOBUF_C_MESSAGE_INIT (&gg110_message_ack_link__descriptor) \ 129 , 0, NULL } 130 131 132 struct _GG110MessageAck 133 { 134 ProtobufCMessage base; 135 uint32_t msg_type; 136 uint32_t seq; 137 uint32_t time; 138 protobuf_c_boolean has_msg_id; 139 uint64_t msg_id; 140 protobuf_c_boolean has_conv_id; 141 uint64_t conv_id; 142 size_t n_links; 143 GG110MessageAckLink **links; 144 uint32_t dummy1; 145 }; 146 #define GG110_MESSAGE_ACK__INIT \ 147 { PROTOBUF_C_MESSAGE_INIT (&gg110_message_ack__descriptor) \ 148 , 0, 0, 0, 0,0, 0,0, 0,NULL, 0u } 149 150 151 struct _GG110Event 152 { 153 ProtobufCMessage base; 154 GG110Event__Type type; 155 uint32_t seq; 156 char *data; 157 char *subtype; 158 protobuf_c_boolean has_id; 159 uint64_t id; 160 }; 161 #define GG110_EVENT__INIT \ 162 { PROTOBUF_C_MESSAGE_INIT (&gg110_event__descriptor) \ 163 , 0, 0, NULL, NULL, 0,0 } 164 165 166 struct _GG110RecvMessage 167 { 168 ProtobufCMessage base; 169 protobuf_c_boolean has_sender; 170 ProtobufCBinaryData sender; 171 uint32_t flags; 172 uint32_t seq; 173 uint32_t time; 174 char *msg_plain; 175 char *msg_xhtml; 176 protobuf_c_boolean has_data; 177 ProtobufCBinaryData data; 178 protobuf_c_boolean has_msg_id; 179 uint64_t msg_id; 180 protobuf_c_boolean has_chat_id; 181 uint64_t chat_id; 182 protobuf_c_boolean has_conv_id; 183 uint64_t conv_id; 184 }; 185 extern char gg110_recv_message__msg_plain__default_value[]; 186 #define GG110_RECV_MESSAGE__INIT \ 187 { PROTOBUF_C_MESSAGE_INIT (&gg110_recv_message__descriptor) \ 188 , 0,{0,NULL}, 0, 0, 0, gg110_recv_message__msg_plain__default_value, NULL, 0,{0,NULL}, 0,0, 0,0, 0,0 } 189 190 191 struct _GG110SendMessage 192 { 193 ProtobufCMessage base; 194 protobuf_c_boolean has_recipient; 195 ProtobufCBinaryData recipient; 196 uint32_t dummy1; 197 uint32_t seq; 198 char *msg_plain; 199 char *msg_xhtml; 200 char *dummy3; 201 protobuf_c_boolean has_chat_id; 202 uint64_t chat_id; 203 }; 204 extern char gg110_send_message__dummy3__default_value[]; 205 #define GG110_SEND_MESSAGE__INIT \ 206 { PROTOBUF_C_MESSAGE_INIT (&gg110_send_message__descriptor) \ 207 , 0,{0,NULL}, 8u, 0, NULL, NULL, gg110_send_message__dummy3__default_value, 0,0 } 208 209 210 struct _GG110Imtoken 211 { 212 ProtobufCMessage base; 213 char *imtoken; 214 }; 215 #define GG110_IMTOKEN__INIT \ 216 { PROTOBUF_C_MESSAGE_INIT (&gg110_imtoken__descriptor) \ 217 , NULL } 218 219 220 struct _GG110ChatInfoUpdate 221 { 222 ProtobufCMessage base; 223 ProtobufCBinaryData participant; 224 ProtobufCBinaryData inviter; 225 uint32_t update_type; 226 uint32_t time; 227 uint32_t dummy1; 228 uint32_t version; 229 uint32_t dummy2; 230 uint64_t msg_id; 231 uint64_t chat_id; 232 uint64_t conv_id; 233 }; 234 #define GG110_CHAT_INFO_UPDATE__INIT \ 235 { PROTOBUF_C_MESSAGE_INIT (&gg110_chat_info_update__descriptor) \ 236 , {0,NULL}, {0,NULL}, 0, 0, 0, 0, 0, 0, 0, 0 } 237 238 239 struct _ProtobufKVP 240 { 241 ProtobufCMessage base; 242 char *key; 243 char *value; 244 }; 245 #define PROTOBUF_KVP__INIT \ 246 { PROTOBUF_C_MESSAGE_INIT (&protobuf_kvp__descriptor) \ 247 , NULL, NULL } 248 249 250 struct _GG110Options 251 { 252 ProtobufCMessage base; 253 size_t n_options; 254 ProtobufKVP **options; 255 uint32_t dummy1; 256 }; 257 #define GG110_OPTIONS__INIT \ 258 { PROTOBUF_C_MESSAGE_INIT (&gg110_options__descriptor) \ 259 , 0,NULL, 0u } 260 261 262 struct _GG110AccessInfo 263 { 264 ProtobufCMessage base; 265 uint32_t dummy1; 266 uint32_t dummy2; 267 uint32_t last_message; 268 uint32_t last_file_transfer; 269 uint32_t last_conference_ch; 270 }; 271 #define GG110_ACCESS_INFO__INIT \ 272 { PROTOBUF_C_MESSAGE_INIT (&gg110_access_info__descriptor) \ 273 , 1u, 0, 0, 0, 0 } 274 275 276 struct _GG112TransferInfoUin 277 { 278 ProtobufCMessage base; 279 uint32_t dummy1; 280 ProtobufCBinaryData uin; 281 }; 282 #define GG112_TRANSFER_INFO_UIN__INIT \ 283 { PROTOBUF_C_MESSAGE_INIT (&gg112_transfer_info_uin__descriptor) \ 284 , 1u, {0,NULL} } 285 286 287 struct _GG112TransferInfoFile 288 { 289 ProtobufCMessage base; 290 char *type; 291 char *url; 292 char *content_type; 293 char *filename; 294 uint32_t filesize; 295 uint64_t msg_id; 296 }; 297 extern char gg112_transfer_info_file__type__default_value[]; 298 #define GG112_TRANSFER_INFO_FILE__INIT \ 299 { PROTOBUF_C_MESSAGE_INIT (&gg112_transfer_info_file__descriptor) \ 300 , gg112_transfer_info_file__type__default_value, NULL, NULL, NULL, 0, 0 } 301 302 303 struct _GG112TransferInfo 304 { 305 ProtobufCMessage base; 306 uint32_t dummy1; 307 GG112TransferInfoUin *peer; 308 GG112TransferInfoUin *sender; 309 uint32_t time; 310 size_t n_data; 311 ProtobufKVP **data; 312 GG112TransferInfoFile *file; 313 uint32_t seq; 314 uint64_t msg_id; 315 uint64_t conv_id; 316 }; 317 #define GG112_TRANSFER_INFO__INIT \ 318 { PROTOBUF_C_MESSAGE_INIT (&gg112_transfer_info__descriptor) \ 319 , 0, NULL, NULL, 0, 0,NULL, NULL, 0, 0, 0 } 320 321 322 struct _GG110MagicNotification 323 { 324 ProtobufCMessage base; 325 int32_t dummy1; 326 int32_t seq; 327 int32_t dummy2; 328 int32_t dummy3; 329 ProtobufCBinaryData uin; 330 char *dummy4; 331 }; 332 extern char gg110_magic_notification__dummy4__default_value[]; 333 #define GG110_MAGIC_NOTIFICATION__INIT \ 334 { PROTOBUF_C_MESSAGE_INIT (&gg110_magic_notification__descriptor) \ 335 , 2, 0, 1, 1, {0,NULL}, gg110_magic_notification__dummy4__default_value } 336 337 338 /* GG110LoginOK methods */ 339 void gg110_login_ok__init 340 (GG110LoginOK *message); 341 size_t gg110_login_ok__get_packed_size 342 (const GG110LoginOK *message); 343 size_t gg110_login_ok__pack 344 (const GG110LoginOK *message, 345 uint8_t *out); 346 size_t gg110_login_ok__pack_to_buffer 347 (const GG110LoginOK *message, 348 ProtobufCBuffer *buffer); 349 GG110LoginOK * 350 gg110_login_ok__unpack 351 (ProtobufCAllocator *allocator, 352 size_t len, 353 const uint8_t *data); 354 void gg110_login_ok__free_unpacked 355 (GG110LoginOK *message, 356 ProtobufCAllocator *allocator); 357 /* GG110Pong methods */ 358 void gg110_pong__init 359 (GG110Pong *message); 360 size_t gg110_pong__get_packed_size 361 (const GG110Pong *message); 362 size_t gg110_pong__pack 363 (const GG110Pong *message, 364 uint8_t *out); 365 size_t gg110_pong__pack_to_buffer 366 (const GG110Pong *message, 367 ProtobufCBuffer *buffer); 368 GG110Pong * 369 gg110_pong__unpack 370 (ProtobufCAllocator *allocator, 371 size_t len, 372 const uint8_t *data); 373 void gg110_pong__free_unpacked 374 (GG110Pong *message, 375 ProtobufCAllocator *allocator); 376 /* GG110Ack methods */ 377 void gg110_ack__init 378 (GG110Ack *message); 379 size_t gg110_ack__get_packed_size 380 (const GG110Ack *message); 381 size_t gg110_ack__pack 382 (const GG110Ack *message, 383 uint8_t *out); 384 size_t gg110_ack__pack_to_buffer 385 (const GG110Ack *message, 386 ProtobufCBuffer *buffer); 387 GG110Ack * 388 gg110_ack__unpack 389 (ProtobufCAllocator *allocator, 390 size_t len, 391 const uint8_t *data); 392 void gg110_ack__free_unpacked 393 (GG110Ack *message, 394 ProtobufCAllocator *allocator); 395 /* GG105Login methods */ 396 void gg105_login__init 397 (GG105Login *message); 398 size_t gg105_login__get_packed_size 399 (const GG105Login *message); 400 size_t gg105_login__pack 401 (const GG105Login *message, 402 uint8_t *out); 403 size_t gg105_login__pack_to_buffer 404 (const GG105Login *message, 405 ProtobufCBuffer *buffer); 406 GG105Login * 407 gg105_login__unpack 408 (ProtobufCAllocator *allocator, 409 size_t len, 410 const uint8_t *data); 411 void gg105_login__free_unpacked 412 (GG105Login *message, 413 ProtobufCAllocator *allocator); 414 /* GG110MessageAckLink methods */ 415 void gg110_message_ack_link__init 416 (GG110MessageAckLink *message); 417 size_t gg110_message_ack_link__get_packed_size 418 (const GG110MessageAckLink *message); 419 size_t gg110_message_ack_link__pack 420 (const GG110MessageAckLink *message, 421 uint8_t *out); 422 size_t gg110_message_ack_link__pack_to_buffer 423 (const GG110MessageAckLink *message, 424 ProtobufCBuffer *buffer); 425 GG110MessageAckLink * 426 gg110_message_ack_link__unpack 427 (ProtobufCAllocator *allocator, 428 size_t len, 429 const uint8_t *data); 430 void gg110_message_ack_link__free_unpacked 431 (GG110MessageAckLink *message, 432 ProtobufCAllocator *allocator); 433 /* GG110MessageAck methods */ 434 void gg110_message_ack__init 435 (GG110MessageAck *message); 436 size_t gg110_message_ack__get_packed_size 437 (const GG110MessageAck *message); 438 size_t gg110_message_ack__pack 439 (const GG110MessageAck *message, 440 uint8_t *out); 441 size_t gg110_message_ack__pack_to_buffer 442 (const GG110MessageAck *message, 443 ProtobufCBuffer *buffer); 444 GG110MessageAck * 445 gg110_message_ack__unpack 446 (ProtobufCAllocator *allocator, 447 size_t len, 448 const uint8_t *data); 449 void gg110_message_ack__free_unpacked 450 (GG110MessageAck *message, 451 ProtobufCAllocator *allocator); 452 /* GG110Event methods */ 453 void gg110_event__init 454 (GG110Event *message); 455 size_t gg110_event__get_packed_size 456 (const GG110Event *message); 457 size_t gg110_event__pack 458 (const GG110Event *message, 459 uint8_t *out); 460 size_t gg110_event__pack_to_buffer 461 (const GG110Event *message, 462 ProtobufCBuffer *buffer); 463 GG110Event * 464 gg110_event__unpack 465 (ProtobufCAllocator *allocator, 466 size_t len, 467 const uint8_t *data); 468 void gg110_event__free_unpacked 469 (GG110Event *message, 470 ProtobufCAllocator *allocator); 471 /* GG110RecvMessage methods */ 472 void gg110_recv_message__init 473 (GG110RecvMessage *message); 474 size_t gg110_recv_message__get_packed_size 475 (const GG110RecvMessage *message); 476 size_t gg110_recv_message__pack 477 (const GG110RecvMessage *message, 478 uint8_t *out); 479 size_t gg110_recv_message__pack_to_buffer 480 (const GG110RecvMessage *message, 481 ProtobufCBuffer *buffer); 482 GG110RecvMessage * 483 gg110_recv_message__unpack 484 (ProtobufCAllocator *allocator, 485 size_t len, 486 const uint8_t *data); 487 void gg110_recv_message__free_unpacked 488 (GG110RecvMessage *message, 489 ProtobufCAllocator *allocator); 490 /* GG110SendMessage methods */ 491 void gg110_send_message__init 492 (GG110SendMessage *message); 493 size_t gg110_send_message__get_packed_size 494 (const GG110SendMessage *message); 495 size_t gg110_send_message__pack 496 (const GG110SendMessage *message, 497 uint8_t *out); 498 size_t gg110_send_message__pack_to_buffer 499 (const GG110SendMessage *message, 500 ProtobufCBuffer *buffer); 501 GG110SendMessage * 502 gg110_send_message__unpack 503 (ProtobufCAllocator *allocator, 504 size_t len, 505 const uint8_t *data); 506 void gg110_send_message__free_unpacked 507 (GG110SendMessage *message, 508 ProtobufCAllocator *allocator); 509 /* GG110Imtoken methods */ 510 void gg110_imtoken__init 511 (GG110Imtoken *message); 512 size_t gg110_imtoken__get_packed_size 513 (const GG110Imtoken *message); 514 size_t gg110_imtoken__pack 515 (const GG110Imtoken *message, 516 uint8_t *out); 517 size_t gg110_imtoken__pack_to_buffer 518 (const GG110Imtoken *message, 519 ProtobufCBuffer *buffer); 520 GG110Imtoken * 521 gg110_imtoken__unpack 522 (ProtobufCAllocator *allocator, 523 size_t len, 524 const uint8_t *data); 525 void gg110_imtoken__free_unpacked 526 (GG110Imtoken *message, 527 ProtobufCAllocator *allocator); 528 /* GG110ChatInfoUpdate methods */ 529 void gg110_chat_info_update__init 530 (GG110ChatInfoUpdate *message); 531 size_t gg110_chat_info_update__get_packed_size 532 (const GG110ChatInfoUpdate *message); 533 size_t gg110_chat_info_update__pack 534 (const GG110ChatInfoUpdate *message, 535 uint8_t *out); 536 size_t gg110_chat_info_update__pack_to_buffer 537 (const GG110ChatInfoUpdate *message, 538 ProtobufCBuffer *buffer); 539 GG110ChatInfoUpdate * 540 gg110_chat_info_update__unpack 541 (ProtobufCAllocator *allocator, 542 size_t len, 543 const uint8_t *data); 544 void gg110_chat_info_update__free_unpacked 545 (GG110ChatInfoUpdate *message, 546 ProtobufCAllocator *allocator); 547 /* ProtobufKVP methods */ 548 void protobuf_kvp__init 549 (ProtobufKVP *message); 550 size_t protobuf_kvp__get_packed_size 551 (const ProtobufKVP *message); 552 size_t protobuf_kvp__pack 553 (const ProtobufKVP *message, 554 uint8_t *out); 555 size_t protobuf_kvp__pack_to_buffer 556 (const ProtobufKVP *message, 557 ProtobufCBuffer *buffer); 558 ProtobufKVP * 559 protobuf_kvp__unpack 560 (ProtobufCAllocator *allocator, 561 size_t len, 562 const uint8_t *data); 563 void protobuf_kvp__free_unpacked 564 (ProtobufKVP *message, 565 ProtobufCAllocator *allocator); 566 /* GG110Options methods */ 567 void gg110_options__init 568 (GG110Options *message); 569 size_t gg110_options__get_packed_size 570 (const GG110Options *message); 571 size_t gg110_options__pack 572 (const GG110Options *message, 573 uint8_t *out); 574 size_t gg110_options__pack_to_buffer 575 (const GG110Options *message, 576 ProtobufCBuffer *buffer); 577 GG110Options * 578 gg110_options__unpack 579 (ProtobufCAllocator *allocator, 580 size_t len, 581 const uint8_t *data); 582 void gg110_options__free_unpacked 583 (GG110Options *message, 584 ProtobufCAllocator *allocator); 585 /* GG110AccessInfo methods */ 586 void gg110_access_info__init 587 (GG110AccessInfo *message); 588 size_t gg110_access_info__get_packed_size 589 (const GG110AccessInfo *message); 590 size_t gg110_access_info__pack 591 (const GG110AccessInfo *message, 592 uint8_t *out); 593 size_t gg110_access_info__pack_to_buffer 594 (const GG110AccessInfo *message, 595 ProtobufCBuffer *buffer); 596 GG110AccessInfo * 597 gg110_access_info__unpack 598 (ProtobufCAllocator *allocator, 599 size_t len, 600 const uint8_t *data); 601 void gg110_access_info__free_unpacked 602 (GG110AccessInfo *message, 603 ProtobufCAllocator *allocator); 604 /* GG112TransferInfoUin methods */ 605 void gg112_transfer_info_uin__init 606 (GG112TransferInfoUin *message); 607 size_t gg112_transfer_info_uin__get_packed_size 608 (const GG112TransferInfoUin *message); 609 size_t gg112_transfer_info_uin__pack 610 (const GG112TransferInfoUin *message, 611 uint8_t *out); 612 size_t gg112_transfer_info_uin__pack_to_buffer 613 (const GG112TransferInfoUin *message, 614 ProtobufCBuffer *buffer); 615 GG112TransferInfoUin * 616 gg112_transfer_info_uin__unpack 617 (ProtobufCAllocator *allocator, 618 size_t len, 619 const uint8_t *data); 620 void gg112_transfer_info_uin__free_unpacked 621 (GG112TransferInfoUin *message, 622 ProtobufCAllocator *allocator); 623 /* GG112TransferInfoFile methods */ 624 void gg112_transfer_info_file__init 625 (GG112TransferInfoFile *message); 626 size_t gg112_transfer_info_file__get_packed_size 627 (const GG112TransferInfoFile *message); 628 size_t gg112_transfer_info_file__pack 629 (const GG112TransferInfoFile *message, 630 uint8_t *out); 631 size_t gg112_transfer_info_file__pack_to_buffer 632 (const GG112TransferInfoFile *message, 633 ProtobufCBuffer *buffer); 634 GG112TransferInfoFile * 635 gg112_transfer_info_file__unpack 636 (ProtobufCAllocator *allocator, 637 size_t len, 638 const uint8_t *data); 639 void gg112_transfer_info_file__free_unpacked 640 (GG112TransferInfoFile *message, 641 ProtobufCAllocator *allocator); 642 /* GG112TransferInfo methods */ 643 void gg112_transfer_info__init 644 (GG112TransferInfo *message); 645 size_t gg112_transfer_info__get_packed_size 646 (const GG112TransferInfo *message); 647 size_t gg112_transfer_info__pack 648 (const GG112TransferInfo *message, 649 uint8_t *out); 650 size_t gg112_transfer_info__pack_to_buffer 651 (const GG112TransferInfo *message, 652 ProtobufCBuffer *buffer); 653 GG112TransferInfo * 654 gg112_transfer_info__unpack 655 (ProtobufCAllocator *allocator, 656 size_t len, 657 const uint8_t *data); 658 void gg112_transfer_info__free_unpacked 659 (GG112TransferInfo *message, 660 ProtobufCAllocator *allocator); 661 /* GG110MagicNotification methods */ 662 void gg110_magic_notification__init 663 (GG110MagicNotification *message); 664 size_t gg110_magic_notification__get_packed_size 665 (const GG110MagicNotification *message); 666 size_t gg110_magic_notification__pack 667 (const GG110MagicNotification *message, 668 uint8_t *out); 669 size_t gg110_magic_notification__pack_to_buffer 670 (const GG110MagicNotification *message, 671 ProtobufCBuffer *buffer); 672 GG110MagicNotification * 673 gg110_magic_notification__unpack 674 (ProtobufCAllocator *allocator, 675 size_t len, 676 const uint8_t *data); 677 void gg110_magic_notification__free_unpacked 678 (GG110MagicNotification *message, 679 ProtobufCAllocator *allocator); 680 /* --- per-message closures --- */ 681 682 typedef void (*GG110LoginOK_Closure) 683 (const GG110LoginOK *message, 684 void *closure_data); 685 typedef void (*GG110Pong_Closure) 686 (const GG110Pong *message, 687 void *closure_data); 688 typedef void (*GG110Ack_Closure) 689 (const GG110Ack *message, 690 void *closure_data); 691 typedef void (*GG105Login_Closure) 692 (const GG105Login *message, 693 void *closure_data); 694 typedef void (*GG110MessageAckLink_Closure) 695 (const GG110MessageAckLink *message, 696 void *closure_data); 697 typedef void (*GG110MessageAck_Closure) 698 (const GG110MessageAck *message, 699 void *closure_data); 700 typedef void (*GG110Event_Closure) 701 (const GG110Event *message, 702 void *closure_data); 703 typedef void (*GG110RecvMessage_Closure) 704 (const GG110RecvMessage *message, 705 void *closure_data); 706 typedef void (*GG110SendMessage_Closure) 707 (const GG110SendMessage *message, 708 void *closure_data); 709 typedef void (*GG110Imtoken_Closure) 710 (const GG110Imtoken *message, 711 void *closure_data); 712 typedef void (*GG110ChatInfoUpdate_Closure) 713 (const GG110ChatInfoUpdate *message, 714 void *closure_data); 715 typedef void (*ProtobufKVP_Closure) 716 (const ProtobufKVP *message, 717 void *closure_data); 718 typedef void (*GG110Options_Closure) 719 (const GG110Options *message, 720 void *closure_data); 721 typedef void (*GG110AccessInfo_Closure) 722 (const GG110AccessInfo *message, 723 void *closure_data); 724 typedef void (*GG112TransferInfoUin_Closure) 725 (const GG112TransferInfoUin *message, 726 void *closure_data); 727 typedef void (*GG112TransferInfoFile_Closure) 728 (const GG112TransferInfoFile *message, 729 void *closure_data); 730 typedef void (*GG112TransferInfo_Closure) 731 (const GG112TransferInfo *message, 732 void *closure_data); 733 typedef void (*GG110MagicNotification_Closure) 734 (const GG110MagicNotification *message, 735 void *closure_data); 736 737 /* --- services --- */ 738 739 740 /* --- descriptors --- */ 741 742 extern const ProtobufCMessageDescriptor gg110_login_ok__descriptor; 743 extern const ProtobufCMessageDescriptor gg110_pong__descriptor; 744 extern const ProtobufCMessageDescriptor gg110_ack__descriptor; 745 extern const ProtobufCEnumDescriptor gg110_ack__type__descriptor; 746 extern const ProtobufCMessageDescriptor gg105_login__descriptor; 747 extern const ProtobufCMessageDescriptor gg110_message_ack_link__descriptor; 748 extern const ProtobufCMessageDescriptor gg110_message_ack__descriptor; 749 extern const ProtobufCMessageDescriptor gg110_event__descriptor; 750 extern const ProtobufCEnumDescriptor gg110_event__type__descriptor; 751 extern const ProtobufCMessageDescriptor gg110_recv_message__descriptor; 752 extern const ProtobufCMessageDescriptor gg110_send_message__descriptor; 753 extern const ProtobufCMessageDescriptor gg110_imtoken__descriptor; 754 extern const ProtobufCMessageDescriptor gg110_chat_info_update__descriptor; 755 extern const ProtobufCMessageDescriptor protobuf_kvp__descriptor; 756 extern const ProtobufCMessageDescriptor gg110_options__descriptor; 757 extern const ProtobufCMessageDescriptor gg110_access_info__descriptor; 758 extern const ProtobufCMessageDescriptor gg112_transfer_info_uin__descriptor; 759 extern const ProtobufCMessageDescriptor gg112_transfer_info_file__descriptor; 760 extern const ProtobufCMessageDescriptor gg112_transfer_info__descriptor; 761 extern const ProtobufCMessageDescriptor gg110_magic_notification__descriptor; 762 763 PROTOBUF_C__END_DECLS 764 765 766 #endif /* PROTOBUF_C_packets_2eproto__INCLUDED */ 767