view libgaim/plugins/perl/common/Connection.xs @ 14364:338ac096e322

[gaim-migrate @ 17070] Disabled GTK+ components of the Perl plugin (we'll no longer support gtk-perl prefs frames until this is refactored into a gtkgaim plugin somehow). Fix gaim_util_fetch_url and plug some leaks. I haven't successfully tested gaim_util_fetch_url from perl yet - it doesn't seem to actually pass the retrieved text to the plugin sub correctly yet. The syntax for calling gaim_util_fetch_url() from perl is also funky and should be made more consistent to the C function. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 28 Aug 2006 20:27:03 +0000
parents 60b1bc8dbf37
children b1fcd2fc903a
line wrap: on
line source

#include "module.h"

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

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

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

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

void
gaim_connection_notice(gc, text)
	Gaim::Connection gc
	const char *text

void
gaim_connection_error(gc, reason)
	Gaim::Connection gc
	const char *reason

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
gaim_connections_get_all()
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")));
	}

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::Connection")));
	}

void
gaim_connections_set_ui_ops(ops)
	Gaim::Connection::UiOps ops

Gaim::Connection::UiOps
gaim_connections_get_ui_ops()

void
gaim_connections_init()

void
gaim_connections_uninit()

void *
gaim_connections_get_handle()