20 |
*/ |
*/ |
21 |
|
|
22 |
|
|
23 |
#ifndef __WEECHAT_PLUGIN_H |
#ifndef __WEECHAT_PLUGINS_H |
24 |
#define __WEECHAT_PLUGIN_H 1 |
#define __WEECHAT_PLUGINS_H 1 |
25 |
|
|
26 |
#define PLUGIN_UNKNOWN 0 |
#define PLUGIN_UNKNOWN 0 |
27 |
#define PLUGIN_PERL 1 |
#define PLUGIN_PERL 1 |
28 |
#define PLUGIN_PYTHON 2 |
#define PLUGIN_PYTHON 2 |
29 |
#define PLUGIN_RUBY 3 |
#define PLUGIN_RUBY 3 |
30 |
|
|
31 |
|
typedef struct t_plugin_handler t_plugin_handler; |
32 |
|
|
33 |
|
struct t_plugin_handler |
34 |
|
{ |
35 |
|
int plugin_type; /* plugin type (Perl, Python, Ruby) */ |
36 |
|
char *name; /* name (message or command) */ |
37 |
|
char *function_name; /* name of function (handler) */ |
38 |
|
t_plugin_handler *prev_handler; /* link to previous handler */ |
39 |
|
t_plugin_handler *next_handler; /* link to next handler */ |
40 |
|
}; |
41 |
|
|
42 |
|
|
43 |
extern void plugins_init (); |
extern void plugins_init (); |
44 |
extern void plugins_load (int, char *); |
extern void plugins_load (int, char *); |
45 |
extern void plugins_unload (int, char *); |
extern void plugins_unload (int, char *); |
46 |
|
extern void plugins_msg_handler_add (int, char *, char *); |
47 |
extern void plugins_end (); |
extern void plugins_end (); |
48 |
|
|
49 |
#endif /* plugins.h */ |
#endif /* plugins.h */ |