From 7c000ad32564b357b1dbe66da09e5eb663f904ab Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 5 Nov 2001 15:11:04 +0000 Subject: Added const qualifier to the 'cGH *' argument of some more IO functions. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@75 0888f3d4-9f52-45d2-93bc-d00801ff5e46 --- src/Output.c | 16 ++++++++-------- src/Write.c | 4 ++-- src/ioStreamedHDF5GH.h | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Output.c b/src/Output.c index cf2174c..828e8e1 100644 --- a/src/Output.c +++ b/src/Output.c @@ -38,11 +38,11 @@ static void CheckSteerableParameters (ioStreamedHDF5GH *myGH); @var GH @vdesc Pointer to CCTK GH - @vtype cGH * + @vtype const cGH * @vio in @endvar @@*/ -int IOStreamedHDF5_OutputGH (cGH *GH) +int IOStreamedHDF5_OutputGH (const cGH *GH) { DECLARE_CCTK_PARAMETERS int vindex; @@ -104,7 +104,7 @@ int IOStreamedHDF5_OutputGH (cGH *GH) @var GH @vdesc Pointer to CCTK GH - @vtype cGH * + @vtype const cGH * @vio in @endvar @var fullname @@ -119,7 +119,7 @@ int IOStreamedHDF5_OutputGH (cGH *GH) @vio in @endvar @@*/ -int IOStreamedHDF5_OutputVarAs (cGH *GH, +int IOStreamedHDF5_OutputVarAs (const cGH *GH, const char *fullname, const char *alias) { @@ -156,7 +156,7 @@ int IOStreamedHDF5_OutputVarAs (cGH *GH, @var GH @vdesc Pointer to CCTK GH - @vtype cGH * + @vtype const cGH * @vio in @endvar @var vindex @@ -171,7 +171,7 @@ int IOStreamedHDF5_OutputVarAs (cGH *GH, 0 if not @endreturndesc @@*/ -int IOStreamedHDF5_TimeFor (cGH *GH, +int IOStreamedHDF5_TimeFor (const cGH *GH, int vindex) { ioStreamedHDF5GH *myGH; @@ -218,7 +218,7 @@ int IOStreamedHDF5_TimeFor (cGH *GH, @var GH @vdesc Pointer to CCTK GH - @vtype cGH * + @vtype const cGH * @vio in @endvar @var vindex @@ -227,7 +227,7 @@ int IOStreamedHDF5_TimeFor (cGH *GH, @vio in @endvar @@*/ -int IOStreamedHDF5_TriggerOutput (cGH *GH, +int IOStreamedHDF5_TriggerOutput (const cGH *GH, int vindex) { DECLARE_CCTK_PARAMETERS diff --git a/src/Write.c b/src/Write.c index 2fdc8ec..7a2ee35 100644 --- a/src/Write.c +++ b/src/Write.c @@ -36,7 +36,7 @@ CCTK_FILEVERSION(BetaThorns_IOStreamedHDF5_Write_c) @var GH @vdesc Pointer to CCTK GH - @vtype cGH * + @vtype const cGH * @vio in @endvar @var vindex @@ -50,7 +50,7 @@ CCTK_FILEVERSION(BetaThorns_IOStreamedHDF5_Write_c) @vio unused @endvar @@*/ -void IOStreamedHDF5_Write (cGH *GH, +void IOStreamedHDF5_Write (const cGH *GH, int vindex, const char *alias) { diff --git a/src/ioStreamedHDF5GH.h b/src/ioStreamedHDF5GH.h index 4abc6f8..1f6962d 100644 --- a/src/ioStreamedHDF5GH.h +++ b/src/ioStreamedHDF5GH.h @@ -50,14 +50,14 @@ extern "C" #endif /* prototypes of functions to be registered as IOStreamedHDF5's IO method */ -int IOStreamedHDF5_OutputGH (cGH *GH); -int IOStreamedHDF5_TriggerOutput (cGH *GH, int); -int IOStreamedHDF5_TimeFor (cGH *GH, int); -int IOStreamedHDF5_OutputVarAs (cGH *GH, const char *var, const char *alias); +int IOStreamedHDF5_OutputGH (const cGH *GH); +int IOStreamedHDF5_TriggerOutput (const cGH *GH, int); +int IOStreamedHDF5_TimeFor (const cGH *GH, int); +int IOStreamedHDF5_OutputVarAs (const cGH *GH, const char *var, const char *alias); int IOStreamedHDF5_Recover (cGH *GH, const char *basefilename, int called_from); /* other function prototypes */ -void IOStreamedHDF5_Write (cGH *GH, int vindex, const char *alias); +void IOStreamedHDF5_Write (const cGH *GH, int vindex, const char *alias); #ifdef __cplusplus } // extern "C" -- cgit v1.2.3