summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lib/configfile.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-08-09 09:41:51 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-08-09 10:27:32 -0400
commit0d4752e3f6b7558ce260fff04c70af643d222172 (patch)
tree7e3aa32f41188a0b5519e86d725ed55ee9ab86d0 /apps/plugins/lib/configfile.h
parent08c4b708ae52dc6bb5848b72a897e7790da5dd9e (diff)
downloadrockbox-0d4752e3f6b7558ce260fff04c70af643d222172.tar.gz
rockbox-0d4752e3f6b7558ce260fff04c70af643d222172.zip
plugins: Make 'struct configdata' argument to the configfile helper const
So plugins can use const structures, possibly saving a little bit of RAM. Change-Id: I15b0ef20e7554caf5f6d1c12f6ab109ddf3c0dbd
Diffstat (limited to 'apps/plugins/lib/configfile.h')
-rw-r--r--apps/plugins/lib/configfile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/configfile.h b/apps/plugins/lib/configfile.h
index 4a980b4e67..69869142e2 100644
--- a/apps/plugins/lib/configfile.h
+++ b/apps/plugins/lib/configfile.h
@@ -45,10 +45,10 @@ struct configdata
/* configfile_save - Given configdata entries this function will
create a config file with these entries, destroying any
previous config file of the same name */
-int configfile_save(const char *filename, struct configdata *cfg,
+int configfile_save(const char *filename, const struct configdata *cfg,
int num_items, int version);
-int configfile_load(const char *filename, struct configdata *cfg,
+int configfile_load(const char *filename, const struct configdata *cfg,
int num_items, int min_version);
/* configfile_get_value - Given a key name, this function will