/[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.5 by flashcode, Sat Nov 22 16:55:57 2003 UTC revision 1.6 by flashcode, Sun Nov 23 17:40:19 2003 UTC
# Line 23  Line 23 
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    
# Line 46  extern t_plugin_handler *last_plugin_msg Line 57  extern t_plugin_handler *last_plugin_msg
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 *);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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