barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since ab31454 was
5e53c4a,
checked in by James M. Kretchmar <kretch@mit.edu>, 21 years ago
|
*** empty log message ***
|
-
Property mode set to
100644
|
File size:
882 bytes
|
Line | |
---|
1 | |
---|
2 | #define FAIM_INTERNAL |
---|
3 | #include <aim.h> |
---|
4 | |
---|
5 | static int reportinterval(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) |
---|
6 | { |
---|
7 | fu16_t interval; |
---|
8 | aim_rxcallback_t userfunc; |
---|
9 | |
---|
10 | interval = aimbs_get16(bs); |
---|
11 | |
---|
12 | if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) |
---|
13 | return userfunc(sess, rx, interval); |
---|
14 | |
---|
15 | return 0; |
---|
16 | } |
---|
17 | |
---|
18 | static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) |
---|
19 | { |
---|
20 | |
---|
21 | if (snac->subtype == 0x0002) |
---|
22 | return reportinterval(sess, mod, rx, snac, bs); |
---|
23 | |
---|
24 | return 0; |
---|
25 | } |
---|
26 | |
---|
27 | faim_internal int stats_modfirst(aim_session_t *sess, aim_module_t *mod) |
---|
28 | { |
---|
29 | |
---|
30 | mod->family = 0x000b; |
---|
31 | mod->version = 0x0001; |
---|
32 | mod->toolid = 0x0104; |
---|
33 | mod->toolversion = 0x0001; |
---|
34 | mod->flags = 0; |
---|
35 | strncpy(mod->name, "stats", sizeof(mod->name)); |
---|
36 | mod->snachandler = snachandler; |
---|
37 | |
---|
38 | return 0; |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.