comparison src/protocols/oscar/family_bart.c @ 13253:87a7c3077c19

[gaim-migrate @ 15619] More cleaning up of oscar. Renamed some functions to be more clear. Got rid of some stuff that wasn't used. Inlined some small things in conn.c that were only used once. The goals of all this are 1. Non-blocking I/O for all connections 2. p2p stuff won't use the same struct as oscar connections, because that's stupid 3. The oscar PRPL should be less scary committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 12 Feb 2006 21:27:04 +0000
parents f260d319bbbc
children 6519aeb66b31
comparison
equal deleted inserted replaced
13252:2871c385c45a 13253:87a7c3077c19
44 aim_snacid_t snacid; 44 aim_snacid_t snacid;
45 45
46 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0010)) || !icon || !iconlen) 46 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0010)) || !icon || !iconlen)
47 return -EINVAL; 47 return -EINVAL;
48 48
49 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 2 + 2+iconlen))) 49 if (!(fr = flap_frame_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 2 + 2+iconlen)))
50 return -ENOMEM; 50 return -ENOMEM;
51 snacid = aim_cachesnac(sess, 0x0010, 0x0002, 0x0000, NULL, 0); 51 snacid = aim_cachesnac(sess, 0x0010, 0x0002, 0x0000, NULL, 0);
52 aim_putsnac(&fr->data, 0x0010, 0x0002, 0x0000, snacid); 52 aim_putsnac(&fr->data, 0x0010, 0x0002, 0x0000, snacid);
53 53
54 /* The reference number for the icon */ 54 /* The reference number for the icon */
102 aim_snacid_t snacid; 102 aim_snacid_t snacid;
103 103
104 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0010)) || !sn || !strlen(sn) || !iconcsum || !iconcsumlen) 104 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0010)) || !sn || !strlen(sn) || !iconcsum || !iconcsumlen)
105 return -EINVAL; 105 return -EINVAL;
106 106
107 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 1+strlen(sn) + 4 + 1+iconcsumlen))) 107 if (!(fr = flap_frame_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 1+strlen(sn) + 4 + 1+iconcsumlen)))
108 return -ENOMEM; 108 return -ENOMEM;
109 snacid = aim_cachesnac(sess, 0x0010, 0x0004, 0x0000, NULL, 0); 109 snacid = aim_cachesnac(sess, 0x0010, 0x0004, 0x0000, NULL, 0);
110 aim_putsnac(&fr->data, 0x0010, 0x0004, 0x0000, snacid); 110 aim_putsnac(&fr->data, 0x0010, 0x0004, 0x0000, snacid);
111 111
112 /* Screen name */ 112 /* Screen name */