[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gn_cfg_* functions
From: |
Daniele Forsi |
Subject: |
Re: gn_cfg_* functions |
Date: |
Tue, 11 Jan 2011 14:34:34 +0100 |
2011/1/11 Pawel Kot:
> It looks like we've deprecated too many gn_cfg_functions.
> Non-deprecated functions allow to read only gnokii configuration
> files. And that's not enough. We need to allow apps to provide own
> config files and let libgnokii use it.
agree
> I guess we would need something that would wrap:
> gn_cfg_memory_read();
> gn_cfg_phone_load();
IIUIC cfg_file_or_memory_read() in cfgreader.c does something similar
but it isn't exported to the public API, it wants a specific file name
and puts the config in global variables, it could be changed at least
to search the config in the usual places if file == NULL
--
Daniele Forsi