Mercurial > pidgin
comparison src/protocols/oscar/service.c @ 7474:2bdacd38528c
[gaim-migrate @ 8087]
I renamed aim_bos_setidle to aim_srv_setidle, and removed the conn parameter.
Also some other minor internal changes.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 11 Nov 2003 05:57:24 +0000 |
parents | ad243bc63184 |
children | 5b83ed21f070 |
comparison
equal
deleted
inserted
replaced
7473:859e4cf4d472 | 7474:2bdacd38528c |
---|---|
541 * never be called consecutively with a non-zero idle time. That makes | 541 * never be called consecutively with a non-zero idle time. That makes |
542 * OSCAR do funny things. Instead, just set it once you go idle, and then | 542 * OSCAR do funny things. Instead, just set it once you go idle, and then |
543 * call it again with zero when you're back. | 543 * call it again with zero when you're back. |
544 * | 544 * |
545 */ | 545 */ |
546 faim_export int aim_bos_setidle(aim_session_t *sess, aim_conn_t *conn, fu32_t idletime) | 546 faim_export int aim_srv_setidle(aim_session_t *sess, fu32_t idletime) |
547 { | 547 { |
548 aim_conn_t *conn; | |
549 | |
550 if (!sess || !(conn = aim_conn_findbygroup(sess, AIM_CB_FAM_GEN))) | |
551 return -EINVAL; | |
552 | |
548 return aim_genericreq_l(sess, conn, 0x0001, 0x0011, &idletime); | 553 return aim_genericreq_l(sess, conn, 0x0001, 0x0011, &idletime); |
549 } | 554 } |
550 | 555 |
551 /* | 556 /* |
552 * Subtype 0x0012 - Service Migrate | 557 * Subtype 0x0012 - Service Migrate |
1067 return aim_parse_extstatus(sess, mod, rx, snac, bs); | 1072 return aim_parse_extstatus(sess, mod, rx, snac, bs); |
1068 | 1073 |
1069 return 0; | 1074 return 0; |
1070 } | 1075 } |
1071 | 1076 |
1072 faim_internal int general_modfirst(aim_session_t *sess, aim_module_t *mod) | 1077 faim_internal int service_modfirst(aim_session_t *sess, aim_module_t *mod) |
1073 { | 1078 { |
1074 | 1079 |
1075 mod->family = 0x0001; | 1080 mod->family = 0x0001; |
1076 mod->version = 0x0003; | 1081 mod->version = 0x0003; |
1077 mod->toolid = 0x0110; | 1082 mod->toolid = 0x0110; |
1078 mod->toolversion = 0x0629; | 1083 mod->toolversion = 0x0629; |
1079 mod->flags = 0; | 1084 mod->flags = 0; |
1080 strncpy(mod->name, "general", sizeof(mod->name)); | 1085 strncpy(mod->name, "service", sizeof(mod->name)); |
1081 mod->snachandler = snachandler; | 1086 mod->snachandler = snachandler; |
1082 | 1087 |
1083 return 0; | 1088 return 0; |
1084 } | 1089 } |