view plugins/perl/common/Connection.xs @ 8536:008e4576dbfc

[gaim-migrate @ 9275] (10:51:01) datallah: LSchiere: I've got a fix for bug #925013 from bug #925013: " Since I set a contact's nick to a string that contained an ampersand I stopped receiving "new message" or "user is typing" type of notifications for that contact. Then I replaced the ampersand and now it works as expected." --Javier Kohen committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 31 Mar 2004 15:51:31 +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")));