1.1 --- a/Frameworks/libpurple.framework/Versions/0.5.6/Headers/yahoo_packet.h Sun Jun 21 22:04:11 2009 -0400
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,145 +0,0 @@
1.4 -/**
1.5 - * @file yahoo_packet.h The Yahoo! protocol plugin
1.6 - *
1.7 - * purple
1.8 - *
1.9 - * Purple is the legal property of its developers, whose names are too numerous
1.10 - * to list here. Please refer to the COPYRIGHT file distributed with this
1.11 - * source distribution.
1.12 - *
1.13 - * This program is free software; you can redistribute it and/or modify
1.14 - * it under the terms of the GNU General Public License as published by
1.15 - * the Free Software Foundation; either version 2 of the License, or
1.16 - * (at your option) any later version.
1.17 - *
1.18 - * This program is distributed in the hope that it will be useful,
1.19 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.20 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.21 - * GNU General Public License for more details.
1.22 - *
1.23 - * You should have received a copy of the GNU General Public License
1.24 - * along with this program; if not, write to the Free Software
1.25 - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1.26 - */
1.27 -
1.28 -#ifndef _YAHOO_PACKET_H_
1.29 -#define _YAHOO_PACKET_H_
1.30 -
1.31 -enum yahoo_service { /* these are easier to see in hex */
1.32 - YAHOO_SERVICE_LOGON = 1,
1.33 - YAHOO_SERVICE_LOGOFF,
1.34 - YAHOO_SERVICE_ISAWAY,
1.35 - YAHOO_SERVICE_ISBACK,
1.36 - YAHOO_SERVICE_IDLE, /* 5 (placemarker) */
1.37 - YAHOO_SERVICE_MESSAGE,
1.38 - YAHOO_SERVICE_IDACT,
1.39 - YAHOO_SERVICE_IDDEACT,
1.40 - YAHOO_SERVICE_MAILSTAT,
1.41 - YAHOO_SERVICE_USERSTAT, /* 0xa */
1.42 - YAHOO_SERVICE_NEWMAIL,
1.43 - YAHOO_SERVICE_CHATINVITE,
1.44 - YAHOO_SERVICE_CALENDAR,
1.45 - YAHOO_SERVICE_NEWPERSONALMAIL,
1.46 - YAHOO_SERVICE_NEWCONTACT,
1.47 - YAHOO_SERVICE_ADDIDENT, /* 0x10 */
1.48 - YAHOO_SERVICE_ADDIGNORE,
1.49 - YAHOO_SERVICE_PING,
1.50 - YAHOO_SERVICE_GOTGROUPRENAME,
1.51 - YAHOO_SERVICE_SYSMESSAGE = 0x14,
1.52 - YAHOO_SERVICE_SKINNAME = 0x15,
1.53 - YAHOO_SERVICE_PASSTHROUGH2 = 0x16,
1.54 - YAHOO_SERVICE_CONFINVITE = 0x18,
1.55 - YAHOO_SERVICE_CONFLOGON,
1.56 - YAHOO_SERVICE_CONFDECLINE,
1.57 - YAHOO_SERVICE_CONFLOGOFF,
1.58 - YAHOO_SERVICE_CONFADDINVITE,
1.59 - YAHOO_SERVICE_CONFMSG,
1.60 - YAHOO_SERVICE_CHATLOGON,
1.61 - YAHOO_SERVICE_CHATLOGOFF,
1.62 - YAHOO_SERVICE_CHATMSG = 0x20,
1.63 - YAHOO_SERVICE_GAMELOGON = 0x28,
1.64 - YAHOO_SERVICE_GAMELOGOFF,
1.65 - YAHOO_SERVICE_GAMEMSG = 0x2a,
1.66 - YAHOO_SERVICE_FILETRANSFER = 0x46,
1.67 - YAHOO_SERVICE_VOICECHAT = 0x4A,
1.68 - YAHOO_SERVICE_NOTIFY = 0x4B,
1.69 - YAHOO_SERVICE_VERIFY,
1.70 - YAHOO_SERVICE_P2PFILEXFER,
1.71 - YAHOO_SERVICE_PEERTOPEER = 0x4F,
1.72 - YAHOO_SERVICE_WEBCAM,
1.73 - YAHOO_SERVICE_AUTHRESP = 0x54,
1.74 - YAHOO_SERVICE_LIST = 0x55,
1.75 - YAHOO_SERVICE_AUTH = 0x57,
1.76 - YAHOO_SERVICE_AUTHBUDDY = 0x6d,
1.77 - YAHOO_SERVICE_ADDBUDDY = 0x83,
1.78 - YAHOO_SERVICE_REMBUDDY = 0x84,
1.79 - YAHOO_SERVICE_IGNORECONTACT, /* > 1, 7, 13 < 1, 66, 13, 0*/
1.80 - YAHOO_SERVICE_REJECTCONTACT,
1.81 - YAHOO_SERVICE_GROUPRENAME = 0x89, /* > 1, 65(new), 66(0), 67(old) */
1.82 - YAHOO_SERVICE_KEEPALIVE = 0x8A,
1.83 - YAHOO_SERVICE_CHATONLINE = 0x96, /* > 109(id), 1, 6(abcde) < 0,1*/
1.84 - YAHOO_SERVICE_CHATGOTO,
1.85 - YAHOO_SERVICE_CHATJOIN, /* > 1 104-room 129-1600326591 62-2 */
1.86 - YAHOO_SERVICE_CHATLEAVE,
1.87 - YAHOO_SERVICE_CHATEXIT = 0x9b,
1.88 - YAHOO_SERVICE_CHATADDINVITE = 0x9d,
1.89 - YAHOO_SERVICE_CHATLOGOUT = 0xa0,
1.90 - YAHOO_SERVICE_CHATPING,
1.91 - YAHOO_SERVICE_COMMENT = 0xa8,
1.92 - YAHOO_SERVICE_PRESENCE_PERM = 0xb9,
1.93 - YAHOO_SERVICE_PRESENCE_SESSION = 0xba,
1.94 - YAHOO_SERVICE_AVATAR = 0xbc,
1.95 - YAHOO_SERVICE_PICTURE_CHECKSUM = 0xbd,
1.96 - YAHOO_SERVICE_PICTURE = 0xbe,
1.97 - YAHOO_SERVICE_PICTURE_UPDATE = 0xc1,
1.98 - YAHOO_SERVICE_PICTURE_UPLOAD = 0xc2,
1.99 - YAHOO_SERVICE_Y6_VISIBLE_TOGGLE = 0xc5,
1.100 - YAHOO_SERVICE_Y6_STATUS_UPDATE = 0xc6,
1.101 - YAHOO_SERVICE_AVATAR_UPDATE = 0xc7,
1.102 - YAHOO_SERVICE_VERIFY_ID_EXISTS = 0xc8,
1.103 - YAHOO_SERVICE_AUDIBLE = 0xd0,
1.104 - YAHOO_SERVICE_AUTH_REQ_15 = 0xd6,
1.105 - YAHOO_SERVICE_CHGRP_15 = 0xe7,
1.106 - YAHOO_SERVICE_STATUS_15 = 0xf0,
1.107 - YAHOO_SERVICE_LIST_15 = 0xf1,
1.108 - YAHOO_SERVICE_FILETRANS_15 = 0xdc,
1.109 - YAHOO_SERVICE_FILETRANS_INFO_15 = 0xdd,
1.110 - YAHOO_SERVICE_FILETRANS_ACC_15 = 0xde,
1.111 - YAHOO_SERVICE_WEBLOGIN = 0x0226,
1.112 - YAHOO_SERVICE_SMS_MSG = 0x02ea
1.113 -};
1.114 -
1.115 -struct yahoo_pair {
1.116 - int key;
1.117 - char *value;
1.118 -};
1.119 -
1.120 -struct yahoo_packet {
1.121 - guint16 service;
1.122 - guint32 status;
1.123 - guint32 id;
1.124 - GSList *hash;
1.125 -};
1.126 -
1.127 -#define YAHOO_WEBMESSENGER_PROTO_VER 0x0065
1.128 -#define YAHOO_PROTO_VER 0x000f
1.129 -#define YAHOO_PROTO_VER_JAPAN 0x000f
1.130 -
1.131 -#define YAHOO_PACKET_HDRLEN (4 + 2 + 2 + 2 + 2 + 4 + 4)
1.132 -
1.133 -struct yahoo_packet *yahoo_packet_new(enum yahoo_service service,
1.134 - enum yahoo_status status, int id);
1.135 -void yahoo_packet_hash(struct yahoo_packet *pkt, const char *fmt, ...);
1.136 -void yahoo_packet_hash_str(struct yahoo_packet *pkt, int key, const char *value);
1.137 -void yahoo_packet_hash_int(struct yahoo_packet *pkt, int key, int value);
1.138 -int yahoo_packet_send(struct yahoo_packet *pkt, struct yahoo_data *yd);
1.139 -int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd);
1.140 -size_t yahoo_packet_build(struct yahoo_packet *pkt, int pad, gboolean wm, gboolean jp,
1.141 -guchar **buf);
1.142 -void yahoo_packet_read(struct yahoo_packet *pkt, const guchar *data, int len);
1.143 -void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data);
1.144 -void yahoo_packet_dump(guchar *data, int len);
1.145 -size_t yahoo_packet_length(struct yahoo_packet *pkt);
1.146 -void yahoo_packet_free(struct yahoo_packet *pkt);
1.147 -
1.148 -#endif /* _YAHOO_PACKET_H_ */