navit  0.5.3-trunk
attr.c File Reference
#include "common.h"
#include "item.h"
#include "attr.h"

Data Structures

struct  attrObject
 

Functions

static PyObject * attr_func (attrObject *self, PyObject *args)
 
static PyObject * attr_getattr_py (PyObject *self, char *name)
 
static void attr_destroy_py (attrObject *self)
 
struct attrattr_py_get (PyObject *self)
 
PyObject * attr_new_py (PyObject *self, PyObject *args)
 
PyObject * attr_new_py_ref (struct attr *attr)
 

Variables

static PyMethodDef attr_methods []
 
PyTypeObject attr_Type
 

Function Documentation

◆ attr_destroy_py()

static void attr_destroy_py ( attrObject self)
static

References attr_free().

◆ attr_func()

static PyObject* attr_func ( attrObject self,
PyObject *  args 
)
static

References file.

◆ attr_getattr_py()

static PyObject* attr_getattr_py ( PyObject *  self,
char *  name 
)
static

References attr_methods, and name.

◆ 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)

Variable Documentation

◆ attr_methods

PyMethodDef attr_methods[]
static
Initial value:
= {
{"func", (PyCFunction) attr_func, METH_VARARGS },
{NULL, NULL },
}
static PyObject * attr_func(attrObject *self, PyObject *args)
Definition: attr.c:30

Referenced by attr_getattr_py().

◆ attr_Type

PyTypeObject attr_Type
Initial value:
= {
.tp_name="attr",
.tp_basicsize=sizeof(attrObject),
.tp_dealloc=(destructor)attr_destroy_py,
.tp_getattr=attr_getattr_py,
}
static PyObject * attr_getattr_py(PyObject *self, char *name)
Definition: attr.c:47
static void attr_destroy_py(attrObject *self)
Definition: attr.c:51
#define Obj_HEAD
Definition: binding_python.c:39
Definition: attr.c:24

Referenced by attr_new_py(), attr_new_py_ref(), map_set_attr_py(), and navit_set_attr_py().