/[weechat]/weechat/src/plugins/plugins.h
ViewVC logotype

Diff of /weechat/src/plugins/plugins.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by flashcode, Sun Nov 16 19:40:36 2003 UTC revision 1.2 by flashcode, Sun Nov 16 23:46:49 2003 UTC
# Line 20  Line 20 
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 */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26