From f9db849dab3b7d7341e638bc2b29e1f77fda1a01 Mon Sep 17 00:00:00 2001 From: "Eduardo Lima (Etrunko)" Date: Wed, 22 Oct 2014 17:15:36 -0200 Subject: Accessor for struct wkb_config_key Change-Id: If2809f77c8e4da31107d5a133286bea0a73dbb93 Signed-off-by: Eduardo Lima (Etrunko) --- src/wkb-ibus-config.c | 10 ++++++++++ src/wkb-ibus-config.h | 3 +++ 2 files changed, 13 insertions(+) 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 #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 } -- cgit v1.2.3