Age | Commit message (Collapse) | Author | Files | Lines |
|
Used to free a reference of the config_eet object, which is initialized
in the register function so it can be used by our IBusConfig interface
implementation.
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
Also fix config_key_string_set
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
Also add two helper functions for returning the section and key according
to the parameters
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
Also set the full 'path' for section id, in order to ease section discovery
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
Also fix implementations of wkb_config_key_set and wkb_config_key_get.
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
With this new struct we simplify the config_section implementation
and remove from it the responsibility for setting/getting values.
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
- New macro _config_section_init to reduce code duplication.
- New 'subsection' member of _config_section struct to keep track of
hierarchy between sections. It is now necessary to pass the parent
section as argument to the _new and _section_init functions.
- We are now able to free all subsections and the actual struct on the
base implementation, simplifying the specific implementations and
saving some lines of code.
- The same apply for the _set_defaults function, which is called for all
subsections on the base implementation.
- Protect against the case of specialized config_section implementation not
providing the function in question.
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
Also fix usage of -Wextra
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
|
|
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|
|
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
|