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

Data Structures

struct  templateObject
 

Functions

static PyObject * template_func (templateObject *self, PyObject *args)
 
static PyObject * template_getattr_py (PyObject *self, char *name)
 
static void template_destroy_py (templateObject *self)
 
struct template * template_py_get (PyObject *self)
 
PyObject * template_new_py (PyObject *self, PyObject *args)
 
PyObject * template_new_py_ref (struct template *template)
 

Variables

static PyMethodDef template_methods []
 
PyTypeObject template_Type
 

Function Documentation

◆ template_destroy_py()

static void template_destroy_py ( templateObject self)
static

◆ template_func()

static PyObject* template_func ( templateObject self,
PyObject *  args 
)
static

References file.

◆ template_getattr_py()

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

References name, and template_methods.

◆ template_new_py()

PyObject* template_new_py ( PyObject *  self,
PyObject *  args 
)

◆ template_new_py_ref()

PyObject* template_new_py_ref ( struct template *  template)

◆ template_py_get()

struct template* template_py_get ( PyObject *  self)

Variable Documentation

◆ template_methods

PyMethodDef template_methods[]
static
Initial value:
= {
{"func", (PyCFunction) template_func, METH_VARARGS },
{NULL, NULL },
}
static PyObject * template_func(templateObject *self, PyObject *args)
Definition: template.c:29

Referenced by template_getattr_py().

◆ template_Type

PyTypeObject template_Type
Initial value:
= {
.tp_name="template",
.tp_basicsize=sizeof(templateObject),
.tp_dealloc=(destructor)template_destroy_py,
.tp_getattr=template_getattr_py,
}
#define Obj_HEAD
Definition: binding_python.c:39
Definition: template.c:23
static void template_destroy_py(templateObject *self)
Definition: template.c:50
static PyObject * template_getattr_py(PyObject *self, char *name)
Definition: template.c:46

Referenced by template_new_py(), and template_new_py_ref().