aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2001-10-30 13:56:31 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2001-10-30 13:56:31 +0000
commitd6566f2e290eb07b6370e1f9038b97a20542e819 (patch)
tree64f34bd9c83e1d18d68e70f9cb374266226504eb
parent64880e67b831da851cadf7c8bd51ff473d4e91b9 (diff)
The advertised file structure contains 'const char *' pointers now.
Also, the advertise routines take a 'const cGH *' argument. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@133 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r--src/AdvertisedFiles.c8
-rw-r--r--src/ioutil_AdvertisedFiles.h16
2 files changed, 12 insertions, 12 deletions
diff --git a/src/AdvertisedFiles.c b/src/AdvertisedFiles.c
index e607dd1..0126ceb 100644
--- a/src/AdvertisedFiles.c
+++ b/src/AdvertisedFiles.c
@@ -41,7 +41,7 @@ static pNamedData *listener_DB = NULL;
@endhistory
@var GH
@vdesc pointer to grid hierarchy
- @vtype cGH *
+ @vtype const cGH *
@vio in
@endvar
@var listener
@@ -61,7 +61,7 @@ static pNamedData *listener_DB = NULL;
@endreturndesc
@@*/
-int IOUtil_RegisterAdvertisedFileListener (cGH *GH, const char *listener,
+int IOUtil_RegisterAdvertisedFileListener (const cGH *GH, const char *listener,
const ioAdvertisedFileListenerCallbacks *callbacks)
{
int retval = -1;
@@ -101,7 +101,7 @@ int IOUtil_RegisterAdvertisedFileListener (cGH *GH, const char *listener,
@endhistory
@var GH
@vdesc pointer to grid hierarchy
- @vtype cGH *
+ @vtype const cGH *
@vio in
@endvar
@var filename
@@ -120,7 +120,7 @@ int IOUtil_RegisterAdvertisedFileListener (cGH *GH, const char *listener,
@endreturndesc
@@*/
-int IOUtil_AdvertiseFile (cGH *GH, const char *filename,
+int IOUtil_AdvertiseFile (const cGH *GH, const char *filename,
const ioAdvertisedFileDesc *description)
{
int retval = 0;
diff --git a/src/ioutil_AdvertisedFiles.h b/src/ioutil_AdvertisedFiles.h
index ed937e1..ef4952b 100644
--- a/src/ioutil_AdvertisedFiles.h
+++ b/src/ioutil_AdvertisedFiles.h
@@ -28,11 +28,11 @@ extern "C"
- an arbitrary additional description of the file contents */
typedef struct
{
- char *thorn;
- char *varname;
- char *mimetype;
- char *slice;
- char *description;
+ const char *thorn;
+ const char *varname;
+ const char *mimetype;
+ const char *slice;
+ const char *description;
} ioAdvertisedFileDesc;
@@ -42,19 +42,19 @@ typedef struct
unadvertising, or notification when the contents of the file changed. */
typedef struct
{
- int (*advertise) (cGH *GH,
+ int (*advertise) (const cGH *GH,
const char *filename,
const ioAdvertisedFileDesc *description);
} ioAdvertisedFileListenerCallbacks;
/* register a new listener with its own callbacks for file advertising */
-int IOUtil_RegisterAdvertisedFileListener (cGH *GH,
+int IOUtil_RegisterAdvertisedFileListener (const cGH *GH,
const char *listener,
const ioAdvertisedFileListenerCallbacks *callbacks);
/* advertise a file */
-int IOUtil_AdvertiseFile (cGH *GH,
+int IOUtil_AdvertiseFile (const cGH *GH,
const char *filename,
const ioAdvertisedFileDesc *desc);