aboutsummaryrefslogtreecommitdiff
path: root/src/ioutil_AdvertisedFiles.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ioutil_AdvertisedFiles.h')
-rw-r--r--src/ioutil_AdvertisedFiles.h16
1 files changed, 8 insertions, 8 deletions
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);