view plugins/perl/perl-handlers.h @ 8034:b068791d7635

[gaim-migrate @ 8714] The Dead Body That Claims It Isn't: I'm not dead! Collector: What? Large Man with Dead Body: Nothing. There's your ninepence. The Dead Body That Claims It Isn't: I'm not dead! Collector: 'Ere, he says he's not dead. LM w/ DB: Yes he is. The DB That CII: I'm not! Collector: He isn't. LM w/ DB: Well, he will be soon, he's very ill. The DB That CII: I'm getting better! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 07 Jan 2004 06:20:19 +0000
parents 33486b749aa9
children 4315bb5f427b
line wrap: on
line source

#ifndef _GAIM_PERL_HANDLERS_H_
#define _GAIM_PERL_HANDLERS_H_

#include "plugin.h"

typedef struct
{
	SV *callback;
	SV *data;
	GaimPlugin *plugin;
	int iotag;

} GaimPerlTimeoutHandler;

typedef struct
{
	char *signal;
	SV *callback;
	SV *data;
	void *instance;
	GaimPlugin *plugin;

} GaimPerlSignalHandler;


void gaim_perl_timeout_add(GaimPlugin *plugin, int seconds, SV *callback,
						   SV *data);
void gaim_perl_timeout_clear_for_plugin(GaimPlugin *plugin);
void gaim_perl_timeout_clear(void);

void gaim_perl_signal_connect(GaimPlugin *plugin, void *instance,
							  const char *signal, SV *callback,
							  SV *data);
void gaim_perl_signal_disconnect(GaimPlugin *plugin, void *instance,
								 const char *signal);
void gaim_perl_signal_clear_for_plugin(GaimPlugin *plugin);
void gaim_perl_signal_clear(void);

#endif /* _GAIM_PERL_HANDLERS_H_ */