platform/upstream/weekeyboard.git
9 years agoCorrect duplicate key hits when theme is changed. 13/31313/2 master upstream
Robert Erickson [Wed, 3 Dec 2014 17:52:06 +0000 (09:52 -0800)]
Correct duplicate key hits when theme is changed.

When the theme was changed, it added the signal callback
a new time causing the signal to be processed more than
once.

PTAP-49

Change-Id: I22ba3b8ae1a4d0f7507788d7419be8dd61f9314a
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoRelease 0.0.3 v0.0.3
Eduardo Lima (Etrunko) [Wed, 26 Nov 2014 18:02:35 +0000 (16:02 -0200)]
Release 0.0.3

Change-Id: I0e81fb8e55a928c448870a36a52b5bfb892a4252
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoReplace default theme font with SourceSansPro
Robert Erickson [Wed, 26 Nov 2014 21:57:37 +0000 (19:57 -0200)]
Replace default theme font with SourceSansPro

DroidSans has missing glyphs that are used in the keyboard and has not
been updated for quite some time. It is being replaced in favor of
SourceSansPro, another open source font which provides all glyphs we
currently use.

The font is developed openly in github:
  - https://github.com/adobe-fonts/source-sans-proand

And distributed under the Open Font License:
  - http://www.adobe.com/type/browser/legal/pdfs/OpenFontLicense.pdf

Change-Id: I6e3cab82198ba860fe209d81982576b9bc0ecb8d
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAdding ability to recognize some UTF8 symbols on the keyboard. 18/29218/2
Robert Erickson [Wed, 22 Oct 2014 20:58:47 +0000 (13:58 -0700)]
Adding ability to recognize some UTF8 symbols on the keyboard.

Change-Id: I3e0982c123714c248bea7816907ecbebdccaa0d1
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAdd repeat-on-hold feature to space/backspace keys
Robert Erickson [Fri, 21 Nov 2014 21:05:35 +0000 (19:05 -0200)]
Add repeat-on-hold feature to space/backspace keys

Change-Id: Iff31faf95b4c1b2f0bc57d9d7e28f6bfce7b6e85
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoFix themes Makefile
Eduardo Lima (Etrunko) [Wed, 19 Nov 2014 18:24:45 +0000 (16:24 -0200)]
Fix themes Makefile

Change-Id: I67bc30bb50dd505f66533bf5fbfedf039a48683a
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAdd default_1080 theme
Robert Erickson [Tue, 18 Nov 2014 20:59:12 +0000 (18:59 -0200)]
Add default_1080 theme

Change-Id: If2452283b24b5ef8c02147630e40357a04420ebc
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAdjust long press timer to a lower value
Robert Erickson [Tue, 18 Nov 2014 20:51:11 +0000 (18:51 -0200)]
Adjust long press timer to a lower value

Change-Id: I24c2075a514a6ff74e31bf427dc6006c5c43efce
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAdd configuration sections for pinyin and bopomofo engines
Eduardo Lima (Etrunko) [Wed, 12 Nov 2014 18:39:15 +0000 (16:39 -0200)]
Add configuration sections for pinyin and bopomofo engines

Change-Id: I5654cc690f00c8f13218902eeccd10a898a70476
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoNew function for updating a config section
Eduardo Lima (Etrunko) [Wed, 12 Nov 2014 18:47:56 +0000 (16:47 -0200)]
New function for updating a config section

It is now possible to add new subsections and/or keys to an existing
section. To achieve this, the respective _config_section_update function
must be used to set the new default values.

Returning True in _config_section_update, will mean that the specific
section has been updated and it will be overwritten with the new values.

Change-Id: I155096814a00ddf9cccc3444f95e76b6539b41ed
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoFix return value for _key_basic_get
Eduardo Lima (Etrunko) [Tue, 28 Oct 2014 19:47:23 +0000 (17:47 -0200)]
Fix return value for _key_basic_get

Change-Id: If9cbc1e60422f4574bb58be28306f3e3f8f19793
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoFix set_value for string_list keys
Eduardo Lima (Etrunko) [Tue, 28 Oct 2014 19:34:15 +0000 (17:34 -0200)]
Fix set_value for string_list keys

Change-Id: I4b0478cb1adc9d6f17a0378fa9230c0db7e67def
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoDecrease level of severity for debug message
Eduardo Lima (Etrunko) [Mon, 27 Oct 2014 21:01:26 +0000 (19:01 -0200)]
Decrease level of severity for debug message

