diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-01-23 18:03:01 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-01-23 18:03:01 +0000 |
commit | 67fd0e60b2e70eea37c22e633e61808113dfad56 (patch) | |
tree | f58b8aa16a078dd1980ff56101db078d4f678b9a /src/include | |
parent | 71ba48cb19532d47a96273e365f50ca89dea1728 (diff) |
Changed the function registration to use pointers rather than handles.
Added a file for externally visable stuff.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1280 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cctk_Functions.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/include/cctk_Functions.h b/src/include/cctk_Functions.h new file mode 100644 index 00000000..59b2466c --- /dev/null +++ b/src/include/cctk_Functions.h @@ -0,0 +1,35 @@ + /*@@ + @header cctk_Functions.h + @date Sat Jan 22 12:21:34 2000 + @author Tom Goodale + @desc + Externally visable stuff for the function registry. + @enddesc + @version $Header$ + @@*/ + +#ifndef _CCTK_FUNCTIONS_H_ +#define _CCTK_FUNCTIONS_H_ + +typedef struct +{ + int n_args; + int type; +} cFunctionType; + +#ifdef __cplusplus +extern "C" +{ +#endif + +void *CCTK_FunctionRegister(const char *name, + void (*function)(void), + cFunctionType *ftype); + +int CCTK_FunctionCall(void *data, ...); + +#ifdef __cplusplus +} +#endif + +#endif /* _CCTK_FUNCTIONS_H_ */ |