comparison libpurple/protocols/yahoo/util.c @ 27694:908be3822215

Move from "struct yahoo_data" to "YahooData" to be consistent with other structs in the prpl. I'm sure someone is going to want to shoot me over this, but I'm tired of seeing "struct yahoo_data" everywhere in this prpl.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Sun, 26 Jul 2009 17:25:18 +0000
parents 8368e4fb7d3a
children a0a8b61301c8
comparison
equal deleted inserted replaced
27693:8bc9087b5ec2 27694:908be3822215
51 gchar *cur; 51 gchar *cur;
52 char firstflag = 1; 52 char firstflag = 1;
53 gchar *t1,*t2,*t3; 53 gchar *t1,*t2,*t3;
54 GSList *tmp; 54 GSList *tmp;
55 GSList *cookies; 55 GSList *cookies;
56 cookies = ((struct yahoo_data*)(gc->proto_data))->cookies; 56 cookies = ((YahooData*)(gc->proto_data))->cookies;
57 tmp = cookies; 57 tmp = cookies;
58 while(tmp) 58 while(tmp)
59 { 59 {
60 cur = tmp->data; 60 cur = tmp->data;
61 t1 = ans; 61 t1 = ans;
116 * it is not dereferenced. 116 * it is not dereferenced.
117 * @return The g_malloced string in the appropriate encoding. 117 * @return The g_malloced string in the appropriate encoding.
118 */ 118 */
119 char *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean *utf8) 119 char *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean *utf8)
120 { 120 {
121 struct yahoo_data *yd = gc->proto_data; 121 YahooData *yd = gc->proto_data;
122 char *ret; 122 char *ret;
123 const char *to_codeset; 123 const char *to_codeset;
124 124
125 if (yd->jp) 125 if (yd->jp)
126 return g_strdup(str); 126 return g_strdup(str);
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; 151 char *ret;
152 const char *from_codeset; 152 const char *from_codeset;
153 153
154 if (utf8) { 154 if (utf8) {
155 if (g_utf8_validate(str, -1, NULL)) 155 if (g_utf8_validate(str, -1, NULL))