]> andersk Git - libfaim.git/blobdiff - aim_logoff.c
- Thu Feb 8 02:31:25 UTC 2001
[libfaim.git] / aim_logoff.c
index ebea9dce1dee3c883f0245294ae0288c357bb523..0ea3f0061c8c86b80b63be405e6fb0655ad76fd2 100644 (file)
@@ -2,9 +2,12 @@
  * aim_logoff.c
  *
  *
+ * XXX remove this excuse for a file.
+ *
  */
 
-#include "aim.h"
+#define FAIM_INTERNAL
+#include <faim/aim.h> 
 
 /* 
  * aim_logoff()
  * Closes -ALL- open connections.
  *
  */
-int aim_logoff(void)
+faim_export int aim_logoff(struct aim_session_t *sess)
 {
-  int i = AIM_CONN_MAX-1;
-  while (i > -1)
-    {
-      if (aim_conns[i].fd>-1)
-       aim_conn_close(&(aim_conns[i]));
-      i--;
-    }
-  aim_connrst();  /* in case we want to connect again */
+  aim_connrst(sess);  /* in case we want to connect again */
 
   return 0;
 
This page took 0.046679 seconds and 4 git commands to generate.