navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
common.h
Go to the documentation of this file.
1 
20 #include <Python.h>
21 #include "debug.h"
22 
23 #if defined(MS_WINDOWS) || defined(__CYGWIN__)
24 #define Obj_HEAD PyObject_HEAD_INIT(NULL);
25 #else
26 #define Obj_HEAD PyObject_HEAD_INIT(&PyType_Type)
27 #endif
28 
29 struct navit;
30 struct map;
31 
32 PyObject * python_object_from_attr(struct attr *attr);
33 
34 PyObject * config_py(PyObject *self, PyObject *args);
35 
36 PyObject * map_py_ref(struct map *map);
37 
38 struct navigation;
39 PyObject * navigation_py(PyObject *self, PyObject *args);
40 PyObject * navigation_py_ref(struct navigation *navigation);
41 
42 PyObject * navit_py(PyObject *self, PyObject *args);
43 PyObject * navit_py_ref(struct navit *navit);
44 extern PyTypeObject pcoord_Type;
45 PyObject * pcoord_py(PyObject *self, PyObject *args);
46 struct pcoord *pcoord_py_get(PyObject *self);
47 
48 struct route;
49 PyObject * route_py(PyObject *self, PyObject *args);
50 PyObject * route_py_ref(struct route *route);
51 
52 extern PyTypeObject attr_Type;
53 PyObject * attr_new_py(PyObject *self, PyObject *args);
54 PyObject * attr_new_py_ref(struct attr *attr);
55 struct attr * attr_py_get(PyObject *self);
Definition: navigation.c:161
struct pcoord * pcoord_py_get(PyObject *self)
Definition: pcoord.c:84
PyTypeObject attr_Type
Definition: attr.c:62
struct attr * attr_py_get(PyObject *self)
Definition: attr.c:71
PyObject * route_py_ref(struct route *route)
Definition: route.c:75
PyObject * config_py(PyObject *self, PyObject *args)
Definition: config.c:65
PyObject * navigation_py(PyObject *self, PyObject *args)
Definition: navigation.c:64
PyObject * pcoord_py(PyObject *self, PyObject *args)
Definition: pcoord.c:66
PyObject * route_py(PyObject *self, PyObject *args)
Definition: route.c:66
PyTypeObject pcoord_Type
Definition: pcoord.c:57
PyObject * navit_py(PyObject *self, PyObject *args)
Definition: navit.c:130
PyObject * attr_new_py(PyObject *self, PyObject *args)
Definition: attr.c:77
A complete route.
Definition: route.c:248
Definition: attr.h:156
PyObject * navigation_py_ref(struct navigation *navigation)
Definition: navigation.c:73
PyObject * python_object_from_attr(struct attr *attr)
Definition: binding_python.c:338
Holds information about a map.
Definition: map.c:60
PyObject * attr_new_py_ref(struct attr *attr)
Definition: attr.c:90
Definition: navit.c:111
Definition: coord.h:40
PyObject * navit_py_ref(struct navit *navit)
Definition: navit.c:140
PyObject * map_py_ref(struct map *map)
Definition: binding_python.c:233