aboutsummaryrefslogtreecommitdiffstats
path: root/src/shvar.h
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2000-04-18 14:13:37 +0000
committerNalin Dahyabhai <nalin@redhat.com>2000-04-18 14:13:37 +0000
commit0f641b29b04982fa2745509668760467688a3c3d (patch)
tree16ff1b4358dcae73811da70d2440459b91d5dbf1 /src/shvar.h
parent3c132ed9ad2abea2da63b338d964a1fa83654407 (diff)
downloadinitscripts-0f641b29b04982fa2745509668760467688a3c3d.tar
initscripts-0f641b29b04982fa2745509668760467688a3c3d.tar.gz
initscripts-0f641b29b04982fa2745509668760467688a3c3d.tar.bz2
initscripts-0f641b29b04982fa2745509668760467688a3c3d.tar.xz
initscripts-0f641b29b04982fa2745509668760467688a3c3d.zip
constipated (via rp3)
Diffstat (limited to 'src/shvar.h')
-rw-r--r--src/shvar.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shvar.h b/src/shvar.h
index 6a20e418..50d10680 100644
--- a/src/shvar.h
+++ b/src/shvar.h
@@ -52,25 +52,25 @@ struct _shvarFile {
/* Create the file <name>, return shvarFile on success, NULL on failure */
shvarFile *
-svCreateFile(char *name);
+svCreateFile(const char *name);
/* Open the file <name>, return shvarFile on success, NULL on failure */
shvarFile *
-svNewFile(char *name);
+svNewFile(const char *name);
/* Get the value associated with the key, and leave the current pointer
* pointing at the line containing the value. The char* returned MUST
* be freed by the caller.
*/
char *
-svGetValue(shvarFile *s, char *key);
+svGetValue(shvarFile *s, const char *key);
/* return 1 if <key> resolves to any truth value (e.g. "yes", "y", "true")
* return 0 if <key> resolves to any non-truth value (e.g. "no", "n", "false")
* return <def> otherwise
*/
int
-svTrueValue(shvarFile *s, char *key, int def);
+svTrueValue(shvarFile *s, const char *key, int def);
/* Set the variable <key> equal to the value <value>.
* If <key> does not exist, and the <current> pointer is set, append
@@ -78,7 +78,7 @@ svTrueValue(shvarFile *s, char *key, int def);
* to the top of the file.
*/
void
-svSetValue(shvarFile *s, char *key, char *value);
+svSetValue(shvarFile *s, const char *key, const char *value);
/* Write the current contents iff modified. Returns -1 on error