Change-Id: Idd7933b68ed494699cb411493d41e6c4fc833834

9 years agoSupport for different themes 69/28669/3
Eduardo Lima (Etrunko) [Tue, 21 Oct 2014 21:40:07 +0000 (19:40 -0200)]
Support for different themes

Weekeyboard now checks the its config to decide which theme to load. Themes can
also be changed during runtime.

Change-Id: I84dcbfd0b1d7aadb55c33aa2c00f1f15fd280670
Patch-by: Robert Erickson <rerickso@jaguarlandrover.com>
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoProperly handle 'ValueChanged' config signal
Eduardo Lima (Etrunko) [Fri, 17 Oct 2014 20:26:29 +0000 (17:26 -0300)]
Properly handle 'ValueChanged' config signal

With this patch, we emit a new event to the ecore mailoop whenever a
configuration value changes. Also, if it is the case of a theme change,
a specific event is emmited.

Change-Id: Ia367d702545b48c777b9e2c60ab833b8d206e6aa
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAccessor for struct wkb_config_key
Eduardo Lima (Etrunko) [Wed, 22 Oct 2014 19:15:36 +0000 (17:15 -0200)]
Accessor for struct wkb_config_key

Change-Id: If2809f77c8e4da31107d5a133286bea0a73dbb93
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoNew function wkb_ibus_config_eet_dump
Eduardo Lima (Etrunko) [Thu, 23 Oct 2014 16:50:05 +0000 (14:50 -0200)]
New function wkb_ibus_config_eet_dump

Only to be used for debugging purposes

Change-Id: Ia5317ae1dae342da5443f5f9d98a2edef8caa4d3
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAdd section id to struct wkb_config_key
Eduardo Lima (Etrunko) [Wed, 22 Oct 2014 18:26:44 +0000 (16:26 -0200)]
Add section id to struct wkb_config_key

Also make it available via accessor functions

Change-Id: Ie7642ffe80279923b3fa775723157e6ae438c167
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoNew specific Weekeyboard config section and "theme" key
Eduardo Lima (Etrunko) [Wed, 22 Oct 2014 20:49:46 +0000 (18:49 -0200)]
New specific Weekeyboard config section and "theme" key

This section is meant to store weekeyboard specific configuration
without messing up with IBus section.

Change-Id: I2ca59aaa4dc342018d03aea3f8f78d245da5d3a7
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoRefactor config_eet to store more than one toplevel section
Eduardo Lima (Etrunko) [Thu, 23 Oct 2014 17:31:31 +0000 (15:31 -0200)]
Refactor config_eet to store more than one toplevel section

Change-Id: I4e2799104d28424514d3327700fac5a6419bc933
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoPointers to data descriptors now members of respective sections
Eduardo Lima (Etrunko) [Thu, 23 Oct 2014 17:24:18 +0000 (15:24 -0200)]
Pointers to data descriptors now members of respective sections

Change-Id: I186c70cc88bb4f6bcf941cbb5374151c7f127043
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoBetter use of _config_section_init function
Eduardo Lima (Etrunko) [Wed, 22 Oct 2014 17:55:13 +0000 (15:55 -0200)]
Better use of _config_section_init function

Change-Id: Ia89a3e96ded7f5f324c4760ca1349ab68a206f83
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAccessor for string_list keys
Eduardo Lima (Etrunko) [Thu, 23 Oct 2014 14:10:05 +0000 (12:10 -0200)]
Accessor for string_list keys

Change-Id: Ie6c692829bcd05a409e7102e8b9f3e87b94d79d6
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoAdd access to ibus-config settings from the application. 67/28667/2
Robert Erickson [Mon, 13 Oct 2014 18:24:01 +0000 (11:24 -0700)]
Add access to ibus-config settings from the application.

Change-Id: Id9ad93d5d3f71226675cc65247f51d749442c15e
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoFix initialization of custom-font key
Eduardo Lima (Etrunko) [Tue, 21 Oct 2014 21:40:41 +0000 (19:40 -0200)]
Fix initialization of custom-font key

Change-Id: Ia5de054faecb6ad64bf0b22d7f7af57e404ec6de
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
9 years agoInitialize ecore_wayland
Eduardo Lima (Etrunko) [Fri, 12 Sep 2014 20:41:39 +0000 (17:41 -0300)]
Initialize ecore_wayland

