diff 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
line wrap: on
line diff
--- a/src/protocols/oscar/service.c	Tue Nov 11 05:41:44 2003 +0000
+++ b/src/protocols/oscar/service.c	Tue Nov 11 05:57:24 2003 +0000
@@ -543,8 +543,13 @@
  * call it again with zero when you're back.
  *
  */
-faim_export int aim_bos_setidle(aim_session_t *sess, aim_conn_t *conn, fu32_t idletime)
+faim_export int aim_srv_setidle(aim_session_t *sess, fu32_t idletime)
 {
+	aim_conn_t *conn;
+
+	if (!sess || !(conn = aim_conn_findbygroup(sess, AIM_CB_FAM_GEN)))
+		return -EINVAL;
+
 	return aim_genericreq_l(sess, conn, 0x0001, 0x0011, &idletime);
 }
 
@@ -1069,7 +1074,7 @@
 	return 0;
 }
 
-faim_internal int general_modfirst(aim_session_t *sess, aim_module_t *mod)
+faim_internal int service_modfirst(aim_session_t *sess, aim_module_t *mod)
 {
 
 	mod->family = 0x0001;
@@ -1077,7 +1082,7 @@
 	mod->toolid = 0x0110;
 	mod->toolversion = 0x0629;
 	mod->flags = 0;
-	strncpy(mod->name, "general", sizeof(mod->name));
+	strncpy(mod->name, "service", sizeof(mod->name));
 	mod->snachandler = snachandler;
 
 	return 0;