root/src/noit_module.c

Revision 0268e62cb80791dd94220cf6deec916656c7cddd, 478 bytes (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

update.. prep for config system and module loading

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  */
5
6 #include "noit_defines.h"
7 #include "noit_module.h"
8 #include "utils/noit_hash.h"
9
10 static noit_hash_table modules = NOIT_HASH_EMPTY;
11
12 int noit_module_load(const char *file, const char *name) {
13 }
14 noit_module_t * noit_module_lookup(const char *name) {
15   noit_module_t *module;
16
17   if(noit_hash_retrieve(&modules, name, strlen(name), (void **)&module)) {
18     return module;
19   }
20   return NULL;
21 }
22
Note: See TracBrowser for help on using the browser.