profile/ivi/weekeyboard.git
10 years agoAdded missing implementation of config_key_string_list_set
Eduardo Lima (Etrunko) [Tue, 17 Sep 2013 18:22:19 +0000 (15:22 -0300)]
Added missing implementation of config_key_string_list_set

Also fix config_key_string_set

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd config_section_get_value and config_section_set_value
Eduardo Lima (Etrunko) [Tue, 17 Sep 2013 18:25:05 +0000 (15:25 -0300)]
Add config_section_get_value and config_section_set_value

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>
10 years agoFix config_section initialization order
Eduardo Lima (Etrunko) [Mon, 16 Sep 2013 19:47:25 +0000 (16:47 -0300)]
Fix config_section initialization order

Also set the full 'path' for section id, in order to ease section discovery

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd accessor for key id
Eduardo Lima (Etrunko) [Mon, 16 Sep 2013 17:43:51 +0000 (14:43 -0300)]
Add accessor for key id

Also fix implementations of wkb_config_key_set and wkb_config_key_get.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoIntroduce struct _config_key
Eduardo Lima (Etrunko) [Thu, 12 Sep 2013 19:35:22 +0000 (16:35 -0300)]
Introduce struct _config_key

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>
10 years agoImprove config_section base implementation
Eduardo Lima (Etrunko) [Tue, 10 Sep 2013 23:22:36 +0000 (20:22 -0300)]
Improve config_section base implementation

 - 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>
10 years agoMake use of -Wno-unused-parameter
Eduardo Lima (Etrunko) [Thu, 19 Sep 2013 19:30:55 +0000 (16:30 -0300)]
Make use of -Wno-unused-parameter

Also fix usage of -Wextra

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd dist-bzip2 to AM_INIT_AUTOMAKE v0.0.1
Eduardo Lima (Etrunko) [Wed, 18 Sep 2013 18:30:56 +0000 (15:30 -0300)]
Add dist-bzip2 to AM_INIT_AUTOMAKE

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoInitial commit
Eduardo Lima (Etrunko) [Fri, 16 Aug 2013 20:08:23 +0000 (17:08 -0300)]
Initial commit

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>