Add save_dllvar() function exported to modules
This helper function is for modules to save the contents of their module variables to a file as SET commands. It will remove the need to export the raw dll_variable list to modules.
This commit is contained in:
@@ -463,6 +463,7 @@ extern Function_ptr *global;
|
||||
#define set_dllint_var (*(void (*)(char *, unsigned int ))global[SET_DLLINT_VAR])
|
||||
#define get_dllstring_var (*(char *(*)(char *))global[GET_DLLSTRING_VAR])
|
||||
#define set_dllstring_var (*(void (*)(char *, char *))global[SET_DLLSTRING_VAR])
|
||||
#define save_dllvar (*(void (*)(FILE *, char *))global[SAVE_DLLVAR])
|
||||
|
||||
#define get_int_var (*(int (*)(enum VAR_TYPES ))global[GET_INT_VAR])
|
||||
#define set_int_var (*(void (*)(enum VAR_TYPES , unsigned int ))global[SET_INT_VAR])
|
||||
|
||||
Reference in New Issue
Block a user