Change-Id: I53e15cffe24070d966e0cb3517a262ed950ecd01
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agowkb-ibus: Fix repeatly create ibus-daemon.
Alex Wu [Mon, 17 Feb 2014 04:53:19 +0000 (12:53 +0800)]
wkb-ibus: Fix repeatly create ibus-daemon.

It is possible that the ibus-daemon is up but weekeyboard can't
get anything from it. In this case, weekeyboard will always create
a new ibus-daemon. This patch fix it.

Change-Id: If7cb00345971769c3f95b54e74f723013835514d
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
10 years agoRemove unused variables 67/20867/2
Eduardo Lima (Etrunko) [Tue, 17 Dec 2013 18:17:46 +0000 (16:17 -0200)]
Remove unused variables

Change-Id: I89a490e6ce23abc232b769f041d9e581dd8dac11
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoUpdate usage of ecore_wayland globals.
Rafael Antognolli [Mon, 4 Nov 2013 19:44:15 +0000 (17:44 -0200)]
Update usage of ecore_wayland globals.

The list returned by ecore_wl_globals_get() is an Eina_Inlist now,
instead of struct wl_list.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
10 years agoUpdate the usage of ecore_wayland.
Rafael Antognolli [Mon, 4 Nov 2013 19:42:55 +0000 (17:42 -0200)]
Update the usage of ecore_wayland.

Ecore_Wl_Window is not exposed anymore, so the input region must be
changed using the ecore_wl_window_input_region_set() function.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
10 years agoUpdate EFL version requirements to 1.8.0 64/20864/2
Eduardo Lima (Etrunko) [Mon, 4 Nov 2013 20:11:55 +0000 (18:11 -0200)]
Update EFL version requirements to 1.8.0

Change-Id: I533269751bb5b46f853e41a2c5cc59595822eefd
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoRelease 0.0.2 sandbox/pcoval/upstream upstream/0.0.2 v0.0.2
Eduardo Lima (Etrunko) [Mon, 4 Nov 2013 19:03:10 +0000 (17:03 -0200)]
Release 0.0.2

Change-Id: I19cfecd74c7822f4c9910444f3337aa28f937a45
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoRework key handling
Eduardo Lima (Etrunko) [Thu, 31 Oct 2013 13:06:35 +0000 (11:06 -0200)]
Rework key handling

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix handling of special keys
Eduardo Lima (Etrunko) [Wed, 30 Oct 2013 21:19:01 +0000 (19:19 -0200)]
Fix handling of special keys

Change-Id: If3e9e2c1b62f8b4f1e72a7473ac62b6e0b59f692
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoEnable IBus integration
Eduardo Lima (Etrunko) [Mon, 21 Oct 2013 18:03:23 +0000 (16:03 -0200)]
Enable IBus integration

Change-Id: I90231e22614ada60112aed923237f5f27bfe747c
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoCheck for IBus GlobalEngine property
Eduardo Lima (Etrunko) [Mon, 28 Oct 2013 17:10:35 +0000 (15:10 -0200)]
Check for IBus GlobalEngine property

If it is not set, use default US/English value (xkb:us::eng)

Change-Id: Iaf01b8ea683b241ebc61f2fa1e21ba3beec48c86
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFinish implementation of IBusInputContext
Eduardo Lima (Etrunko) [Wed, 23 Oct 2013 18:44:57 +0000 (16:44 -0200)]
Finish implementation of IBusInputContext

Change-Id: I22495a9ff28dc3a4bc29156e66e588353fe83a3e
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix deserialize for all IBus types
Eduardo Lima (Etrunko) [Tue, 29 Oct 2013 16:54:00 +0000 (14:54 -0200)]
Fix deserialize for all IBus types

This was wrong since the beginning, we needed another iterator to unpack
the struct before actually getting the values.

There was also need to add a specific function for deserializing IBusAttrList
to an Eina_Array of IBusAttr.

Change-Id: I2b01411a85c7d69a2d83d54917f87d93016bf75c
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoNew IBus helper functions
Eduardo Lima (Etrunko) [Wed, 23 Oct 2013 18:47:50 +0000 (16:47 -0200)]
New IBus helper functions

- text_from_string: Returns a new wkb_ibus_text from a string
- iter_append_text: Appends a wkb_ibus_text to a Eldbus_Message_Iter
- engine_desc_from_message_iter: Deserialize IbusEngineDesc type

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix IBus shutdown process
Eduardo Lima (Etrunko) [Tue, 22 Oct 2013 13:44:33 +0000 (11:44 -0200)]
Fix IBus shutdown process

