comparison libpurple/protocols/yahoo/util.c @ 28036:8be4bea98188

merged with im.pidgin.pidgin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 27 Jul 2009 15:22:00 +0900
parents e1cd44c7c7af 908be3822215
children 784013acc2f3
comparison
equal deleted inserted replaced
28022:c81386a2b292 28036:8be4bea98188
52 gchar *cur; 52 gchar *cur;
53 char firstflag = 1; 53 char firstflag = 1;
54 gchar *t1,*t2,*t3; 54 gchar *t1,*t2,*t3;
55 GSList *tmp; 55 GSList *tmp;
56 GSList *cookies; 56 GSList *cookies;
57 cookies = ((struct yahoo_data*)(gc->proto_data))->cookies; 57 cookies = ((YahooData*)(gc->proto_data))->cookies;
58 tmp = cookies; 58 tmp = cookies;
59 while(tmp) 59 while(tmp)
60 { 60 {
61 cur = tmp->data; 61 cur = tmp->data;
62 t1 = ans; 62 t1 = ans;
117 * it is not dereferenced. 117 * it is not dereferenced.
118 * @return The g_malloced string in the appropriate encoding. 118 * @return The g_malloced string in the appropriate encoding.
119 */ 119 */
120 char *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean *utf8) 120 char *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean *utf8)
121 { 121 {
122 struct yahoo_data *yd = gc->proto_data; 122 YahooData *yd = gc->proto_data;
123 char *ret = NULL; 123 char *ret = NULL;
124 gsize newlen; 124 gsize newlen;
125 const char *to_codeset; 125 const char *to_codeset;
126 126
127 if (utf8 && *utf8) { 127 if (utf8 && *utf8) {
145 * @param utf8 Did the server tell us it was supposed to be utf8? 145 * @param utf8 Did the server tell us it was supposed to be utf8?
146 * @return The decoded, utf-8 string, which must be g_free()'d. 146 * @return The decoded, utf-8 string, which must be g_free()'d.
147 */ 147 */
148 char *yahoo_string_decode(PurpleConnection *gc, const char *str, gboolean utf8) 148 char *yahoo_string_decode(PurpleConnection *gc, const char *str, gboolean utf8)
149 { 149 {
150 struct yahoo_data *yd = gc->proto_data; 150 YahooData *yd = gc->proto_data;
151 char *ret, *tmp; 151 char *ret, *tmp;
152 const char *from_codeset; 152 const char *from_codeset;
153 gsize newlen; 153 gsize newlen;
154 154
155 if (utf8) { 155 if (utf8) {