diff options
author | SungTaek Hong <sth253.hong@samsung.com> | 2016-03-22 15:58:18 -0700 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2016-03-22 15:58:24 -0700 |
commit | 635b02a440bc0d95d4eb043e1ee4dd55181ce93b (patch) | |
tree | d0b9d004edbcda3bd52e18d3f562832a9f000501 /src/lib/elm_widget_map.h | |
parent | ec3ca5819f4d91bf6d1bfa5b88d85a4ef57a5d0c (diff) | |
download | elementary-635b02a440bc0d95d4eb043e1ee4dd55181ce93b.tar.gz |
map: separate name, route source logic
Summary:
- So far, elm_map only provides Open Street Map
and lacks ability to expand to other map providers
since it's xml parse only fits into that of OSM.
- This patch is to make route and name source same to
tile source, which supports other map tile providers.
Reviewers: woohyun, cedric
Reviewed By: cedric
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D3303
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/elm_widget_map.h')
-rw-r--r-- | src/lib/elm_widget_map.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/elm_widget_map.h b/src/lib/elm_widget_map.h index 9d0652c4f..b9e96eafe 100644 --- a/src/lib/elm_widget_map.h +++ b/src/lib/elm_widget_map.h @@ -58,11 +58,14 @@ typedef char *(*Elm_Map_Module_Route_Url_Func)(const Evas_Object *, double, double, double); +typedef void (*Elm_Map_Module_Route_Parse_Func)(Elm_Map_Route *); typedef char *(*Elm_Map_Module_Name_Url_Func)(const Evas_Object *, int, const char *, double, double); +typedef void (*Elm_Map_Module_Name_Parse_Func)(Elm_Map_Name *n); +typedef void (*Elm_Map_Module_Name_List_Parse_Func)(Elm_Map_Name_List *nl); typedef struct _Source_Tile Source_Tile; // FIXME: Currently tile size must be 256*256 @@ -83,6 +86,7 @@ struct _Source_Route { Eina_Stringshare *name; Elm_Map_Module_Route_Url_Func url_cb; + Elm_Map_Module_Route_Parse_Func route_parse_cb; }; typedef struct _Source_Name Source_Name; @@ -90,6 +94,8 @@ struct _Source_Name { Eina_Stringshare *name; Elm_Map_Module_Name_Url_Func url_cb; + Elm_Map_Module_Name_Parse_Func name_parse_cb; + Elm_Map_Module_Name_List_Parse_Func name_list_parse_cb; }; typedef struct _Path Path; |