diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-04 18:29:43 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-04 18:29:43 (EDT) |
commit | d052dab4b51e3e2df66a46043d44805f1076ade9 (patch) | |
tree | 746811b1b270c504adad8fe6c57f9fe2a8e599ee /src | |
parent | 1bfaef2d15ded8c0401df079e32318ea409e6fbe (diff) | |
download | marquee-d052dab4b51e3e2df66a46043d44805f1076ade9.zip marquee-d052dab4b51e3e2df66a46043d44805f1076ade9.tar.gz marquee-d052dab4b51e3e2df66a46043d44805f1076ade9.tar.bz2 |
src/config.c: Move a static function
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/config.c b/src/config.c index 19c06eb..41c0a27 100644 --- a/src/config.c +++ b/src/config.c @@ -50,15 +50,6 @@ struct item { }; static void -split_name(const gchar *name, gchar **group, gchar **key) -{ - *group = g_strdup(name); - *key = strchr(*group, '.'); - *(key[0]) = '\0'; - ++*key; -} - -static void set_type_or_run_callbacks(MqConfig *config, const gchar *name, gpointer value, enum type type) { @@ -136,6 +127,15 @@ mq_config_save(MqConfig *config) NULL); } +static void +split_name(const gchar *name, gchar **group, gchar **key) +{ + *group = g_strdup(name); + *key = strchr(*group, '.'); + *(key[0]) = '\0'; + ++*key; +} + gboolean mq_config_get_boolean(MqConfig *config, const gchar *name) { |