navit  0.5.3-trunk
common.h File Reference
#include <Python.h>
#include "debug.h"

Go to the source code of this file.

Macros

#define Obj_HEAD   PyObject_HEAD_INIT(&PyType_Type)
 

Functions

PyObject * python_object_from_attr (struct attr *attr)
 
PyObject * config_py (PyObject *self, PyObject *args)
 
PyObject * map_py_ref (struct map *map)
 
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)
 
PyObject * pcoord_py (PyObject *self, PyObject *args)
 
struct pcoordpcoord_py_get (PyObject *self)
 
PyObject * route_py (PyObject *self, PyObject *args)
 
PyObject * route_py_ref (struct route *route)
 
PyObject * attr_new_py (PyObject *self, PyObject *args)
 
PyObject * attr_new_py_ref (struct attr *attr)
 
struct attrattr_py_get (PyObject *self)
 

Variables

PyTypeObject pcoord_Type
 
PyTypeObject attr_Type
 

Macro Definition Documentation

◆ Obj_HEAD

#define Obj_HEAD   PyObject_HEAD_INIT(&PyType_Type)

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.

Function Documentation

◆ attr_new_py()

PyObject* attr_new_py ( PyObject *  self,
PyObject *  args 
)

◆ attr_new_py_ref()

PyObject* attr_new_py_ref ( struct attr attr)

◆ attr_py_get()

struct attr* attr_py_get ( PyObject *  self)

◆ config_py()

PyObject* config_py ( PyObject *  self,
PyObject *  args 
)

References config_Type, dbg, and lvl_debug.

◆ map_py_ref()

PyObject* map_py_ref ( struct map map)

◆ navigation_py()

PyObject* navigation_py ( PyObject *  self,
PyObject *  args 
)

References navigation_Type.

◆ navigation_py_ref()

PyObject* navigation_py_ref ( struct navigation navigation)

◆ navit_py()

PyObject* navit_py ( PyObject *  self,
PyObject *  args 
)

References dbg, lvl_debug, and navit_Type.

◆ navit_py_ref()

PyObject* navit_py_ref ( struct navit navit)

◆ pcoord_py()

PyObject* pcoord_py ( PyObject *  self,
PyObject *  args 
)

◆ pcoord_py_get()

struct pcoord* pcoord_py_get ( PyObject *  self)

◆ python_object_from_attr()

PyObject* python_object_from_attr ( struct attr attr)

◆ route_py()

PyObject* route_py ( PyObject *  self,
PyObject *  args 
)

References route_Type.

◆ route_py_ref()

PyObject* route_py_ref ( struct route route)

References routeObject::route, and route_Type.

Referenced by python_object_from_attr().

Variable Documentation

◆ attr_Type

PyTypeObject attr_Type
extern

◆ pcoord_Type

PyTypeObject pcoord_Type
extern