From 8dc5cde2d5048bb888e9c85be8b48af01c71af9d Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 14 Nov 2011 15:52:39 +0900 Subject: [PATCH] [multibuttonentry] Add consts to prototypes --- src/lib/Elementary.h.in | 20 ++++++++++---------- src/lib/elm_multibuttonentry.c | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 1dcb362..cb279c2 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -29239,30 +29239,30 @@ extern "C" { typedef struct _Multibuttonentry_Item Elm_Multibuttonentry_Item; typedef Eina_Bool (*Elm_Multibuttonentry_Item_Verify_Callback) (Evas_Object *obj, const char *item_label, void *item_data, void *data); EAPI Evas_Object *elm_multibuttonentry_add(Evas_Object *parent); - EAPI const char *elm_multibuttonentry_label_get(Evas_Object *obj); + EAPI const char *elm_multibuttonentry_label_get(const Evas_Object *obj); EAPI void elm_multibuttonentry_label_set(Evas_Object *obj, const char *label); - EAPI Evas_Object *elm_multibuttonentry_entry_get(Evas_Object *obj); - EAPI const char * elm_multibuttonentry_guide_text_get(Evas_Object *obj); + EAPI Evas_Object *elm_multibuttonentry_entry_get(const Evas_Object *obj); + EAPI const char * elm_multibuttonentry_guide_text_get(const Evas_Object *obj); EAPI void elm_multibuttonentry_guide_text_set(Evas_Object *obj, const char *guidetext); - EAPI int elm_multibuttonentry_contracted_state_get(Evas_Object *obj); + EAPI int elm_multibuttonentry_contracted_state_get(const Evas_Object *obj); EAPI void elm_multibuttonentry_contracted_state_set(Evas_Object *obj, int contracted); EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_start(Evas_Object *obj, const char *label, void *data); EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_end(Evas_Object *obj, const char *label, void *data); EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_before(Evas_Object *obj, const char *label, Elm_Multibuttonentry_Item *before, void *data); EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_add_after(Evas_Object *obj, const char *label, Elm_Multibuttonentry_Item *after, void *data); - EAPI const Eina_List *elm_multibuttonentry_items_get(Evas_Object *obj); - EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_first_get(Evas_Object *obj); - EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_last_get(Evas_Object *obj); - EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_selected_get(Evas_Object *obj); + EAPI const Eina_List *elm_multibuttonentry_items_get(const Evas_Object *obj); + EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_first_get(const Evas_Object *obj); + EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_last_get(const Evas_Object *obj); + EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_selected_get(const Evas_Object *obj); EAPI void elm_multibuttonentry_item_selected_set(Elm_Multibuttonentry_Item *item); EAPI void elm_multibuttonentry_item_unselect_all(Evas_Object *obj); EAPI void elm_multibuttonentry_item_del(Elm_Multibuttonentry_Item *item); EAPI void elm_multibuttonentry_items_del(Evas_Object *obj); - EAPI const char *elm_multibuttonentry_item_label_get(Elm_Multibuttonentry_Item *item); + EAPI const char *elm_multibuttonentry_item_label_get(const Elm_Multibuttonentry_Item *item); EAPI void elm_multibuttonentry_item_label_set(Elm_Multibuttonentry_Item *item, const char *str); EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_prev(Elm_Multibuttonentry_Item *item); EAPI Elm_Multibuttonentry_Item *elm_multibuttonentry_item_next(Elm_Multibuttonentry_Item *item); - EAPI void *elm_multibuttonentry_item_data_get(Elm_Multibuttonentry_Item *item); + EAPI void *elm_multibuttonentry_item_data_get(const Elm_Multibuttonentry_Item *item); EAPI void elm_multibuttonentry_item_data_set(Elm_Multibuttonentry_Item *item, void *data); EAPI void elm_multibuttonentry_item_verify_callback_set(Evas_Object *obj, Elm_Multibuttonentry_Item_Verify_Callback func, void *data); /* smart callback called: diff --git a/src/lib/elm_multibuttonentry.c b/src/lib/elm_multibuttonentry.c index c0608cf..bf9f322 100644 --- a/src/lib/elm_multibuttonentry.c +++ b/src/lib/elm_multibuttonentry.c @@ -1371,7 +1371,7 @@ elm_multibuttonentry_add(Evas_Object *parent) * @ingroup Multibuttonentry */ EAPI Evas_Object * -elm_multibuttonentry_entry_get(Evas_Object *obj) +elm_multibuttonentry_entry_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1389,7 +1389,7 @@ elm_multibuttonentry_entry_get(Evas_Object *obj) * @ingroup Multibuttonentry */ EAPI const char * -elm_multibuttonentry_label_get(Evas_Object *obj) +elm_multibuttonentry_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1427,7 +1427,7 @@ elm_multibuttonentry_label_set(Evas_Object *obj, const char *label) * @ingroup Multibuttonentry */ EAPI const char * -elm_multibuttonentry_guide_text_get(Evas_Object *obj) +elm_multibuttonentry_guide_text_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1466,7 +1466,7 @@ elm_multibuttonentry_guide_text_set(Evas_Object *obj, const char *guidetext) * @ingroup Multibuttonentry */ EAPI int -elm_multibuttonentry_contracted_state_get(Evas_Object *obj) +elm_multibuttonentry_contracted_state_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) -1; Widget_Data *wd = elm_widget_data_get(obj); @@ -1588,7 +1588,7 @@ elm_multibuttonentry_item_add_after(Evas_Object *obj, const char *label, Elm_Mul * @ingroup Multibuttonentry */ EAPI const Eina_List * -elm_multibuttonentry_items_get(Evas_Object *obj) +elm_multibuttonentry_items_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1605,7 +1605,7 @@ elm_multibuttonentry_items_get(Evas_Object *obj) * @ingroup Multibuttonentry */ EAPI Elm_Multibuttonentry_Item * -elm_multibuttonentry_item_first_get(Evas_Object *obj) +elm_multibuttonentry_item_first_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1622,7 +1622,7 @@ elm_multibuttonentry_item_first_get(Evas_Object *obj) * @ingroup Multibuttonentry */ EAPI Elm_Multibuttonentry_Item * -elm_multibuttonentry_item_last_get(Evas_Object *obj) +elm_multibuttonentry_item_last_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1639,7 +1639,7 @@ elm_multibuttonentry_item_last_get(Evas_Object *obj) * @ingroup Multibuttonentry */ EAPI Elm_Multibuttonentry_Item * -elm_multibuttonentry_item_selected_get(Evas_Object *obj) +elm_multibuttonentry_item_selected_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1742,7 +1742,7 @@ elm_multibuttonentry_item_del(Elm_Multibuttonentry_Item *item) * @ingroup Multibuttonentry */ EAPI const char * -elm_multibuttonentry_item_label_get(Elm_Multibuttonentry_Item *item) +elm_multibuttonentry_item_label_get(const Elm_Multibuttonentry_Item *item) { Widget_Data *wd; Eina_List *l; @@ -1856,7 +1856,7 @@ elm_multibuttonentry_item_next(Elm_Multibuttonentry_Item *item) * @ingroup Multibuttonentry */ EAPI void * -elm_multibuttonentry_item_data_get(Elm_Multibuttonentry_Item *item) +elm_multibuttonentry_item_data_get(const Elm_Multibuttonentry_Item *item) { if (!item) return NULL; return item->data; -- 2.7.4