export module_lookup()

personal/stbuehler/wip
Thomas Porzelt 14 years ago
parent 23a246a788
commit 52d5978d64
  1. 3
      include/lighttpd/module.h
  2. 3
      src/module.c

@ -54,6 +54,9 @@ LI_API void modules_cleanup(modules *mods);
* You should release modules after you used them with module_release or module_release_name */
LI_API module* module_load(modules *mods, const gchar* name);
/* find module by name */
LI_API module *module_lookup(modules *mods, const gchar *name);
LI_API void module_acquire(module *mod);
LI_API void module_release(modules *mods, module *mod);
LI_API void module_release_name(modules *mods, const gchar* name);

@ -12,8 +12,7 @@ modules *modules_init(gpointer main, const gchar *module_dir) {
return m;
}
/* for internal use only */
static module *module_lookup(modules *mods, const gchar *name) {
module *module_lookup(modules *mods, const gchar *name) {
module *mod;
GArray *a = mods->mods;

Loading…
Cancel
Save