int module_close(struct module_entry_t *m);
int modules_shutdown(void);
-extern void *utility_memcpy_ptr; /* This gets us through the ISO C warnings about our POSIX compliance macros */
+extern void *module_utility_fptr; /* This gets us through the ISO C warnings about our POSIX compliance macros */
/* Iterate through Module List */
#define MODULE_ITER(m) for(m = module_list ; m != NULL ; m = m->next)
/* Retrieve Module Function */
/* This Macro can only be used for non-returning calls */
#define MODULE_FUNC(h, m, func, ...) \
- utility_memcpy_ptr = lt_dlsym(m, func); \
- memcpy(&h, &utility_memcpy_ptr, sizeof(utility_memcpy_ptr)); \
+ module_utility_fptr = lt_dlsym(m, func); \
+ memcpy(&h, &module_utility_fptr, sizeof(module_utility_fptr)); \
if(h) { \
h(__VA_ARGS__); \
}
#define MODULE_FUNC_NOARGS(h, m, func) \
- utility_memcpy_ptr = lt_dlsym(m, func); \
- memcpy(&h, &utility_memcpy_ptr, sizeof(utility_memcpy_ptr)); \
+ module_utility_fptr = lt_dlsym(m, func); \
+ memcpy(&h, &module_utility_fptr, sizeof(module_utility_fptr)); \
if(h) { \
h(); \
}
struct module_entry_t *module_list = NULL;
-/* Utility power for my macros... This gets us through the ISO C warnings about our posix compliance issues.. */
-void *utility_memcpy_ptr;
+/* Function utility pointer for module system macros.
+ * This gets us through the ISO C warnings about our posix compliance issues.
+ **/
+void *module_utility_fptr;
/* Ads a module entry and returns */
struct module_entry_t *module_entry_add(char *name) {