return sess->snac_nextid;
}
-
+/* XXX can this be integrated with the rest of the error handling? */
static int error(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen)
{
int ret = 0;
- rxcallback_t userfunc;
+ aim_rxcallback_t userfunc;
struct aim_snac_t *snac2;
/* XXX the modules interface should have already retrieved this for us */
unsigned int j, m, ret = 0;
struct aim_tlvlist_t *tlvlist;
char *cur = NULL, *buf = NULL;
- rxcallback_t userfunc;
+ aim_rxcallback_t userfunc;
struct aim_snac_t *snac2;
if (!(snac2 = aim_remsnac(sess, snac->id))) {
static int snachandler(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen)
{
- faimdprintf(sess, 0, "%s: snachandler: got %x/%x\n", mod->name, snac->family, snac->subtype);
-
- if (snac->family != mod->family)
- return 0;
-
if (snac->subtype == 0x0001)
return error(sess, mod, rx, snac, data, datalen);
else if (snac->subtype == 0x0003)