1.1 --- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/ycht.h Fri Aug 21 13:24:36 2009 -0700
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,97 +0,0 @@
1.4 -/**
1.5 - * @file ycht.h The Yahoo! protocol plugin, YCHT protocol stuff.
1.6 - *
1.7 - * purple
1.8 - *
1.9 - * Copyright (C) 2004 Timothy Ringenbach <omarvo@hotmail.com>
1.10 - *
1.11 - * Purple is the legal property of its developers, whose names are too numerous
1.12 - * to list here. Please refer to the COPYRIGHT file distributed with this
1.13 - * source distribution.
1.14 - *
1.15 - * This program is free software; you can redistribute it and/or modify
1.16 - * it under the terms of the GNU General Public License as published by
1.17 - * the Free Software Foundation; either version 2 of the License, or
1.18 - * (at your option) any later version.
1.19 - *
1.20 - * This program is distributed in the hope that it will be useful,
1.21 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.22 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.23 - * GNU General Public License for more details.
1.24 - *
1.25 - * You should have received a copy of the GNU General Public License
1.26 - * along with this program; if not, write to the Free Software
1.27 - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1.28 - */
1.29 -
1.30 -#ifndef _PURPLE_YCHT_H_
1.31 -#define _PURPLE_YCHT_H_
1.32 -
1.33 -/* #define YAHOO_YCHT_DEBUG */
1.34 -
1.35 -#define YAHOO_YCHT_HOST "jcs3.chat.dcn.yahoo.com"
1.36 -#define YAHOO_YCHT_PORT 8002
1.37 -
1.38 -#define YCHT_VERSION (0xae)
1.39 -#define YCHT_HEADER_LEN (0x10)
1.40 -
1.41 -typedef enum {
1.42 - YCHT_SERVICE_LOGIN = 0x01,
1.43 - YCHT_SERVICE_LOGOUT = 0x02,
1.44 - YCHT_SERVICE_CHATJOIN = 0x11,
1.45 - YCHT_SERVICE_CHATPART = 0x12,
1.46 - YCHT_SERVICE_CHATMSG = 0x41,
1.47 - YCHT_SERVICE_CHATMSG_EMOTE = 0x43,
1.48 - YCHT_SERVICE_PING = 0x62,
1.49 - YCHT_SERVICE_ONLINE_FRIENDS = 0x68
1.50 -} ycht_service;
1.51 -/*
1.52 -yahoo: YCHT Service: 0x11 Version: 0x100
1.53 -yahoo: Data[0]: Linux, FreeBSD, Solaris:1
1.54 -yahoo: Data[1]: Questions, problems and discussions about all flavors of Unix.
1.55 -yahoo: Data[2]:
1.56 -yahoo: Data[3]: 0
1.57 -yahoo: Data[4]: sgooki888\0020\002 \0022769036\00258936\002
1.58 -yahoo: --==End of incoming YCHT packet==--
1.59 -
1.60 -yahoo: --==Incoming YCHT packet==--
1.61 -yahoo: YCHT Service: 0x12 Version: 0x100
1.62 -yahoo: Data[0]: Linux, FreeBSD, Solaris:1
1.63 -yahoo: Data[1]: cccc4cccc
1.64 -yahoo: --==End of incoming YCHT packet==--
1.65 -
1.66 -*/
1.67 -#define YCHT_SEP "\xc0\x80"
1.68 -
1.69 -typedef struct _YchtConn {
1.70 - PurpleConnection *gc;
1.71 - gchar *room;
1.72 - int room_id;
1.73 - gint fd;
1.74 - gint inpa;
1.75 - gboolean logged_in;
1.76 - gboolean changing_rooms;
1.77 - guchar *rxqueue;
1.78 - guint rxlen;
1.79 - PurpleCircBuffer *txbuf;
1.80 - guint tx_handler;
1.81 -} YchtConn;
1.82 -
1.83 -typedef struct {
1.84 - guint version;
1.85 - guint service;
1.86 - gint status;
1.87 - GList *data;
1.88 -} YchtPkt;
1.89 -
1.90 -void ycht_connection_open(PurpleConnection *gc);
1.91 -void ycht_connection_close(YchtConn *ycht);
1.92 -
1.93 -void ycht_chat_join(YchtConn *ycht, const char *room);
1.94 -int ycht_chat_send(YchtConn *ycht, const char *room, const char *what);
1.95 -void ycht_chat_leave(YchtConn *ycht, const char *room, gboolean logout);
1.96 -void ycht_chat_send_invite(YchtConn *ycht, const char *room, const char *buddy, const char *msg);
1.97 -void ycht_chat_goto_user(YchtConn *ycht, const char *name);
1.98 -void ycht_chat_send_keepalive(YchtConn *ycht);
1.99 -
1.100 -#endif /* _PURPLE_YCHT_H_ */