From: Mark D. <the...@us...> - 2005-10-26 05:40:10
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19103/src Modified Files: connection.c prpl.h Log Message: Don't pass our active GaimStatus to the login PRPL callback... It's not used by most PRPLS, and that ones that DO use it probably shouldn't. Ideally the PRPLs won't store any info about their own status, message, etc. All that should be in the core status API, and when it needs some info it should query the core to get it. Index: connection.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/connection.c,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -p -r1.95 -r1.96 --- connection.c 20 Oct 2005 04:04:06 -0000 1.95 +++ connection.c 26 Oct 2005 05:40:01 -0000 1.96 @@ -145,7 +145,7 @@ gaim_connection_new(GaimAccount *account gaim_debug_info("connection", "Connecting. gc = %p\n", gc); gaim_signal_emit(gaim_accounts_get_handle(), "account-connecting", account); - prpl_info->login(account, gaim_account_get_active_status(account)); + prpl_info->login(account); } } Index: prpl.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/prpl.h,v retrieving revision 1.205 retrieving revision 1.206 diff -u -d -p -r1.205 -r1.206 --- prpl.h 18 Oct 2005 04:16:44 -0000 1.205 +++ prpl.h 26 Oct 2005 05:40:01 -0000 1.206 @@ -219,7 +219,7 @@ struct _GaimPluginProtocolInfo /* All the server-related functions */ /** This must be implemented. */ - void (*login)(GaimAccount *, GaimStatus *); + void (*login)(GaimAccount *); /** This must be implemented. */ void (*close)(GaimConnection *); |