From: discomfitor Date: Sat, 10 Sep 2011 15:54:43 +0000 (+0000) Subject: add elm_object_item_data_get elm_object_item_data_set to wrap corresponding elm_widge... X-Git-Tag: REL_F_I9500_20120323_1~17^2~1820 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b684e50d5aaa30d70d3a0204b26b3dfd2e7f14e;p=framework%2Fuifw%2Felementary.git add elm_object_item_data_get elm_object_item_data_set to wrap corresponding elm_widget_item calls git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63313 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 0acf1b5..e1ee82f 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -1105,6 +1105,24 @@ extern "C" { #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL) /** + * Get the data associated with an object item + * @param it The object item + * @return The data associated with @p it + * + * @ingroup General + */ + EAPI void *elm_object_item_data_get(const Elm_Object_Item *it); + + /** + * Set the data associated with an object item + * @param it The object item + * @param data The data to be associated with @p it + * + * @ingroup General + */ + EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data); + + /** * @} */ diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index d5ad7a4..8b5c998 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -2115,3 +2115,14 @@ elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt) _elm_widget_item_access_info_set((Elm_Widget_Item *)it, txt); } +EAPI void * +elm_object_item_data_get(const Elm_Object_Item *it) +{ + return elm_widget_item_data_get(it); +} + +EAPI void +elm_object_item_data_set(Elm_Object_Item *it, void *data) +{ + elm_widget_item_data_set(it, data); +}