Grilo config problem when loading config files



Hello everyone,

I'm trying to use the grl_plugin_registry_add_config_from_file()
function to load a ".ini" style file as configuration setup for Grilo.
However, once I did load the file with the function above, I'm not able
to request any other data except string. It seems to be an underlaying
problem of using GValue in the grl_config_* functions.

As the grl_plugin_registry_add_config_from_file function stores
key/values from the given config file with values considered as string,
the GValue structure remains stuck to use the g_value_get_string(). And
so in the end, you're not able to use anything else than
grl_config_get_string for all keys loaded from a config file.

My suggestion is to rewrite grl_config to use GKeyFile as underlaying
storing system instead of GValue. I can do this work today, if we're
agree on this solution.

Any though ?

Best regards,

--
Lionel Landwerlin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]