summaryrefslogtreecommitdiff
path: root/src/modules/test_map/mod.c
blob: 8b94996f13be158c26c0f1325ab2db7df54f08c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif

EAPI int 
elm_modapi_init(void *m) 
{   
   return 1; // succeed always
}

EAPI int 
elm_modapi_shutdown(void *m) 
{
   return 1; // succeed always
}

EAPI Eina_Bool
obj_hook(Evas_Object *obj)
{
   return EINA_TRUE;
}

EAPI Eina_Bool
obj_unhook(Evas_Object *obj)
{ 
   return EINA_TRUE;
}

EAPI Eina_Bool 
obj_convert_geo_into_coord(const Evas_Object *obj, int zoom, double lon, double lat, int size, int *x, int *y)
{
   return EINA_FALSE;
}

EAPI Eina_Bool
obj_convert_coord_into_geo(const Evas_Object *obj, int zoom, int x, int y, int size, double *lon, double *lat)
{
   return EINA_FALSE;
}

EAPI char*
obj_url_request(Evas_Object *obj, int x, int y, int zoom)
{
   char buf[PATH_MAX];
   snprintf(buf, sizeof(buf), "http://tile.openstreetmap.org/%d/%d/%d.png",
            zoom, x, y);
   return strdup(buf);
}