Fix conflicts: Map, Hover, Hoversel, Menu, Web
[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 map_module_source_name_get(void)
9 {
10    return strdup("test_map");
11 }
12
13 EAPI int
14 map_module_tile_zoom_min_get(void)
15 {
16    return 0;
17 }
18
19 EAPI int
20 map_module_tile_zoom_max_get(void)
21 {
22    return 18;
23 }
24
25 EAPI char *
26 map_module_tile_url_get(Evas_Object *obj __UNUSED__, int x, int y, int zoom)
27 {
28    char buf[PATH_MAX];
29    snprintf(buf, sizeof(buf), "http://tile.openstreetmap.org/%d/%d/%d.png",
30             zoom, x, y);
31    return strdup(buf);
32 }
33
34 EAPI char *
35 map_module_route_source_get(void)
36 {
37    return NULL;
38 }
39
40 EAPI char *
41 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__)
42 {
43    return strdup("");
44 }
45
46 EAPI char *
47 map_module_name_url_get(Evas_Object *obj __UNUSED__, int method __UNUSED__, const char *name __UNUSED__, double lon __UNUSED__, double lat __UNUSED__)
48 {
49    return strdup("");
50 }
51
52 EAPI Eina_Bool
53 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__)
54 {
55    return EINA_FALSE;
56 }
57
58 EAPI Eina_Bool
59 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__)
60 {
61    return EINA_FALSE;
62 }
63
64 static Eina_Bool
65 _module_init(void)
66 {
67    return EINA_TRUE;
68 }
69
70 static void
71 _module_shutdown(void)
72 {
73 }
74
75 EINA_MODULE_INIT(_module_init);
76 EINA_MODULE_SHUTDOWN(_module_shutdown);
77