navit 0.5.3-trunk
Loading...
Searching...
No Matches
common.h
Go to the documentation of this file.
1
20#include "debug.h"
21#include <Python.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
29struct navit;
30struct map;
31
32PyObject *python_object_from_attr(struct attr *attr);
33
34PyObject *config_py(PyObject *self, PyObject *args);
35
36PyObject *map_py_ref(struct map *map);
37
38struct navigation;
39PyObject *navigation_py(PyObject *self, PyObject *args);
40PyObject *navigation_py_ref(struct navigation *navigation);
41
42PyObject *navit_py(PyObject *self, PyObject *args);
43PyObject *navit_py_ref(struct navit *navit);
44extern PyTypeObject pcoord_Type;
45PyObject *pcoord_py(PyObject *self, PyObject *args);
46struct pcoord *pcoord_py_get(PyObject *self);
47
48struct route;
49PyObject *route_py(PyObject *self, PyObject *args);
50PyObject *route_py_ref(struct route *route);
51
52extern PyTypeObject attr_Type;
53PyObject *attr_new_py(PyObject *self, PyObject *args);
54PyObject *attr_new_py_ref(struct attr *attr);
55struct attr *attr_py_get(PyObject *self);
PyObject * map_py_ref(struct map *map)
Definition binding_python.c:200
PyObject * navit_py_ref(struct navit *navit)
Definition navit.c:116
struct attr * attr_py_get(PyObject *self)
Definition attr.c:61
PyObject * python_object_from_attr(struct attr *attr)
Definition binding_python.c:284
PyObject * navigation_py(PyObject *self, PyObject *args)
Definition navigation.c:54
PyObject * route_py(PyObject *self, PyObject *args)
Definition route.c:56
PyObject * attr_new_py(PyObject *self, PyObject *args)
Definition attr.c:65
PyTypeObject pcoord_Type
Definition pcoord.c:48
PyObject * pcoord_py(PyObject *self, PyObject *args)
Definition pcoord.c:56
PyObject * navigation_py_ref(struct navigation *navigation)
Definition navigation.c:61
PyObject * config_py(PyObject *self, PyObject *args)
Definition config.c:55
PyTypeObject attr_Type
Definition attr.c:53
PyObject * route_py_ref(struct route *route)
Definition route.c:63
PyObject * attr_new_py_ref(struct attr *attr)
Definition attr.c:76
PyObject * navit_py(PyObject *self, PyObject *args)
Definition navit.c:108
struct pcoord * pcoord_py_get(PyObject *self)
Definition pcoord.c:72
Definition attr.h:138
Definition map.c:58
Definition navigation.c:167
Definition navit.c:110
Definition coord.h:51
A complete route.
Definition route.c:206