Sat, 17 May 2003 18:41:02 +0000
[gaim-migrate @ 5790]
Removed faim_shortfunc, which was supposed to make 2 functions be
declared as inline. There was a patch saying this caused problems
with systems where inline was redefined to be something else in
config.h, and I would rather not have config.h included in libfaim
files.
I'm also think the speed difference between having inline and not
having it for these 2 functions is negligible, especially when not
compiling with -Oanything.
| 2086 | 1 | /* |
|
3912
334ebe7e5f93
[gaim-migrate @ 4071]
Mark Doliner <markdoliner@pidgin.im>
parents:
2672
diff
changeset
|
2 | * Family 0x0005 - Advertisements. |
| 2086 | 3 | * |
| 4 | */ | |
| 5 | ||
| 6 | #define FAIM_INTERNAL | |
| 7 | #include <aim.h> | |
| 8 | ||
| 2672 | 9 | faim_export int aim_ads_requestads(aim_session_t *sess, aim_conn_t *conn) |
| 2086 | 10 | { |
| 2672 | 11 | return aim_genericreq_n(sess, conn, 0x0005, 0x0002); |
| 12 | } | |
| 2086 | 13 | |
| 2672 | 14 | static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) |
| 15 | { | |
| 16 | return 0; | |
| 17 | } | |
| 2086 | 18 | |
| 2672 | 19 | faim_internal int adverts_modfirst(aim_session_t *sess, aim_module_t *mod) |
| 20 | { | |
| 2086 | 21 | |
| 2672 | 22 | mod->family = 0x0005; |
| 23 | mod->version = 0x0001; | |
| 24 | mod->toolid = 0x0001; | |
| 25 | mod->toolversion = 0x0001; | |
| 26 | mod->flags = 0; | |
| 27 | strncpy(mod->name, "adverts", sizeof(mod->name)); | |
| 28 | mod->snachandler = snachandler; | |
| 2086 | 29 | |
|
2246
8ade8b7421af
[gaim-migrate @ 2256]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2086
diff
changeset
|
30 | return 0; |
| 2086 | 31 | } |