diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-26 20:48:15 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-26 20:48:15 +0000 |
commit | d9aa4a2058eace37d5c2d15508b4c4d9962c2bb5 (patch) | |
tree | ba6f7ce2fe8a45783742a0d5f62e73483f98defd | |
parent | 1f4fd0b880866139504a0e233c7327c8b88dbbbd (diff) |
Add textfile_caseput function
-rw-r--r-- | common/textfile.c | 5 | ||||
-rw-r--r-- | common/textfile.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/common/textfile.c b/common/textfile.c index 895e3f3d..ea7e80bb 100644 --- a/common/textfile.c +++ b/common/textfile.c @@ -320,6 +320,11 @@ int textfile_put(const char *pathname, const char *key, const char *value) return write_key(pathname, key, value, 0); } +int textfile_caseput(const char *pathname, const char *key, const char *value) +{ + return write_key(pathname, key, value, 1); +} + int textfile_del(const char *pathname, const char *key) { return write_key(pathname, key, NULL, 0); diff --git a/common/textfile.h b/common/textfile.h index 11d42d1e..f6559fea 100644 --- a/common/textfile.h +++ b/common/textfile.h @@ -30,6 +30,7 @@ int create_name(char *buf, size_t size, const char *path, const char *address, const char *name); int textfile_put(const char *pathname, const char *key, const char *value); +int textfile_caseput(const char *pathname, const char *key, const char *value); int textfile_del(const char *pathname, const char *key); int textfile_casedel(const char *pathname, const char *key); char *textfile_get(const char *pathname, const char *key); |