fix conflict test_cursor.c
[framework/uifw/elementary.git] / src / modules / test_map / mod.c
1 #include "Elementary.h"
2 #include <Eina.h>
3 #ifdef HAVE_CONFIG_H
4 # include "elementary_config.h"
5 #endif
6
7 EAPI char *
8 <<<<<<< HEAD
9 map_module_source_get(void)
10 =======
11 map_module_source_name_get(void)
12 >>>>>>> remotes/origin/upstream
13 {
14    return strdup("test_map");
15 }
16
17 EAPI int
18 <<<<<<< HEAD
19 map_module_zoom_min_get(void)
20 =======
21 map_module_tile_zoom_min_get(void)
22 >>>>>>> remotes/origin/upstream
23 {
24    return 0;
25 }
26
27 EAPI int
28 <<<<<<< HEAD
29 map_module_zoom_max_get(void)
30 =======
31 map_module_tile_zoom_max_get(void)
32 >>>>>>> remotes/origin/upstream
33 {
34    return 18;
35 }
36
37 EAPI char *
38 <<<<<<< HEAD
39 map_module_url_get(Evas_Object *obj __UNUSED__, int x, int y, int zoom)
40 =======
41 map_module_tile_url_get(Evas_Object *obj __UNUSED__, int x, int y, int zoom)
42 >>>>>>> remotes/origin/upstream
43 {
44    char buf[PATH_MAX];
45    snprintf(buf, sizeof(buf), "http://tile.openstreetmap.org/%d/%d/%d.png",
46             zoom, x, y);
47    return strdup(buf);
48 }
49
50 <<<<<<< HEAD
51 EAPI int
52 map_module_route_source_get(void)
53 {
54    return 0;
55 }
56
57 EAPI char *
58 map_module_route_url_get(Evas_Object *obj __UNUSED__, char *type_name __UNUSED__, int method __UNUSED__, double flon __UNUSED__, double flat __UNUSED__, double tlon __UNUSED__, double tlat __UNUSED__)
59 =======
60 EAPI char *
61 map_module_route_source_get(void)
62 {
63    return NULL;
64 }
65
66 EAPI char *
67 map_module_route_url_get(Evas_Object *obj __UNUSED__, const char *type_name __UNUSED__, int method __UNUSED__, double flon __UNUSED__, double flat __UNUSED__, double tlon __UNUSED__, double tlat __UNUSED__)
68 >>>>>>> remotes/origin/upstream
69 {
70    return strdup("");
71 }
72
73 EAPI char *
74 <<<<<<< HEAD
75 map_module_name_url_get(Evas_Object *obj __UNUSED__, int method __UNUSED__, char *name __UNUSED__, double lon __UNUSED__, double lat __UNUSED__)
76 =======
77 map_module_name_url_get(Evas_Object *obj __UNUSED__, int method __UNUSED__, const char *name __UNUSED__, double lon __UNUSED__, double lat __UNUSED__)
78 >>>>>>> remotes/origin/upstream
79 {
80    return strdup("");
81 }
82
83 EAPI Eina_Bool
84 <<<<<<< HEAD
85 map_module_geo_into_coord(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int size __UNUSED__, int *x __UNUSED__, int *y __UNUSED__)
86 =======
87 map_module_tile_geo_to_coord(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, double lon __UNUSED__, double lat __UNUSED__, int size __UNUSED__, int *x __UNUSED__, int *y __UNUSED__)
88 >>>>>>> remotes/origin/upstream
89 {
90    return EINA_FALSE;
91 }
92
93 EAPI Eina_Bool
94 <<<<<<< HEAD
95 map_module_coord_into_geo(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, int x __UNUSED__, int y __UNUSED__, int size __UNUSED__, double *lon __UNUSED__, double *lat __UNUSED__)
96 =======
97 map_module_tile_coord_to_geo(const Evas_Object *obj __UNUSED__, int zoom __UNUSED__, int x __UNUSED__, int y __UNUSED__, int size __UNUSED__, double *lon __UNUSED__, double *lat __UNUSED__)
98 >>>>>>> remotes/origin/upstream
99 {
100    return EINA_FALSE;
101 }
102
103 static Eina_Bool
104 _module_init(void)
105 {
106    return EINA_TRUE;
107 }
108
109 static void
110 _module_shutdown(void)
111 {
112 }
113
114 EINA_MODULE_INIT(_module_init);
115 EINA_MODULE_SHUTDOWN(_module_shutdown);
116