Mercurial > pidgin.yaz
comparison src/protocols/yahoo/yahoo.h @ 7827:ee32e030c9be
[gaim-migrate @ 8479]
marv asserts that these character set conversions are more correct
than the previous yahoo conversions, which assumed that pretty much
everything was UTF-8. I believe him.
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Wed, 10 Dec 2003 16:48:23 +0000 |
parents | 580bd39219a2 |
children | 30ed1fc892aa |
comparison
equal
deleted
inserted
replaced
7826:5ba07997ade3 | 7827:ee32e030c9be |
---|---|
23 #ifndef _YAHOO_H_ | 23 #ifndef _YAHOO_H_ |
24 #define _YAHOO_H_ | 24 #define _YAHOO_H_ |
25 | 25 |
26 #include "prpl.h" | 26 #include "prpl.h" |
27 | 27 |
28 #define YAHOO_PAGER_HOST "scs.yahoo.com" | |
29 #define YAHOO_PAGER_PORT 5050 | |
30 #define YAHOO_PROFILE_URL "http://profiles.yahoo.com/" | |
28 #define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com" | 31 #define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com" |
29 #define YAHOO_XFER_PORT 80 | 32 #define YAHOO_XFER_PORT 80 |
30 | 33 |
31 #define WEBMESSENGER_URL "http://login.yahoo.com/config/login?.src=pg" | 34 #define WEBMESSENGER_URL "http://login.yahoo.com/config/login?.src=pg" |
32 | 35 |
191 void yahoo_init_colorht(); | 194 void yahoo_init_colorht(); |
192 void yahoo_dest_colorht(); | 195 void yahoo_dest_colorht(); |
193 char *yahoo_codes_to_html(const char *x); | 196 char *yahoo_codes_to_html(const char *x); |
194 char *yahoo_html_to_codes(const char *src); | 197 char *yahoo_html_to_codes(const char *src); |
195 | 198 |
199 /** | |
200 * Encode some text to send to the yahoo server. | |
201 * | |
202 * @param gc The connection handle. | |
203 * @param str The null terminated utf8 string to encode. | |
204 * @param utf8 If not @c NULL, whether utf8 is okay or not. | |
205 * Even if it is okay, we may not use it. If we | |
206 * used it, we set this to @c TRUE, else to | |
207 * @c FALSE. If @c NULL, false is assumed, and | |
208 * it is not dereferenced. | |
209 * @return The g_malloced string in the appropriate encoding. | |
210 */ | |
211 char *yahoo_string_encode(GaimConnection *gc, const char *str, gboolean *utf8); | |
212 | |
213 /** | |
214 * Decode some text received from the server. | |
215 * | |
216 * @param gc The gc handle. | |
217 * @param str The null terminated string to decode. | |
218 * @param utf8 Did the server tell us it was supposed to be utf8? | |
219 * @return The decoded, utf-8 string, which must be g_free()'d. | |
220 */ | |
221 char *yahoo_string_decode(GaimConnection *gc, const char *str, gboolean utf8); | |
222 | |
196 #endif /* _YAHOO_H_ */ | 223 #endif /* _YAHOO_H_ */ |