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/include/modules.h (file contents), Revision 1028 by michael, Sun Nov 8 13:03:38 2009 UTC vs.
ircd-hybrid/trunk/include/modules.h (file contents), Revision 2923 by michael, Sat Jan 25 21:43:43 2014 UTC

# Line 1 | Line 1
1   /*
2 < *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 < *  modules.h: A header for the modules functions.
2 > *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (C) 2002 by the past and present ircd coders, and others.
4 > *  Copyright (c) 2000-2014 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 18 | Line 17
17   *  along with this program; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
19   *  USA
20 < *
21 < *  $Id$
20 > */
21 >
22 > /*! \file modules.h
23 > * \brief A header for the modules functions.
24 > * \version $Id$
25   */
26  
27   #ifndef INCLUDED_modules_h
28   #define INCLUDED_modules_h
29  
30 < #include "config.h"
31 < #include "parse.h"
30 <
31 < #include "ircd_handler.h"
32 < #include "msg.h"
33 < #include "memory.h"
30 > #define MODULE_FLAG_CORE     0x1
31 > #define MODULE_FLAG_NOUNLOAD 0x2
32  
33   struct module
34   {
# Line 38 | Line 36 | struct module
36    char *name;
37    const char *version;
38    void *handle;
39 <  void (*modremove)(void);
40 <  int core;
39 >  void (*modinit)(void);
40 >  void (*modexit)(void);
41 >  unsigned int flags;
42   };
43  
44   struct module_path
45   {
46    dlink_node node;
47 <  char path[PATH_MAX + 1];
47 >  char path[HYB_PATH_MAX + 1];
48   };
49  
50 + extern dlink_list modules_list;
51 +
52   /* add a path */
53   extern void mod_add_path(const char *);
54   extern void mod_clear_paths(void);
# Line 62 | Line 63 | extern void load_core_modules(int);
63   extern void add_conf_module(const char *);
64   /* load all modules listed in conf */
65   extern void load_conf_modules(void);
66 + extern void modules_init(void);
67  
66 extern void _modinit(void);
67 extern void _moddeinit(void);
68
69 extern void dynlink_init(void);
68   extern int unload_one_module(const char *, int);
69   extern int modules_valid_suffix(const char *);
70 < extern int load_one_module(const char *, int);
71 < extern int load_a_module(const char *, int, int);
72 < extern dlink_node *findmodule_byname(const char *);
75 < extern void modules_init(void);
70 > extern int load_one_module(const char *);
71 > extern int load_a_module(const char *, int);
72 > extern struct module *findmodule_byname(const char *);
73   #endif /* INCLUDED_modules_h */

Diff Legend

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