/[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.13 by flashcode, Sun May 1 19:03:15 2005 UTC revision 1.14 by flashcode, Thu May 5 16:26:34 2005 UTC
# Line 21  Line 21 
21  #ifndef __WEECHAT_PLUGINS_H  #ifndef __WEECHAT_PLUGINS_H
22  #define __WEECHAT_PLUGINS_H 1  #define __WEECHAT_PLUGINS_H 1
23    
24    #include "../gui/gui.h"
25    
26  #define PLUGIN_TYPE_PERL    0  #define PLUGIN_TYPE_PERL    0
27  #define PLUGIN_TYPE_PYTHON  1  #define PLUGIN_TYPE_PYTHON  1
28  #define PLUGIN_TYPE_RUBY    2  #define PLUGIN_TYPE_RUBY    2
# Line 45  struct t_plugin_handler Line 47  struct t_plugin_handler
47      char *name;                     /* name of IRC command (PRIVMSG, ..)      char *name;                     /* name of IRC command (PRIVMSG, ..)
48                                         or command (without first '/')       */                                         or command (without first '/')       */
49      char *function_name;            /* name of function (handler)           */      char *function_name;            /* name of function (handler)           */
50        int running;                    /* 1 if currently running               */
51                                        /* (used to prevent circular call)      */
52      t_plugin_handler *prev_handler; /* link to previous handler             */      t_plugin_handler *prev_handler; /* link to previous handler             */
53      t_plugin_handler *next_handler; /* link to next handler                 */      t_plugin_handler *next_handler; /* link to next handler                 */
54  };  };
# Line 66  extern t_plugin_script *python_scripts; Line 70  extern t_plugin_script *python_scripts;
70  extern void plugin_auto_load (int, char *);  extern void plugin_auto_load (int, char *);
71  extern void plugin_init ();  extern void plugin_init ();
72  extern void plugin_load (int, char *);  extern void plugin_load (int, char *);
73  extern void plugin_unload (int, /*@null@*/ char *);  extern void plugin_unload (int, char *);
74  extern t_plugin_handler *plugin_handler_search (t_plugin_handler *, char *);  extern t_plugin_handler *plugin_handler_search (t_plugin_handler *, char *);
75  extern void plugin_handler_add (t_plugin_handler **, t_plugin_handler **,  extern void plugin_handler_add (t_plugin_handler **, t_plugin_handler **,
76                                  int, char *, char *);                                  int, char *, char *);
77  extern void plugin_handler_free_all_type (t_plugin_handler **,  extern void plugin_handler_free_all_type (t_plugin_handler **,
78                                            t_plugin_handler **, int);                                            t_plugin_handler **, int);
79  extern void plugin_event_msg (char *, char *, char *);  extern void plugin_event_msg (char *, char *, char *);
80  extern int plugin_exec_command (char *, /*@null@*/ char *, char *);  extern int plugin_exec_command (char *, char *, char *);
81    extern t_gui_buffer *plugin_find_buffer (char *, char *);
82  extern void plugin_end ();  extern void plugin_end ();
83    
84  #endif /* plugins.h */  #endif /* plugins.h */

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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