plugins/perl/common/Conversation_IM.xs

Fri, 12 Mar 2004 22:57:29 +0000

author
Evan Schoenberg <evands@pidgin.im>
date
Fri, 12 Mar 2004 22:57:29 +0000
changeset 8437
9a95bfeb008d
parent 7120
83dba78f8518
permissions
-rw-r--r--

[gaim-migrate @ 9167]
Small patch from evands to let you add @mac.com screen names to your
buddy lists again. I think I broke this after 0.75 was released.

Also add a check to make sure you're signing on with a valid
screen name, but leave it commented out because it would break
the string freeze.

committer: Mark Doliner <markdoliner@pidgin.im>

#include "module.h"

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

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

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


Gaim::Conversation
gaim_conv_im_get_conversation(im)
	Gaim::Conversation::IM im

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

void
gaim_conv_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_CONV_IM(l->data),
			"Gaim::Conversation")));
	}

mercurial