summaryrefslogtreecommitdiff
path: root/src/include/cctk_IOMethods.h
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-30 13:12:54 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-30 13:12:54 +0000
commit08d345f1a8c59312367b102d37ce30ef2070ad31 (patch)
tree1aa71d16bbbc6c19a6aeb040bbd7f74ff191add9 /src/include/cctk_IOMethods.h
parent911d72f4fc3e61a8faa523cdf5c6f4b37d5d0c33 (diff)
New include file names
git-svn-id: http://svn.cactuscode.org/flesh/trunk@833 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_IOMethods.h')
-rw-r--r--src/include/cctk_IOMethods.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/cctk_IOMethods.h b/src/include/cctk_IOMethods.h
new file mode 100644
index 00000000..d5607dee
--- /dev/null
+++ b/src/include/cctk_IOMethods.h
@@ -0,0 +1,22 @@
+struct IOMethod
+{
+ int (*OutputGH)(cGH *);
+ int (*OutputVarAs)(cGH *, const char *, const char *);
+ int (*TriggerOutput)(cGH *, int);
+ int (*TimeToOutput)(cGH *,int);
+};
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int CCTK_RegisterIOMethod(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 *));
+#ifdef __cplusplus
+}
+#endif
+