[grilo] registry: Change variable name plugin -> groupname
- From: Victor Toso <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] registry: Change variable name plugin -> groupname
- Date: Tue, 25 Sep 2018 09:36:40 +0000 (UTC)
commit 7ee38142350ba9c7fd665e74b60060111895c4bf
Author: Victor Toso <me victortoso com>
Date: Wed Aug 15 23:31:50 2018 +0200
registry: Change variable name plugin -> groupname
The group name is only considered as plugin at the moment but followed
patch will change it to consider plugin name + source name.
This is a preparatory patch for that change.
Signed-off-by: Victor Toso <victortoso gnome org>
src/grl-registry.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/grl-registry.c b/src/grl-registry.c
index 27fd41c..f51a62c 100644
--- a/src/grl-registry.c
+++ b/src/grl-registry.c
@@ -2006,19 +2006,19 @@ add_config_from_keyfile (GKeyFile *keyfile,
GrlConfig *config;
gchar **key;
gchar **keys;
- gchar **plugin;
+ gchar **groupname;
gchar **plugins;
gchar *value;
/* Look up for defined plugins */
plugins = g_key_file_get_groups (keyfile, NULL);
- for (plugin = plugins; *plugin; plugin++) {
- config = grl_config_new (*plugin, NULL);
+ for (groupname = plugins; *groupname; groupname++) {
+ config = grl_config_new (*groupname, NULL);
/* Look up configuration keys for this plugin */
- keys = g_key_file_get_keys (keyfile, *plugin, NULL, NULL);
+ keys = g_key_file_get_keys (keyfile, *groupname, NULL, NULL);
for (key = keys; *key; key++) {
- value = g_key_file_get_string (keyfile, *plugin, *key, NULL);
+ value = g_key_file_get_string (keyfile, *groupname, *key, NULL);
if (value) {
grl_config_set_string (config, *key, value);
g_free (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]