summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-07-22 13:59:41 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-07-22 13:59:41 +0300
commit3c3323716dfd6bfce17a9848f310584b8bc5f5bf (patch)
tree21fa56825859c86c6297879c1dea2160d2ed0b71
parent9947bf77aaeaeac7a9bd0db0cfb34b61e807af11 (diff)
Elm_Map: port API to eo file.
This function has to be described in elm_map.eo so Eolian can generate the legacy and Eo APIs.
-rw-r--r--src/lib/elm_map.c8
-rw-r--r--src/lib/elm_map.eo17
-rw-r--r--src/lib/elm_map_legacy.h18
3 files changed, 19 insertions, 24 deletions
diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c
index d6f3a48a4..4541279c5 100644
--- a/src/lib/elm_map.c
+++ b/src/lib/elm_map.c
@@ -4612,13 +4612,9 @@ _elm_map_name_add(Eo *obj, Elm_Map_Data *_pd EINA_UNUSED, const char *address, d
4612 name_cb, data); 4612 name_cb, data);
4613} 4613}
4614 4614
4615EAPI void 4615EOLIAN static void
4616elm_map_name_search(const Evas_Object *obj, 4616_elm_map_name_search(Eo *obj, Elm_Map_Data *_pd EINA_UNUSED, const char *address, Elm_Map_Name_List_Cb name_cb, void *data)
4617 const char *address,
4618 Elm_Map_Name_List_Cb name_cb,
4619 void *data)
4620{ 4617{
4621 ELM_MAP_CHECK(obj);
4622 if (address) 4618 if (address)
4623 _name_list_request(obj, ELM_MAP_NAME_METHOD_SEARCH, address, 0, 0, 4619 _name_list_request(obj, ELM_MAP_NAME_METHOD_SEARCH, address, 0, 0,
4624 name_cb, data); 4620 name_cb, data);
diff --git a/src/lib/elm_map.eo b/src/lib/elm_map.eo
index 8cce2657c..0c6757c47 100644
--- a/src/lib/elm_map.eo
+++ b/src/lib/elm_map.eo
@@ -613,6 +613,23 @@ class Elm_Map (Elm_Widget, Elm_Interface_Scrollable)
613 @in void *data; /*@ The user callback data. */ 613 @in void *data; /*@ The user callback data. */
614 } 614 }
615 } 615 }
616 name_search {
617 /*@
618 @brief Requests a list of addresses corresponding to a given name.
619
620 @since 1.8
621
622 @remarks This is used if you want to search the address from a name.
623
624 @internal
625 @ingroup Map */
626 const;
627 params {
628 @in const(char)* address; /*@ The address. */
629 @in Elm_Map_Name_List_Cb name_cb; /*@ The callback function. */
630 @in void *data; /*@ The user callback data. */
631 }
632 }
616 region_bring_in { 633 region_bring_in {
617 /*@ 634 /*@
618 Animatedly bring in given coordinates to the center of the map. 635 Animatedly bring in given coordinates to the center of the map.
diff --git a/src/lib/elm_map_legacy.h b/src/lib/elm_map_legacy.h
index 4c7aff27d..617652234 100644
--- a/src/lib/elm_map_legacy.h
+++ b/src/lib/elm_map_legacy.h
@@ -10,22 +10,4 @@
10 */ 10 */
11EAPI Evas_Object *elm_map_add(Evas_Object *parent); 11EAPI Evas_Object *elm_map_add(Evas_Object *parent);
12 12
13/**
14 * @internal
15 *
16 * @brief Requests a list of addresses corresponding to a given name.
17 *
18 * @since 1.8
19 *
20 * @remarks This is used if you want to search the address from a name.
21 *
22 * @param obj The map object
23 * @param address The address
24 * @param name_cb The callback function
25 * @param data The user callback data
26 *
27 * @ingroup Map
28 */
29EAPI void elm_map_name_search(const Evas_Object *obj, const char *address, Elm_Map_Name_List_Cb name_cb, void *data);
30
31#include "elm_map.eo.legacy.h" 13#include "elm_map.eo.legacy.h"