Mercurial > pidgin
comparison libgaim/protocols/oscar/family_feedbag.c @ 14918:f1e353fa21de
[gaim-migrate @ 17690]
gbooleanize some things. No functionality change.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 07 Nov 2006 02:53:42 +0000 |
parents | f9acffc89b18 |
children | 57dcc53e77a4 |
comparison
equal
deleted
inserted
replaced
14917:f9acffc89b18 | 14918:f1e353fa21de |
---|---|
568 return 0; | 568 return 0; |
569 } | 569 } |
570 | 570 |
571 /* Make sure we don't send anything else between now | 571 /* Make sure we don't send anything else between now |
572 * and when we receive the ack for the following operation */ | 572 * and when we receive the ack for the following operation */ |
573 od->ssi.waiting_for_ack = 1; | 573 od->ssi.waiting_for_ack = TRUE; |
574 | 574 |
575 /* Now go mail off our data and wait 4 to 6 weeks */ | 575 /* Now go mail off our data and wait 4 to 6 weeks */ |
576 aim_ssi_addmoddel(od); | 576 aim_ssi_addmoddel(od); |
577 | 577 |
578 return 0; | 578 return 0; |
1314 /* Make a copy of the list */ | 1314 /* Make a copy of the list */ |
1315 struct aim_ssi_item *cur; | 1315 struct aim_ssi_item *cur; |
1316 for (cur=od->ssi.official; cur; cur=cur->next) | 1316 for (cur=od->ssi.official; cur; cur=cur->next) |
1317 aim_ssi_itemlist_add(&od->ssi.local, cur->name, cur->gid, cur->bid, cur->type, cur->data); | 1317 aim_ssi_itemlist_add(&od->ssi.local, cur->name, cur->gid, cur->bid, cur->type, cur->data); |
1318 | 1318 |
1319 od->ssi.received_data = 1; | 1319 od->ssi.received_data = TRUE; |
1320 | 1320 |
1321 if ((userfunc = aim_callhandler(od, snac->family, snac->subtype))) | 1321 if ((userfunc = aim_callhandler(od, snac->family, snac->subtype))) |
1322 ret = userfunc(od, conn, frame, fmtver, od->ssi.numitems, od->ssi.timestamp); | 1322 ret = userfunc(od, conn, frame, fmtver, od->ssi.numitems, od->ssi.timestamp); |
1323 } | 1323 } |
1324 | 1324 |
1643 } | 1643 } |
1644 od->ssi.pending = cur; | 1644 od->ssi.pending = cur; |
1645 | 1645 |
1646 /* If we're not waiting for any more acks, then send more SNACs */ | 1646 /* If we're not waiting for any more acks, then send more SNACs */ |
1647 if (!od->ssi.pending) { | 1647 if (!od->ssi.pending) { |
1648 od->ssi.waiting_for_ack = 0; | 1648 od->ssi.waiting_for_ack = FALSE; |
1649 aim_ssi_sync(od); | 1649 aim_ssi_sync(od); |
1650 } | 1650 } |
1651 | 1651 |
1652 return ret; | 1652 return ret; |
1653 } | 1653 } |
1662 static int parsedataunchanged(OscarData *od, FlapConnection *conn, aim_module_t *mod, FlapFrame *frame, aim_modsnac_t *snac, ByteStream *bs) | 1662 static int parsedataunchanged(OscarData *od, FlapConnection *conn, aim_module_t *mod, FlapFrame *frame, aim_modsnac_t *snac, ByteStream *bs) |
1663 { | 1663 { |
1664 int ret = 0; | 1664 int ret = 0; |
1665 aim_rxcallback_t userfunc; | 1665 aim_rxcallback_t userfunc; |
1666 | 1666 |
1667 od->ssi.received_data = 1; | 1667 od->ssi.received_data = TRUE; |
1668 | 1668 |
1669 if ((userfunc = aim_callhandler(od, snac->family, snac->subtype))) | 1669 if ((userfunc = aim_callhandler(od, snac->family, snac->subtype))) |
1670 ret = userfunc(od, conn, frame); | 1670 ret = userfunc(od, conn, frame); |
1671 | 1671 |
1672 return ret; | 1672 return ret; |