diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-10-23 15:40:09 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-10-23 15:40:09 +0000 |
commit | 1baa873474d0b8e327b84b219f92dcb0c9138971 (patch) | |
tree | a7e73d2be1a0afbcfb491c6a2a56c69e342a4699 /src/include/cctk_IOMethods.h | |
parent | d9e8a71b489b93336e274c7faa67bb8053c0fd86 (diff) |
Added implementation information to the IOMethod structure
Two new functions:
const char *CCTK_IOMethodImplementation(int handle);
int CCTK_NumIOMethods(void);
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2421 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_IOMethods.h')
-rw-r--r-- | src/include/cctk_IOMethods.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/cctk_IOMethods.h b/src/include/cctk_IOMethods.h index ee9f0db2..1cf8a899 100644 --- a/src/include/cctk_IOMethods.h +++ b/src/include/cctk_IOMethods.h @@ -13,6 +13,7 @@ struct IOMethod { + const char *implementation; int (*OutputGH)(cGH *); int (*OutputVarAs)(cGH *, const char *, const char *); int (*TriggerOutput)(cGH *, int); @@ -23,12 +24,22 @@ struct IOMethod extern "C" { #endif -int CCTK_RegisterIOMethod(const char *name); +#define CCTK_RegisterIOMethod(a) CCTKi_RegisterIOMethod(CCTK_THORNSTRING,a) +int CCTKi_RegisterIOMethod(const char *thorn, const char *name); + int CCTK_RegisterIOMethodOutputGH(int handle, int (*func)(cGH *)); + int CCTK_RegisterIOMethodTimeToOutput(int handle, int (*func)(cGH *, int)); + int CCTK_RegisterIOMethodTriggerOutput(int handle, int (*func)(cGH *, int)); + int CCTK_RegisterIOMethodOutputVarAs(int handle, int (*func)(cGH *, const char *,const char *)); + +const char *CCTK_IOMethodImplementation(int handle); + +int CCTK_NumIOMethods(void); + #ifdef __cplusplus } #endif |