Change-Id: Ia56d3d3856cfccd3a1b7301356b9d87d65f2f377
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdded proxy calls to IBusInputContext service
Eduardo Lima (Etrunko) [Mon, 21 Oct 2013 18:03:45 +0000 (16:03 -0200)]
Added proxy calls to IBusInputContext service

Change-Id: Id94424f6f58e2706c2e827f3f2c5e56a3000672b
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix ibus-test to match new wkb-ibus connection scheme
Eduardo Lima (Etrunko) [Mon, 21 Oct 2013 17:22:35 +0000 (15:22 -0200)]
Fix ibus-test to match new wkb-ibus connection scheme

Change-Id: Iba231dd9e555e305757db91e4ff87279d40cb52e
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAttempt to reconnect to IBus daemon when connection is lost
Eduardo Lima (Etrunko) [Mon, 21 Oct 2013 19:52:36 +0000 (17:52 -0200)]
Attempt to reconnect to IBus daemon when connection is lost

Also fixes spawning of 'ibus-daemon' and 'ibus address' commands

Change-Id: I0553bb57dc8ff1c39ff30248260290569553544a
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoNullify reference to config_eet in unregister
Eduardo Lima (Etrunko) [Mon, 21 Oct 2013 19:46:53 +0000 (17:46 -0200)]
Nullify reference to config_eet in unregister

Change-Id: I50fa4ac0b3f9e0d94417ade22ff7072179cc0b6f
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoRename global struct to avoid confusion
Eduardo Lima (Etrunko) [Mon, 21 Oct 2013 17:35:27 +0000 (15:35 -0200)]
Rename global struct to avoid confusion

Change-Id: Icedeaf5cc3ada19be37d98e959f98c13b9539590
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoNew dedicated file for various IBus helper functions
Eduardo Lima (Etrunko) [Thu, 10 Oct 2013 19:56:07 +0000 (16:56 -0300)]
New dedicated file for various IBus helper functions

Change-Id: I229d63553c2e8917af196946f5d4864ff78881dc
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix query for IBus address
Eduardo Lima (Etrunko) [Wed, 9 Oct 2013 19:33:09 +0000 (16:33 -0300)]
Fix query for IBus address

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd events to notify of IBus connect/disconnect
Eduardo Lima (Etrunko) [Wed, 9 Oct 2013 19:08:07 +0000 (16:08 -0300)]
Add events to notify of IBus connect/disconnect

Change-Id: I1fb68f1840cb10a5517640221d132201c00e8235
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix engine/hangul config key names
Eduardo Lima (Etrunko) [Thu, 3 Oct 2013 17:51:30 +0000 (14:51 -0300)]
Fix engine/hangul config key names

Change-Id: I9a3644ba244de4a1e296ba60e4836edf21fbb6d7
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoReceive path as parameter in config_register
Eduardo Lima (Etrunko) [Thu, 3 Oct 2013 14:58:15 +0000 (11:58 -0300)]
Receive path as parameter in config_register

Change-Id: Ibcf24447cff3cc560b75cf11bc3148c452779f2d
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd missing extern "C" directives in header files
Eduardo Lima (Etrunko) [Thu, 3 Oct 2013 14:56:33 +0000 (11:56 -0300)]
Add missing extern "C" directives in header files

Change-Id: Icd50b604a28b17a642f8037c4fb9d354a33ecd3e
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix init/shutdown process in wkb-ibus and wkb-ibus-test
Eduardo Lima (Etrunko) [Thu, 3 Oct 2013 14:42:31 +0000 (11:42 -0300)]
Fix init/shutdown process in wkb-ibus and wkb-ibus-test

Change-Id: Ib67336e6e6ea613ff9aa36590afc54edfb86431b
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoMake use of Eina_Log for debugging messages
Eduardo Lima (Etrunko) [Wed, 2 Oct 2013 21:46:10 +0000 (18:46 -0300)]
Make use of Eina_Log for debugging messages

Change-Id: I02d57342363ee5b9f7eed087453ba96d375acb14
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix handling of backspace key press
Eduardo Lima (Etrunko) [Wed, 2 Oct 2013 15:16:37 +0000 (12:16 -0300)]
Fix handling of backspace key press

Change-Id: I5f3aca27d1e03636dfcda1d5204abd9c7a4b0ed9
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoDon't hardcode config file path
Eduardo Lima (Etrunko) [Fri, 27 Sep 2013 21:12:14 +0000 (18:12 -0300)]
Don't hardcode config file path

