2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2008 Navit Team
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * version 2 as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
23 #if defined(MS_WINDOWS) || defined(__CYGWIN__)
24 #define Obj_HEAD PyObject_HEAD_INIT(NULL);
26 #define Obj_HEAD PyObject_HEAD_INIT(&PyType_Type)
32 PyObject * python_object_from_attr(struct attr *attr);
34 PyObject * config_py(PyObject *self, PyObject *args);
36 PyObject * map_py_ref(struct map *map);
39 PyObject * navigation_py(PyObject *self, PyObject *args);
40 PyObject * navigation_py_ref(struct navigation *navigation);
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);
49 PyObject * route_py(PyObject *self, PyObject *args);
50 PyObject * route_py_ref(struct route *route);
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);