plugins/perl/perl-handlers.h

Thu, 15 Jan 2004 22:55:09 +0000

author
Ethan Blanton <elb@pidgin.im>
date
Thu, 15 Jan 2004 22:55:09 +0000
changeset 8115
f8f1f6953e2d
parent 6568
5c8c70b63dc3
child 11123
098f5c57f2bb
permissions
-rw-r--r--

[gaim-migrate @ 8819]
We had a manual strip in the RPM spec due to some systems not properly
stripping the RPMs when building ... this appears to be due to a
missing elfutils package (at least on my system), and so since it is
fixable I am removing the manual strip -- this gets us back to working
-debuginfo RPMs, which I think are a fantastic idea.

#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_ */

mercurial