plugins/perl/common/Connection.xs

Fri, 11 Jun 2004 00:16:36 +0000

author
Justin Wood
date
Fri, 11 Jun 2004 00:16:36 +0000
changeset 9262
3aa857850c6f
parent 6584
9785a533d08e
child 11118
36db35a9da56
permissions
-rw-r--r--

[gaim-migrate @ 10061]
Patch by Justin Wood. He says:

"User icon would set wrong status There is a small window, that if you set
a user icon, you'll set the wrong status for the next update.

Thought this over, and it shouldn't have any nasty side effects.. but there
are potential problems, if a status change message is lost. Things should
be ok though, that said"

committer: Christian Hammond <chipx86@chipx86.com>

#include "module.h"

MODULE = Gaim::Connection  PACKAGE = Gaim::Connection  PREFIX = gaim_connection_
PROTOTYPES: ENABLE

void
gaim_connection_set_display_name(gc, name)
	Gaim::Connection gc
	const char *name

Gaim::Account
gaim_connection_get_account(gc)
	Gaim::Connection gc

const char *
gaim_connection_get_display_name(gc)
	Gaim::Connection gc


MODULE = Gaim::Connections  PACKAGE = Gaim::Connections  PREFIX = gaim_connections_
PROTOTYPES: ENABLE

void
gaim_connections_disconnect_all()

void *
handle()
CODE:
	RETVAL = gaim_connections_get_handle();
OUTPUT:
	RETVAL


MODULE = Gaim::Connection  PACKAGE = Gaim

void
connections()
PREINIT:
	GList *l;
PPCODE:
	for (l = gaim_connections_get_all(); l != NULL; l = l->next)
		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Connection")));

mercurial