ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/modules.h
(Generate patch)

Comparing:
ircd-hybrid-7.2/include/modules.h (file contents), Revision 978 by michael, Sun Aug 9 09:47:58 2009 UTC vs.
ircd-hybrid/trunk/include/modules.h (file contents), Revision 1737 by michael, Mon Jan 14 17:37:55 2013 UTC

# Line 26 | Line 26
26   #define INCLUDED_modules_h
27  
28   #include "config.h"
29 #include "parse.h"
29  
30 < #include "ircd_handler.h"
31 < #include "msg.h"
32 < #include "memory.h"
30 >
31 > #define MODULE_FLAG_CORE     0x1
32 > #define MODULE_FLAG_NOUNLOAD 0x2
33  
34   struct module
35   {
# Line 38 | Line 37 | struct module
37    char *name;
38    const char *version;
39    void *handle;
40 <  int core;
41 <  void (*modremove)(void);
40 >  void (*modinit)(void);
41 >  void (*modexit)(void);
42 >  unsigned int flags;
43   };
44  
45   struct module_path
46   {
47    dlink_node node;
48 <  char path[PATH_MAX + 1];
48 >  char path[HYB_PATH_MAX + 1];
49   };
50  
51 + extern dlink_list modules_list;
52 +
53   /* add a path */
54   extern void mod_add_path(const char *);
55   extern void mod_clear_paths(void);
# Line 62 | Line 64 | extern void load_core_modules(int);
64   extern void add_conf_module(const char *);
65   /* load all modules listed in conf */
66   extern void load_conf_modules(void);
67 + extern void modules_init(void);
68  
66 extern void _modinit(void);
67 extern void _moddeinit(void);
68
69 extern void dynlink_init(void);
69   extern int unload_one_module(const char *, int);
70   extern int modules_valid_suffix(const char *);
71 < extern int load_one_module(const char *, int);
72 < extern int load_a_module(const char *, int, int);
73 < extern dlink_node *findmodule_byname(const char *);
75 < extern void modules_init(void);
71 > extern int load_one_module(const char *);
72 > extern int load_a_module(const char *, int);
73 > extern struct module *findmodule_byname(const char *);
74   #endif /* INCLUDED_modules_h */

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)