view plugins/perl/common/Connection.xs @ 8563:713b10dfd5ff

[gaim-migrate @ 9309] (09:59:10) datallah: of course as soon as 0.76 is released i notice a stupid issue that i fixed once before (09:59:17) LSchiere: of course (09:59:43) datallah: fortunately, it is just a compile warning (10:00:29) datallah: LSchiere: http://www.butfer.com/gaim-patches/libc_interface_h_typo_fix_2.patch (10:00:59) Paco-Paco: what the crap (10:01:01) Paco-Paco: windows lover committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 02 Apr 2004 14:50:46 +0000
parents 6deef41364bd
children 134d0001983d
line wrap: on
line source

#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")));