diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-09-28 14:09:09 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-09-28 14:09:09 +0000 |
commit | 307d8aa2af574715db56bfa5230bd4216268991b (patch) | |
tree | 87c113a31d20fa3a687d21d13133a69714a44d7c /src/include/cctk_Parameter.h | |
parent | 6fd0446292d3fd23b45865554eefc42f4336287d (diff) |
Added two new flesh API functions CCTK_ParameterSetNotifyRegister() and
CCTK_ParameterSetNotifyUnregister() to register/unregister user callback
functions for parameter set nofications.
See discussion thread http://www.cactuscode.org/old/pipermail/developers/2006-September/005090.html for details.
This closes patch Cactus-2057 "add new flesh functions to register/unregister
notify callbacks for parameter set operations".
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4375 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Parameter.h')
-rw-r--r-- | src/include/cctk_Parameter.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/cctk_Parameter.h b/src/include/cctk_Parameter.h index 7c11db74..1b1958e5 100644 --- a/src/include/cctk_Parameter.h +++ b/src/include/cctk_Parameter.h @@ -119,6 +119,13 @@ typedef struct PARAM_PROPS } cParamData; + +/* typedef for the prototype of a parameter set notify callback */ +typedef void (*cParameterSetNotifyCallbackFn) (void *data, + const char *thorn, + const char *parameter, + const char *new_value); + #ifdef __cplusplus extern "C" { @@ -156,6 +163,16 @@ const cParamData *CCTK_ParameterData (const char *name, int CCTK_ParameterQueryTimesSet(const char *name, const char *thorn); +/* register a parameter set notify callback */ +int CCTK_ParameterSetNotifyRegister (cParameterSetNotifyCallbackFn callback, + void *data, + const char *name, + const char *thorn_regex, + const char *parameter_regex); + +/* unregister a parameter set notify callback */ +int CCTK_ParameterSetNotifyUnregister (const char *name); + #ifdef __cplusplus } |