Mercurial > pidgin
comparison libpurple/protocols/oscar/family_locate.c @ 30363:b7b399914d21
Moved an error handler from oscar.c to family_locate.c.
author | ivan.komarov@soc.pidgin.im |
---|---|
date | Sun, 30 May 2010 19:08:35 +0000 |
parents | 9881f18b95b1 |
children | 420907755a2f |
comparison
equal
deleted
inserted
replaced
30362:879baaf87aa2 | 30363:b7b399914d21 |
---|---|
1223 * Subtype 0x0001 | 1223 * Subtype 0x0001 |
1224 */ | 1224 */ |
1225 static int | 1225 static int |
1226 error(OscarData *od, FlapConnection *conn, aim_module_t *mod, FlapFrame *frame, aim_modsnac_t *snac, ByteStream *bs) | 1226 error(OscarData *od, FlapConnection *conn, aim_module_t *mod, FlapFrame *frame, aim_modsnac_t *snac, ByteStream *bs) |
1227 { | 1227 { |
1228 int ret = 0; | |
1229 aim_rxcallback_t userfunc; | |
1230 aim_snac_t *snac2; | 1228 aim_snac_t *snac2; |
1231 guint16 reason; | 1229 guint16 reason; |
1232 char *bn; | 1230 char *bn; |
1233 | 1231 |
1234 snac2 = aim_remsnac(od, snac->id); | 1232 snac2 = aim_remsnac(od, snac->id); |
1251 return 0; | 1249 return 0; |
1252 } | 1250 } |
1253 | 1251 |
1254 reason = byte_stream_get16(bs); | 1252 reason = byte_stream_get16(bs); |
1255 | 1253 |
1256 /* Notify the user that we do not have info for this buddy */ | 1254 oscar_user_info_display_error(od, reason, bn); |
1257 if ((userfunc = aim_callhandler(od, snac->family, snac->subtype))) | |
1258 ret = userfunc(od, conn, frame, reason, bn); | |
1259 | 1255 |
1260 g_free(snac2->data); | 1256 g_free(snac2->data); |
1261 g_free(snac2); | 1257 g_free(snac2); |
1262 | 1258 |
1263 return ret; | 1259 return 1; |
1264 } | 1260 } |
1265 | 1261 |
1266 /* | 1262 /* |
1267 * Subtype 0x0002 | 1263 * Subtype 0x0002 |
1268 * | 1264 * |