h(); \
}
-#define MODULE_FUNCRET(var, m, func) *((void **) (&var)) = lt_dlsym(m, func)
+#define MODULE_FUNCPTR(var, m, func) *((void **) (&var)) = lt_dlsym(m, func)
#endif /* _MODULES_H_ */
struct module_entry_t *module_list = NULL;
-/* Function utility pointer for module system macros.
- * This gets us through the ISO C warnings about our posix compliance issues.
- **/
-
/* Ads a module entry and returns */
struct module_entry_t *module_entry_add(char *name) {
struct module_entry_t *entry;
}
/* Some OSes may need symbols to be prefixed with _.. Will need to look into autoconfig code for this */
- MODULE_FUNCRET(module_loader, handle, "module_load");
+ MODULE_FUNCPTR(module_loader, handle, "module_load");
if(!module_loader) {
do_rawlog(LT_ERR, "Error Loading Module: Could not call module_load | %s", file);
}
module->handle = handle;
module->load = module_loader;
- MODULE_FUNCRET(module->unload, handle, "module_unload");
+ MODULE_FUNCPTR(module->unload, handle, "module_unload");
/* Grab info and version from module & put it in */
/* Success.. Call the module */
/* This function can override standard checks! */
/* This doohicky is the replacement for local_can_interact_first */
MODULE_ITER(m) {
- MODULE_FUNCRET(handle, m->handle, "module_can_interact_first");
+ MODULE_FUNCPTR(handle, m->handle, "module_can_interact_first");
if (handle) {
if ((lci = handle(from, to , type)) != NOTHING)
return lci;
return 1;
MODULE_ITER(m) {
- MODULE_FUNCRET(handle, m->handle, "module_can_interact_last");
+ MODULE_FUNCPTR(handle, m->handle, "module_can_interact_last");
if (handle) {
if ((lci = handle(from, to , type)) != NOTHING)
return lci;