summaryrefslogtreecommitdiff
path: root/src/wkb-ibus-config.c
diff options
context:
space:
mode:
authorEduardo Lima (Etrunko) <eduardo.lima@intel.com>2014-10-22 17:15:36 -0200
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2014-10-27 18:47:25 -0200
commitf9db849dab3b7d7341e638bc2b29e1f77fda1a01 (patch)
tree18a0271e8b18e3312ce640fb5c00cfc7d0dc5023 /src/wkb-ibus-config.c
parentd68826868a963140924cf7bb5eae994f619bb672 (diff)
downloadweekeyboard-f9db849dab3b7d7341e638bc2b29e1f77fda1a01.tar.gz
weekeyboard-f9db849dab3b7d7341e638bc2b29e1f77fda1a01.tar.bz2
weekeyboard-f9db849dab3b7d7341e638bc2b29e1f77fda1a01.zip
Accessor for struct wkb_config_key
Change-Id: If2809f77c8e4da31107d5a133286bea0a73dbb93 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
Diffstat (limited to 'src/wkb-ibus-config.c')
-rw-r--r--src/wkb-ibus-config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wkb-ibus-config.c b/src/wkb-ibus-config.c
index cf155c1..b121cdc 100644
--- a/src/wkb-ibus-config.c
+++ b/src/wkb-ibus-config.c
@@ -23,6 +23,7 @@
#include <Eldbus.h>
#include "wkb-ibus-config.h"
+#include "wkb-ibus-config-key.h"
#include "wkb-ibus.h"
#include "wkb-ibus-defs.h"
@@ -79,6 +80,15 @@ wkb_ibus_config_get_value_string_list(const char *section, const char *name)
return wkb_ibus_config_eet_get_value_string_list(_conf_eet, section, name);
}
+struct wkb_config_key *
+wkb_ibus_config_get_key(const char *section, const char *name)
+{
+ if (!_conf_eet)
+ return NULL;
+
+ return wkb_ibus_config_eet_find_key(_conf_eet, section, name);
+}
+
static Eldbus_Message *
_config_set_value(const Eldbus_Service_Interface *iface, const Eldbus_Message *msg)
{