diff options
Diffstat (limited to 'python/header-py.c')
-rw-r--r-- | python/header-py.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/header-py.c b/python/header-py.c index 008194073..d87e1fef9 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -239,6 +239,11 @@ static PyObject * hdrFormat(hdrObject * s, PyObject * args, PyObject * kwds) return result; } +static PyObject *hdrInstance(hdrObject *s) +{ + return Py_BuildValue("i", headerGetInstance(s->h)); +} + static PyObject *hdrIsSource(hdrObject *s) { return PyBool_FromLong(headerIsSource(s->h)); @@ -321,6 +326,8 @@ static struct PyMethodDef hdr_methods[] = { NULL }, {"sprintf", (PyCFunction) hdrFormat, METH_VARARGS|METH_KEYWORDS, NULL }, + {"instance", (PyCFunction)hdrInstance, METH_NOARGS, + NULL }, {"isSource", (PyCFunction)hdrIsSource, METH_NOARGS, NULL }, {"write", (PyCFunction)hdrWrite, METH_VARARGS|METH_KEYWORDS, |