gnokii-users
[Top][All Lists]
Advanced

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

gn_cfg_* functions


From: Pawel Kot
Subject: gn_cfg_* functions
Date: Tue, 11 Jan 2011 13:03:04 +0100

Hi,

It looks like we've deprecated too many gn_cfg_functions. So far what
we have is:

Non-deprecated:
GNOKII_API gn_error gn_lib_phoneprofile_load_from_file(const char
*configfile, const char *configname, struct gn_statemachine **state);
GNOKII_API gn_error gn_lib_phoneprofile_load(const char *configname,
struct gn_statemachine **state);

Deprecated:
GNOKII_API gn_error gn_cfg_file_read(const char *filename) GNOKII_DEPRECATED;
GNOKII_API gn_error gn_cfg_memory_read(const char **lines) GNOKII_DEPRECATED;
GNOKII_API gn_error gn_cfg_read_default() GNOKII_DEPRECATED;
GNOKII_API void gn_cfg_free_default() GNOKII_DEPRECATED;
GNOKII_API gn_error gn_cfg_phone_load(const char *iname, struct
gn_statemachine *state) GNOKII_DEPRECATED;

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.

I guess we would need something that would wrap:
gn_cfg_memory_read();
gn_cfg_phone_load();

take care,
-- 
Pawel Kot



reply via email to

[Prev in Thread] Current Thread [Next in Thread]