Mercurial > pidgin
comparison src/protocols/oscar/adverts.c @ 2086:424a40f12a6c
[gaim-migrate @ 2096]
moving protocols from plugins/ to src/protocols. making it so that you can select which protocols are compiled statically.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 31 Jul 2001 01:00:39 +0000 |
parents | |
children | 933346315b9b |
comparison
equal
deleted
inserted
replaced
2085:7ebb4322f89b | 2086:424a40f12a6c |
---|---|
1 /* | |
2 * | |
3 * | |
4 */ | |
5 | |
6 #define FAIM_INTERNAL | |
7 #include <aim.h> | |
8 | |
9 faim_export unsigned long aim_ads_clientready(struct aim_session_t *sess, | |
10 struct aim_conn_t *conn) | |
11 { | |
12 struct command_tx_struct *newpacket; | |
13 int i; | |
14 | |
15 if (!(newpacket = aim_tx_new(sess, conn, AIM_FRAMETYPE_OSCAR, 0x0002, 0x1a))) | |
16 return -1; | |
17 | |
18 newpacket->lock = 1; | |
19 | |
20 i = aim_putsnac(newpacket->data, 0x0001, 0x0002, 0x0000, sess->snac_nextid); | |
21 | |
22 i+= aimutil_put16(newpacket->data+i, 0x0001); | |
23 i+= aimutil_put16(newpacket->data+i, 0x0002); | |
24 | |
25 i+= aimutil_put16(newpacket->data+i, 0x0001); | |
26 i+= aimutil_put16(newpacket->data+i, 0x0013); | |
27 | |
28 i+= aimutil_put16(newpacket->data+i, 0x0005); | |
29 i+= aimutil_put16(newpacket->data+i, 0x0001); | |
30 i+= aimutil_put16(newpacket->data+i, 0x0001); | |
31 i+= aimutil_put16(newpacket->data+i, 0x0001); | |
32 | |
33 newpacket->lock = 0; | |
34 aim_tx_enqueue(sess, newpacket); | |
35 | |
36 return (sess->snac_nextid++); | |
37 } | |
38 | |
39 faim_export unsigned long aim_ads_requestads(struct aim_session_t *sess, | |
40 struct aim_conn_t *conn) | |
41 { | |
42 return aim_genericreq_n(sess, conn, 0x0005, 0x0002); | |
43 } |