diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-30 20:34:23 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-30 20:34:23 +0000 |
commit | d72782347c2ba802cd030feeb23f7eacc4ae8a23 (patch) | |
tree | a729476323d0d551c2031b3a666193923ceb08a4 /binding/python/common.h | |
parent | c297ef7f5928b0407ab67b9a76ccf166d0a1d3e0 (diff) | |
parent | 3b8435d744c504a88493f272068453023585837e (diff) | |
download | navit-svn-wince.tar.gz |
Updated wince branch to current versionwince
git-svn-id: http://svn.code.sf.net/p/navit/code/branches/wince/navit@2430 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'binding/python/common.h')
-rw-r--r-- | binding/python/common.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/binding/python/common.h b/binding/python/common.h new file mode 100644 index 00000000..5c1a270c --- /dev/null +++ b/binding/python/common.h @@ -0,0 +1,55 @@ +/** + * Navit, a modular navigation system. + * Copyright (C) 2005-2008 Navit Team + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#include <Python.h> +#include "debug.h" + +#if defined(MS_WINDOWS) || defined(__CYGWIN__) +#define Obj_HEAD PyObject_HEAD_INIT(NULL); +#else +#define Obj_HEAD PyObject_HEAD_INIT(&PyType_Type) +#endif + +struct navit; +struct map; + +PyObject * python_object_from_attr(struct attr *attr); + +PyObject * main_py(PyObject *self, PyObject *args); + +PyObject * map_py_ref(struct map *map); + +struct navigation; +PyObject * navigation_py(PyObject *self, PyObject *args); +PyObject * navigation_py_ref(struct navigation *navigation); + +PyObject * navit_py(PyObject *self, PyObject *args); +PyObject * navit_py_ref(struct navit *navit); +extern PyTypeObject pcoord_Type; +PyObject * pcoord_py(PyObject *self, PyObject *args); +struct pcoord *pcoord_py_get(PyObject *self); + +struct route; +PyObject * route_py(PyObject *self, PyObject *args); +PyObject * route_py_ref(struct route *route); + +extern PyTypeObject attr_Type; +PyObject * attr_new_py(PyObject *self, PyObject *args); +PyObject * attr_new_py_ref(struct attr *attr); +struct attr * attr_py_get(PyObject *self); |