diff options
author | Eugene Sandulenko | 2004-07-31 23:33:14 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-07-31 23:33:14 +0000 |
commit | 46a1c45d70bbfb6654a9c13e26949a4543d17e80 (patch) | |
tree | 69cc31d24d4fce500a388ce2ba992a4c51365ce7 /saga/cvar_mod.h | |
parent | f0d6fd8c5ac3bf144eef93f146e9c056321e11db (diff) | |
download | scummvm-rg350-46a1c45d70bbfb6654a9c13e26949a4543d17e80.tar.gz scummvm-rg350-46a1c45d70bbfb6654a9c13e26949a4543d17e80.tar.bz2 scummvm-rg350-46a1c45d70bbfb6654a9c13e26949a4543d17e80.zip |
Extended CVAR_RegisterFunc with callback object parameter.
Got rid of static structure in animation.cpp
svn-id: r14397
Diffstat (limited to 'saga/cvar_mod.h')
-rw-r--r-- | saga/cvar_mod.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/cvar_mod.h b/saga/cvar_mod.h index ddeaf3d40b..d31b1cded7 100644 --- a/saga/cvar_mod.h +++ b/saga/cvar_mod.h @@ -37,7 +37,7 @@ typedef int cv_int_t; typedef unsigned int cv_uint16_t; typedef float cv_float_t; typedef char cv_char_t; -typedef void (*cv_func_t) (int cv_argc, char *cv_argv[]); +typedef void (*cv_func_t) (int cv_argc, char *cv_argv[], void *refCon); /******************************************/ typedef struct R_CVAR_tag *R_CVAR_P; // opaque typedef @@ -70,7 +70,7 @@ int CVAR_GetError(const char **err_str); int CVAR_IsFunc(R_CVAR_P cvar_func); int CVAR_Exec(R_CVAR_P cvar_func, char *r_value); int CVAR_RegisterFunc(cv_func_t func, const char *func_name, - const char *func_argstr, uint16 flags, int min_args, int max_args); + const char *func_argstr, uint16 flags, int min_args, int max_args, void *refCon); int CVAR_Register_I(cv_int_t * var_p, const char *var_name, const char *section, uint16 flags, cv_int_t lbound, cv_int_t ubound); int CVAR_Register_UI(cv_uint16_t * var_p, const char *var_name, |