summaryrefslogtreecommitdiff
path: root/src/include/cctk_IOMethods.h
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-10-24 11:59:39 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-10-24 11:59:39 +0000
commitf68476096c01f6d6694e49848d6c22420c28cd94 (patch)
tree045ab3609a7a719bb77809dd2f9998d400b83575 /src/include/cctk_IOMethods.h
parent6a72f0d9a8444d998e454e50658a45fa0f1e30e3 (diff)
Include a structure definition into 'extern "C" {' just to be sure
that C bindings are used for it. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2429 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_IOMethods.h')
-rw-r--r--src/include/cctk_IOMethods.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/cctk_IOMethods.h b/src/include/cctk_IOMethods.h
index 1cf8a899..bd0166aa 100644
--- a/src/include/cctk_IOMethods.h
+++ b/src/include/cctk_IOMethods.h
@@ -1,16 +1,20 @@
/*@@
@header cctk_IOMethods.h
- @date
- @author
- @desc
- header file for handling IO methods
- @enddesc
- @version $Id$
+ @date 1999/07/30
+ @author Gabrielle Allen
+ @desc
+ header file for handling IO methods
+ @enddesc
+ @version $Version: cctk_IOMethods.h,v 1.3 2001/10/23 15:40:08 allen Exp $
@@*/
#ifndef _CCTK_IOMETHODS_H_
#define _CCTK_IOMETHODS_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct IOMethod
{
const char *implementation;
@@ -18,13 +22,9 @@ struct IOMethod
int (*OutputVarAs)(cGH *, const char *, const char *);
int (*TriggerOutput)(cGH *, int);
int (*TimeToOutput)(cGH *,int);
-};
-
-#ifdef __cplusplus
-extern "C" {
-#endif
+}
-#define CCTK_RegisterIOMethod(a) CCTKi_RegisterIOMethod(CCTK_THORNSTRING,a)
+#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 *));