Mercurial > pidgin.yaz
changeset 12787:239c2cd3b3a6
[gaim-migrate @ 15134]
Whitespace, namespacing, and fix a couple functions to correctly class some
stuff.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Mon, 09 Jan 2006 08:00:31 +0000 |
parents | 33ddb29406a1 |
children | 4cf2094256b0 |
files | plugins/perl/common/Connection.xs |
diffstat | 1 files changed, 35 insertions(+), 40 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/perl/common/Connection.xs Mon Jan 09 07:54:59 2006 +0000 +++ b/plugins/perl/common/Connection.xs Mon Jan 09 08:00:31 2006 +0000 @@ -1,12 +1,6 @@ #include "module.h" -MODULE = Gaim::Connection PACKAGE = Gaim::GTK::Connection PREFIX = gaim_gtk_connections_ -PROTOTYPES: ENABLE - -Gaim::Connection::UiOps -gaim_gtk_connections_get_ui_ops() - -MODULE = Gaim::Connection PACKAGE = Gaim::Connection PREFIX = gaim_connections_ +MODULE = Gaim::Connection PACKAGE = Gaim::Connection PREFIX = gaim_connection_ PROTOTYPES: ENABLE Gaim::Account @@ -21,17 +15,43 @@ gaim_connection_get_display_name(gc) Gaim::Connection gc -void +void gaim_connection_notice(gc, text) Gaim::Connection gc const char *text -void +void gaim_connection_error(gc, reason) Gaim::Connection gc const char *reason -void +void +gaim_connection_destroy(gc) + Gaim::Connection gc + +void +gaim_connection_set_state(gc, state) + Gaim::Connection gc + Gaim::ConnectionState state + +void +gaim_connection_set_account(gc, account) + Gaim::Connection gc + Gaim::Account account + +void +gaim_connection_set_display_name(gc, name) + Gaim::Connection gc + const char *name + +Gaim::ConnectionState +gaim_connection_get_state(gc) + Gaim::Connection gc + +MODULE = Gaim::Connection PACKAGE = Gaim::Connections PREFIX = gaim_connections_ +PROTOTYPES: ENABLE + +void gaim_connections_disconnect_all() void @@ -40,55 +60,30 @@ GList *l; PPCODE: for (l = gaim_connections_get_all(); l != NULL; l = l->next) { - XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); + XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Connection"))); } - void gaim_connections_get_connecting() PREINIT: GList *l; PPCODE: for (l = gaim_connections_get_connecting(); l != NULL; l = l->next) { - XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); + XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Connection"))); } -void +void gaim_connections_set_ui_ops(ops) Gaim::Connection::UiOps ops Gaim::Connection::UiOps gaim_connections_get_ui_ops() -void +void gaim_connections_init() -void +void gaim_connections_uninit() void * gaim_connections_get_handle() - -void -gaim_connection_destroy(gc) - Gaim::Connection gc - -void -gaim_connection_set_state(gc, state) - Gaim::Connection gc - Gaim::ConnectionState state - -void -gaim_connection_set_account(gc, account) - Gaim::Connection gc - Gaim::Account account - -void -gaim_connection_set_display_name(gc, name) - Gaim::Connection gc - const char *name - -Gaim::ConnectionState -gaim_connection_get_state(gc) - Gaim::Connection gc -