plugins/perl/common/Conversation_IM.xs

Mon, 15 Sep 2003 07:35:49 +0000

author
Christian Hammond <chipx86@chipx86.com>
date
Mon, 15 Sep 2003 07:35:49 +0000
changeset 6846
f814f02dca87
parent 6591
cc1ab32edcdc
child 6982
12f08de92674
permissions
-rw-r--r--

[gaim-migrate @ 7391]
Added new buddy icon caching code. Each GaimBuddy has its own icon, and the
complete list of all icons is now stored in a set of hashtables for quick
retrieval. Buddy icons now live much happier in the core, with the magma
and tooth fairies (that's where they really live).

#include "module.h"

MODULE = Gaim::Conversation::IM  PACKAGE = Gaim::Conversation::IM  PREFIX = gaim_im_
PROTOTYPES: ENABLE

Gaim::Conversation::IM
new(account, name)
	Gaim::Account account
	const char *name
CODE:
	RETVAL = GAIM_IM(gaim_conversation_new(GAIM_CONV_IM, account, name));
OUTPUT:
	RETVAL

void
DESTROY(im)
	Gaim::Conversation::IM im
CODE:
	gaim_conversation_destroy(gaim_im_get_conversation(im));


Gaim::Conversation
gaim_im_get_conversation(im)
	Gaim::Conversation::IM im

void
gaim_im_write(im, who, message, flags)
	Gaim::Conversation::IM im
	const char *who
	const char *message
	int flags
CODE:
	gaim_im_write(im, who, message, -1, flags, time(NULL));

void
gaim_im_send(im, message)
	Gaim::Conversation::IM im
	const char *message


MODULE = Gaim::Conversation::IM  PACKAGE = Gaim  PREFIX = gaim_
PROTOTYPES: ENABLE

void
ims()
PREINIT:
	GList *l;
PPCODE:
	for (l = gaim_get_ims(); l != NULL; l = l->next)
	{
		XPUSHs(sv_2mortal(gaim_perl_bless_object(GAIM_IM(l->data),
			"Gaim::Conversation")));
	}

mercurial