view libpurple/plugins/perl/common/Connection.xs @ 16200:470caa5fe675

Fix Ticket #162 "On AIM, the default smiley theme does not display the image for :-), only :) This is confirmed in default/theme, but almost all other AIM smileys have both ?? and ?-?."
author Richard Laager <rlaager@wiktel.com>
date Mon, 16 Apr 2007 03:37:48 +0000
parents 2f8274ce570a
children 39c7bb133a9f
line wrap: on
line source

#include "module.h"

MODULE = Purple::Connection  PACKAGE = Purple::Connection  PREFIX = purple_connection_
PROTOTYPES: ENABLE

Purple::Account
purple_connection_get_account(gc)
	Purple::Connection gc

const char *
purple_connection_get_password(gc)
	Purple::Connection gc

const char *
purple_connection_get_display_name(gc)
	Purple::Connection gc

void
purple_connection_notice(gc, text)
	Purple::Connection gc
	const char *text

void
purple_connection_error(gc, reason)
	Purple::Connection gc
	const char *reason

void
purple_connection_destroy(gc)
	Purple::Connection gc

void
purple_connection_set_state(gc, state)
	Purple::Connection gc
	Purple::ConnectionState state

void
purple_connection_set_account(gc, account)
	Purple::Connection gc
	Purple::Account account

void
purple_connection_set_display_name(gc, name)
	Purple::Connection gc
	const char *name

Purple::ConnectionState
purple_connection_get_state(gc)
	Purple::Connection gc

MODULE = Purple::Connection  PACKAGE = Purple::Connections  PREFIX = purple_connections_
PROTOTYPES: ENABLE

void
purple_connections_disconnect_all()

void
purple_connections_get_all()
PREINIT:
	GList *l;
PPCODE:
	for (l = purple_connections_get_all(); l != NULL; l = l->next) {
		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Connection")));
	}

void
purple_connections_get_connecting()
PREINIT:
	GList *l;
PPCODE:
	for (l = purple_connections_get_connecting(); l != NULL; l = l->next) {
		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Connection")));
	}

void
purple_connections_set_ui_ops(ops)
	Purple::Connection::UiOps ops

Purple::Connection::UiOps
purple_connections_get_ui_ops()

void
purple_connections_init()

void
purple_connections_uninit()

Purple::Handle
purple_connections_get_handle()