view plugins/perl/common/Account.xs @ 11015:45ceaa1ccc6e

[gaim-migrate @ 12884] (10:37:16) rizzo: wtf that silc ft patch still not in (10:38:45) LSchiere2: rizzo: what are you talking about (10:39:03) rizzo: gaim silc won't build against silc 1.0 (10:39:16) rizzo: has been an issue since gaim 1.3.0 (10:39:29) LSchiere2: I don't recall the patch (10:39:32) rizzo: http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/net-im/gaim/files/gaim-1.3.0-silc-ft.patch (10:39:41) rizzo: I thought I got it from you guys (10:39:46) LSchiere2: is it in our tracker? (10:39:51) rizzo: I don't see it (10:40:05) ***rizzo digs up his bug (10:40:57) rizzo: LSchiere2: I think pekka emailed it to -packagers list (10:41:01) rizzo: http://bugs.gentoo.org/show_bug.cgi?id=92251 (10:41:33) rizzo: from his email: (10:41:33) rizzo: Enclosed a small patch that makes the Gaim compile with SILC Toolkit 1.0. (10:41:33) rizzo: We had unfortunate timing when I released 1.0 at the same time you (10:41:33) rizzo: released Gaim 1.3 so I didn't have time to make the patch for 1.3. (10:41:33) rizzo: Anyway, the patch removes code that really isn't supposed to even be (10:41:33) rizzo: there... committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 17 Jun 2005 14:53:38 +0000
parents 2f5d99f963eb
children 134d0001983d
line wrap: on
line source

#include "module.h"

MODULE = Gaim::Account  PACKAGE = Gaim::Account  PREFIX = gaim_account_
PROTOTYPES: ENABLE

void
gaim_account_connect(account)
	Gaim::Account account

void
gaim_account_disconnect(account)
	Gaim::Account account

void
gaim_account_set_username(account, username)
	Gaim::Account account
	const char *username

void
gaim_account_set_password(account, password)
	Gaim::Account account
	const char *password

void
gaim_account_set_alias(account, alias)
	Gaim::Account account
	const char *alias

void
gaim_account_set_user_info(account, user_info)
	Gaim::Account account
	const char *user_info
CODE:
	gaim_account_set_user_info(account, user_info);
	serv_set_info(gaim_account_get_connection(account), user_info);

void
gaim_account_set_buddy_icon(account, buddy_icon)
	Gaim::Account account
	const char *buddy_icon

void
gaim_account_set_protocol_id(account, protocol_id)
	Gaim::Account account
	const char *protocol_id

void
gaim_account_set_remember_password(account, value)
	Gaim::Account account
	gboolean value

void
gaim_account_set_check_mail(account, value)
	Gaim::Account account
	gboolean value

void
gaim_account_set_enabled(account, ui, value)
	Gaim::Account account
	const char *ui
	gboolean value

gboolean
gaim_account_is_connected(account)
	Gaim::Account account

const char *
gaim_account_get_username(account)
	Gaim::Account account

const char *
gaim_account_get_password(account)
	Gaim::Account account

const char *
gaim_account_get_alias(account)
	Gaim::Account account

const char *
gaim_account_get_user_info(account)
	Gaim::Account account

const char *
gaim_account_get_buddy_icon(account)
	Gaim::Account account

const char *
gaim_account_get_protocol_id(account)
	Gaim::Account account

Gaim::Connection
gaim_account_get_connection(account)
	Gaim::Account account

gboolean
gaim_account_get_remember_password(account)
	Gaim::Account account

gboolean
gaim_account_get_check_mail(account)
	Gaim::Account account

gboolean
gaim_account_get_enabled(account, ui)
	Gaim::Account account
	const char *ui


MODULE = Gaim::Account  PACKAGE = Gaim::Accounts  PREFIX = gaim_accounts_

void
gaim_accounts_add(account)
	Gaim::Account account

void
gaim_accounts_remove(account)
	Gaim::Account account

Gaim::Account
find(name, protocol_id)
	const char *name
	const char *protocol_id
CODE:
	RETVAL = gaim_accounts_find(name, protocol_id);
OUTPUT:
	RETVAL

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


MODULE = Gaim::Account  PACKAGE = Gaim

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