23 |
#ifndef __WEECHAT_PLUGINS_H |
#ifndef __WEECHAT_PLUGINS_H |
24 |
#define __WEECHAT_PLUGINS_H 1 |
#define __WEECHAT_PLUGINS_H 1 |
25 |
|
|
26 |
#define PLUGIN_TYPE_UNKNOWN 0 |
#define PLUGIN_TYPE_PERL 0 |
27 |
#define PLUGIN_TYPE_PERL 1 |
#define PLUGIN_TYPE_PYTHON 1 |
28 |
#define PLUGIN_TYPE_PYTHON 2 |
#define PLUGIN_TYPE_RUBY 2 |
29 |
#define PLUGIN_TYPE_RUBY 3 |
|
30 |
|
typedef struct t_plugin_script t_plugin_script; |
31 |
|
|
32 |
|
struct t_plugin_script |
33 |
|
{ |
34 |
|
char *name; /* name of script */ |
35 |
|
char *version; /* version of script */ |
36 |
|
char *shutdown_func; /* function when script ends */ |
37 |
|
char *description; /* description of script */ |
38 |
|
t_plugin_script *prev_script; /* link to previous Perl script */ |
39 |
|
t_plugin_script *next_script; /* link to next Perl script */ |
40 |
|
}; |
41 |
|
|
42 |
typedef struct t_plugin_handler t_plugin_handler; |
typedef struct t_plugin_handler t_plugin_handler; |
43 |
|
|
57 |
extern t_plugin_handler *plugin_cmd_handlers; |
extern t_plugin_handler *plugin_cmd_handlers; |
58 |
extern t_plugin_handler *last_plugin_cmd_handler; |
extern t_plugin_handler *last_plugin_cmd_handler; |
59 |
|
|
60 |
|
#ifdef PLUGIN_PERL |
61 |
|
extern t_plugin_script *perl_scripts; |
62 |
|
#endif |
63 |
|
|
64 |
extern void plugin_init (); |
extern void plugin_init (); |
65 |
extern void plugin_load (int, char *); |
extern void plugin_load (int, char *); |