22 |
#ifndef __WEECHAT_WEECHAT_PLUGIN_H |
#ifndef __WEECHAT_WEECHAT_PLUGIN_H |
23 |
#define __WEECHAT_WEECHAT_PLUGIN_H 1 |
#define __WEECHAT_WEECHAT_PLUGIN_H 1 |
24 |
|
|
25 |
|
/* return codes for init function and handlers */ |
26 |
|
#define PLUGIN_RC_KO -1 /* function/handler failed */ |
27 |
|
#define PLUGIN_RC_OK 0 /* function/handler ok */ |
28 |
|
|
29 |
|
/* return codes specific to message handlers: messages can be discarded for |
30 |
|
WeeChat, for plugins, or both */ |
31 |
|
#define PLUGIN_RC_OK_IGNORE_WEECHAT 1 /* ignore WeeChat for this message */ |
32 |
|
#define PLUGIN_RC_OK_IGNORE_PLUGINS 2 /* ignore other plugins for this msg */ |
33 |
|
#define PLUGIN_RC_OK_IGNORE_ALL (PLUGIN_RC_DISCARD_WEECHAT \ |
34 |
|
| PLUGIN_RC_DISCARD_PLUGINS) |
35 |
|
/* ignore WeeChat and other plugins */ |
36 |
|
|
37 |
typedef struct t_plugin_dcc_info t_plugin_dcc_info; |
typedef struct t_plugin_dcc_info t_plugin_dcc_info; |
38 |
|
|
39 |
struct t_plugin_dcc_info |
struct t_plugin_dcc_info |