We now depend on Efreet to figure out the directory where to save the
configuration file used by IBusConfig service interface.

Also fix initializations in wkb_ibus_config_register().

Change-Id: I33395d50431931e91955c833591314aec6c2a2e9
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoEmit 'ValueChanged' signal upon change
Eduardo Lima (Etrunko) [Fri, 27 Sep 2013 20:33:08 +0000 (17:33 -0300)]
Emit 'ValueChanged' signal upon change

Change-Id: I4079c68f6c2b22da7d74115ad50fe894278c515b
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoWrite modifications to Eet file upon change
Eduardo Lima (Etrunko) [Fri, 27 Sep 2013 20:32:30 +0000 (17:32 -0300)]
Write modifications to Eet file upon change

Change-Id: I53de2ae16b80151eb422b65ac4c06cdc23457c9e
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix handling of "Enter" key press
Juan Zhao [Tue, 24 Sep 2013 12:55:31 +0000 (12:55 +0000)]
Fix handling of "Enter" key press

Change-Id: I491f31c7a0090a3e9cc490d4274cf6bbe6f09492
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoHandle cases of Eldbus_Message_Iter argument being NULL
Eduardo Lima (Etrunko) [Thu, 26 Sep 2013 20:32:51 +0000 (17:32 -0300)]
Handle cases of Eldbus_Message_Iter argument being NULL

Change-Id: Idf20fee9617ea1322c145d4ebf9804973046110f
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoEnable use of IBusConfig interface
Eduardo Lima (Etrunko) [Thu, 26 Sep 2013 15:34:59 +0000 (12:34 -0300)]
Enable use of IBusConfig interface

Our implementation makes use of Eet as backend.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix section/key search
Eduardo Lima (Etrunko) [Thu, 26 Sep 2013 15:37:57 +0000 (12:37 -0300)]
Fix section/key search

We only need to set the id of a section if it is not the toplevel

Change-Id: If1bfcc07ca657e859493b1cf98c9e68d11016d13
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix implementation of wkb_ibus_config_eet_get_values()
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:33:15 +0000 (17:33 -0300)]
Fix implementation of wkb_ibus_config_eet_get_values()

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoThe return value of config_key_get must be a variant
Eduardo Lima (Etrunko) [Thu, 26 Sep 2013 18:18:36 +0000 (15:18 -0300)]
The return value of config_key_get must be a variant

We have to use another iterator inside the reply to pack the actual value

Change-Id: I7f4547fb1de3450621aa332ad1caa80f287f7969
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoNew function wkb_config_key_signature()
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:32:22 +0000 (17:32 -0300)]
New function wkb_config_key_signature()

This function can be used to know the signature of a given key, which is
stored in the struct wkb_config_key.

Also adds new function to return all signatures of a given key, which makes
use of the former.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd implementation of string_list_key_get()
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:11:00 +0000 (17:11 -0300)]
Add implementation of string_list_key_get()

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix signatures of wkb_ibus_config_eet public functions
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:26:01 +0000 (17:26 -0300)]
Fix signatures of wkb_ibus_config_eet public functions

This is to reflect the change on the previous commit.

Change-Id: I46199f4f67440660ccedfd7ab507da6b8345d3d4
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix signature of wkb_config_key_get
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:21:23 +0000 (17:21 -0300)]
Fix signature of wkb_config_key_get

Also change the various implementations to comply with it.

Change-Id: I669731d992c1b2f77e83c58708821b364810120f
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoCosmetic change for DBus message error checking macros
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:19:39 +0000 (17:19 -0300)]
Cosmetic change for DBus message error checking macros

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoMove IBus definitions to a dedicated header file
Eduardo Lima (Etrunko) [Fri, 20 Sep 2013 19:34:14 +0000 (16:34 -0300)]
Move IBus definitions to a dedicated header file

Change-Id: Iddfe3bc5cccd46087d0d78834b3320b0d49c8df2
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdded wkb_ibus_config_unregister
Eduardo Lima (Etrunko) [Tue, 17 Sep 2013 18:36:08 +0000 (15:36 -0300)]
Added wkb_ibus_config_unregister

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>
10 years agoFix initializations in tests
Eduardo Lima (Etrunko) [Tue, 17 Sep 2013 18:33:38 +0000 (15:33 -0300)]
Fix initializations in tests

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
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>