summaryrefslogtreecommitdiff
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
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>
-rw-r--r--src/wkb-ibus-config.c10
-rw-r--r--src/wkb-ibus-config.h3
2 files changed, 13 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)
{
diff --git a/src/wkb-ibus-config.h b/src/wkb-ibus-config.h
index 0c7fc78..f3d6099 100644
--- a/src/wkb-ibus-config.h
+++ b/src/wkb-ibus-config.h
@@ -25,10 +25,13 @@
extern "C" {
#endif
+struct wkb_config_key;
+
int wkb_ibus_config_get_value_int(const char *section, const char *name);
Eina_Bool wkb_ibus_config_get_value_bool(const char *section, const char *name);
const char *wkb_ibus_config_get_value_string(const char *section, const char *name);
char **wkb_ibus_config_get_value_string_list(const char *section, const char *name);
+struct wkb_config_key *wkb_ibus_config_get_key(const char *section, const char *name);
#ifdef __cplusplus
}