diff src/connection.h @ 10738:55af3fa46329

[gaim-migrate @ 12340] Lots of changes here. A lot of it stems from chaning gaim_account_connect() so that it DOES NOT have the GaimStatus parameter. It will attempt to use the GaimStatus of your account from the last time it was connected (which doesn't work quite right yet). My goal here was to save and load each account's GaimStatuses to accounts.xml, so if you were "away" when you signed off then you'll be "away" when you sign back on. Not quite there yet. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 26 Mar 2005 20:08:43 +0000
parents 4829abdc5c35
children 94cc67130789
line wrap: on
line diff
--- a/src/connection.h	Sat Mar 26 19:19:33 2005 +0000
+++ b/src/connection.h	Sat Mar 26 20:08:43 2005 +0000
@@ -129,14 +129,21 @@
 void gaim_connection_destroy(GaimConnection *gc);
 
 /**
- * Logs in to this connection.
+ * This function should only be called by gaim_connection_connect()
+ * in account.c.  If you're trying to sign on an account, use that
+ * function instead.
+ *
+ * Logs in to this connection.  The connection uses the current
+ * active status in the account as the initial status.  So if
+ * you want to sign on as "away," for example, you need to
+ * have called gaim_account_set_status(account, "away").
+ * (And generally this has the effect of also signin on).
  *
  * @param gc The connection to log in.
- * @param status The status to login to.
  *
  * @see gaim_connection_disconnect()
  */
-void gaim_connection_connect(GaimConnection *gc, GaimStatus *status);
+void gaim_connection_connect(GaimConnection *gc);
 
 /**
  * Registers a connection.
@@ -146,6 +153,10 @@
 void gaim_connection_register(GaimConnection *gc);
 
 /**
+ * This function should only be called by gaim_connection_disconnect()
+ * in account.c.  If you're trying to sign out an account, use that
+ * function instead.
+ *
  * Logs out of this connection.
  *
  * @param gc The connection to log out.