summaryrefslogtreecommitdiff
path: root/src/wkb-ibus-helper.h
diff options
context:
space:
mode:
authorEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-10-23 16:47:50 -0200
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-10-28 16:55:46 -0200
commit1e9623eda6380f906f224384b95c9449a658254a (patch)
treee422bafa24d17636f5ccd1a56c52a3337632c01e /src/wkb-ibus-helper.h
parent0958525257ef8464dbcfac999d181270f05cae08 (diff)
downloadweekeyboard-1e9623eda6380f906f224384b95c9449a658254a.tar.gz
weekeyboard-1e9623eda6380f906f224384b95c9449a658254a.tar.bz2
weekeyboard-1e9623eda6380f906f224384b95c9449a658254a.zip
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>
Diffstat (limited to 'src/wkb-ibus-helper.h')
-rw-r--r--src/wkb-ibus-helper.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/wkb-ibus-helper.h b/src/wkb-ibus-helper.h
index 98498fe..d40c046 100644
--- a/src/wkb-ibus-helper.h
+++ b/src/wkb-ibus-helper.h
@@ -63,9 +63,30 @@ struct wkb_ibus_property
Eina_Array *sub_properties;
};
+struct wkb_ibus_engine_desc
+{
+ char *name;
+ char *long_name;
+ char *desc;
+ char *lang;
+ char *license;
+ char *author;
+ char *icon;
+ char *layout;
+ unsigned int rank;
+ char *hotkeys;
+ char *symbol;
+ char *setup;
+ char *layout_variant;
+ char *layout_option;
+ char *version;
+ char *text_domain;
+};
+
struct wkb_ibus_attr *wkb_ibus_attr_from_message_iter(Eldbus_Message_Iter *iter);
void wkb_ibus_attr_free(struct wkb_ibus_attr *attr);
+struct wkb_ibus_text *wkb_ibus_text_from_string(const char *str);
struct wkb_ibus_text *wkb_ibus_text_from_message_iter(Eldbus_Message_Iter *iter);
void wkb_ibus_text_free(struct wkb_ibus_text *text);
@@ -77,6 +98,11 @@ void wkb_ibus_property_free(struct wkb_ibus_property *property);
Eina_Array *wkb_ibus_properties_from_message_iter(Eldbus_Message_Iter *iter);
void wkb_ibus_properties_free(Eina_Array *properties);
+
+struct wkb_ibus_engine_desc *wkb_ibus_engine_desc_from_message_iter(Eldbus_Message_Iter *iter);
+void wkb_ibus_engine_desc_free(struct wkb_ibus_engine_desc *desc);
+
+void wkb_ibus_iter_append_text(Eldbus_Message_Iter *iter, struct wkb_ibus_text *text);
#ifdef __cplusplus
}
#endif