summaryrefslogtreecommitdiff
path: root/src/settings.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-02-22 16:40:20 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-02-22 16:40:20 -0800
commitdde6c5e93e26f6706cd04745928ae9ad5dddfc9f (patch)
treee382a61e4af0016637efc14a05d5aa39d091e303 /src/settings.c
parent7608e85f127faf0e09b1f935654baf57b59f717f (diff)
fb,settings,drm_fb,sd_fb: const settings_t readers
The fb_ops entrypoints and their descendants are purely readers of the settings, so constify their settings_t instances and the operative functions which only read settings.
Diffstat (limited to 'src/settings.c')
-rw-r--r--src/settings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings.c b/src/settings.c
index e958b43..7d87811 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -115,7 +115,7 @@ void settings_free(settings_t *settings)
/* find key= in settings, return dup of value side or NULL if missing */
-const char * settings_get_value(settings_t *settings, const char *key)
+const char * settings_get_value(const settings_t *settings, const char *key)
{
int i;
@@ -132,7 +132,7 @@ const char * settings_get_value(settings_t *settings, const char *key)
/* return positional key from settings */
-const char * settings_get_key(settings_t *settings, unsigned pos)
+const char * settings_get_key(const settings_t *settings, unsigned pos)
{
assert(settings);
@@ -160,7 +160,7 @@ int settings_add_value(settings_t *settings, const char *key, const char *value)
/* returns 0 when input settings are complete */
/* returns 1 when input settings are incomplete, storing the next setting's description needed in *next_setting */
/* returns -errno on error */
-int settings_apply_desc_generators(settings_t *settings, const setting_desc_generator_t generators[], unsigned n_generators, void *setup_context, setting_desc_t **next_setting)
+int settings_apply_desc_generators(const settings_t *settings, const setting_desc_generator_t generators[], unsigned n_generators, void *setup_context, setting_desc_t **next_setting)
{
unsigned i;
setting_desc_t *next;
© All Rights Reserved