Navit SVN

/work/compile/navit/src/navit/binding/python/common.h

00001 
00020 #include <Python.h>
00021 #include "debug.h"
00022 
00023 #if defined(MS_WINDOWS) || defined(__CYGWIN__)
00024 #define Obj_HEAD PyObject_HEAD_INIT(NULL);
00025 #else
00026 #define Obj_HEAD PyObject_HEAD_INIT(&PyType_Type)
00027 #endif
00028 
00029 struct navit;
00030 struct map;
00031 
00032 PyObject * python_object_from_attr(struct attr *attr);
00033 
00034 PyObject * config_py(PyObject *self, PyObject *args);
00035 
00036 PyObject * map_py_ref(struct map *map);
00037 
00038 struct navigation;
00039 PyObject * navigation_py(PyObject *self, PyObject *args);
00040 PyObject * navigation_py_ref(struct navigation *navigation);
00041 
00042 PyObject * navit_py(PyObject *self, PyObject *args);
00043 PyObject * navit_py_ref(struct navit *navit);
00044 extern PyTypeObject pcoord_Type;
00045 PyObject * pcoord_py(PyObject *self, PyObject *args);
00046 struct pcoord *pcoord_py_get(PyObject *self);
00047 
00048 struct route;
00049 PyObject * route_py(PyObject *self, PyObject *args);
00050 PyObject * route_py_ref(struct route *route);
00051 
00052 extern PyTypeObject attr_Type;
00053 PyObject * attr_new_py(PyObject *self, PyObject *args);
00054 PyObject * attr_new_py_ref(struct attr *attr);
00055 struct attr * attr_py_get(PyObject *self);