comparison libpurple/protocols/yahoo/yahoo.h @ 15823:32c366eeeb99

sed -ie 's/gaim/purple/g'
author Sean Egan <seanegan@gmail.com>
date Mon, 19 Mar 2007 07:01:17 +0000
parents 2193394fd427
children e0c9a46b459f
comparison
equal deleted inserted replaced
15822:84b0f9b23ede 15823:32c366eeeb99
1 /** 1 /**
2 * @file yahoo.h The Yahoo! protocol plugin 2 * @file yahoo.h The Yahoo! protocol plugin
3 * 3 *
4 * gaim 4 * purple
5 * 5 *
6 * Gaim is the legal property of its developers, whose names are too numerous 6 * Purple is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this 7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution. 8 * source distribution.
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by 11 * it under the terms of the GNU General Public License as published by
86 YAHOO_STATUS_OFFLINE = 0x5a55aa56, /* don't ask */ 86 YAHOO_STATUS_OFFLINE = 0x5a55aa56, /* don't ask */
87 YAHOO_STATUS_TYPING = 0x16 87 YAHOO_STATUS_TYPING = 0x16
88 }; 88 };
89 89
90 struct yahoo_buddy_icon_upload_data { 90 struct yahoo_buddy_icon_upload_data {
91 GaimConnection *gc; 91 PurpleConnection *gc;
92 GString *str; 92 GString *str;
93 char *filename; 93 char *filename;
94 int pos; 94 int pos;
95 int fd; 95 int fd;
96 guint watcher; 96 guint watcher;
97 }; 97 };
98 98
99 struct _YchtConn; 99 struct _YchtConn;
100 100
101 struct yahoo_data { 101 struct yahoo_data {
102 GaimConnection *gc; 102 PurpleConnection *gc;
103 int fd; 103 int fd;
104 guchar *rxqueue; 104 guchar *rxqueue;
105 int rxlen; 105 int rxlen;
106 GaimCircBuffer *txbuf; 106 PurpleCircBuffer *txbuf;
107 guint txhandler; 107 guint txhandler;
108 GHashTable *friends; 108 GHashTable *friends;
109 109
110 /** 110 /**
111 * This is used to keep track of the IMVironment chosen 111 * This is used to keep track of the IMVironment chosen
136 int picture_checksum; 136 int picture_checksum;
137 137
138 /* ew. we have to check the icon before we connect, 138 /* ew. we have to check the icon before we connect,
139 * but can't upload it til we're connected. */ 139 * but can't upload it til we're connected. */
140 struct yahoo_buddy_icon_upload_data *picture_upload_todo; 140 struct yahoo_buddy_icon_upload_data *picture_upload_todo;
141 GaimProxyConnectData *buddy_icon_connect_data; 141 PurpleProxyConnectData *buddy_icon_connect_data;
142 142
143 struct _YchtConn *ycht; 143 struct _YchtConn *ycht;
144 144
145 /** 145 /**
146 * This linked list contains GaimUtilFetchUrlData structs 146 * This linked list contains PurpleUtilFetchUrlData structs
147 * for when we lookup people profile or photo information. 147 * for when we lookup people profile or photo information.
148 */ 148 */
149 GSList *url_datas; 149 GSList *url_datas;
150 }; 150 };
151 151
185 * used it, we set this to @c TRUE, else to 185 * used it, we set this to @c TRUE, else to
186 * @c FALSE. If @c NULL, false is assumed, and 186 * @c FALSE. If @c NULL, false is assumed, and
187 * it is not dereferenced. 187 * it is not dereferenced.
188 * @return The g_malloced string in the appropriate encoding. 188 * @return The g_malloced string in the appropriate encoding.
189 */ 189 */
190 char *yahoo_string_encode(GaimConnection *gc, const char *str, gboolean *utf8); 190 char *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean *utf8);
191 191
192 /** 192 /**
193 * Decode some text received from the server. 193 * Decode some text received from the server.
194 * 194 *
195 * @param gc The gc handle. 195 * @param gc The gc handle.
196 * @param str The null terminated string to decode. 196 * @param str The null terminated string to decode.
197 * @param utf8 Did the server tell us it was supposed to be utf8? 197 * @param utf8 Did the server tell us it was supposed to be utf8?
198 * @return The decoded, utf-8 string, which must be g_free()'d. 198 * @return The decoded, utf-8 string, which must be g_free()'d.
199 */ 199 */
200 char *yahoo_string_decode(GaimConnection *gc, const char *str, gboolean utf8); 200 char *yahoo_string_decode(PurpleConnection *gc, const char *str, gboolean utf8);
201 201
202 /* previously-static functions, now needed for yahoo_profile.c */ 202 /* previously-static functions, now needed for yahoo_profile.c */
203 void yahoo_tooltip_text(GaimBuddy *b, GaimNotifyUserInfo *user_info, gboolean full); 203 void yahoo_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full);
204 204
205 /* yahoo_profile.c */ 205 /* yahoo_profile.c */
206 void yahoo_get_info(GaimConnection *gc, const char *name); 206 void yahoo_get_info(PurpleConnection *gc, const char *name);
207 207
208 /** 208 /**
209 * Check to see whether the sender is permitted to send 209 * Check to see whether the sender is permitted to send
210 * 210 *
211 * @param gc The gc handle. 211 * @param gc The gc handle.
212 * @param who The sender of the packet to check 212 * @param who The sender of the packet to check
213 */ 213 */
214 gboolean yahoo_privacy_check 214 gboolean yahoo_privacy_check
215 (GaimConnection *gc, const char *who); 215 (PurpleConnection *gc, const char *who);
216 216
217 #endif /* _YAHOO_H_ */ 217 #endif /* _YAHOO_H_ */