From d052dab4b51e3e2df66a46043d44805f1076ade9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 04 Oct 2017 18:29:43 -0400 Subject: src/config.c: Move a static function --- (limited to 'src') 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) { -- cgit v0.9.1