#include "system.h"#include <rpmlib.h>#include "rpmdb-py.h"#include "rpmmi-py.h"#include "header-py.h"#include "debug.h"Go to the source code of this file.
Class: rpm.db | |
| static struct PyMethodDef | rpmdb_methods [] |
| static PyMappingMethods | rpmdb_as_mapping |
| static char | rpmdb_doc [] |
| PyTypeObject | rpmdb_Type |
| static rpmmiObject * | rpmdb_Match (rpmdbObject *s, PyObject *args, PyObject *kwds) |
| static int | rpmdb_length (rpmdbObject *s) |
| static hdrObject * | rpmdb_subscript (rpmdbObject *s, PyObject *key) |
| static void | rpmdb_dealloc (rpmdbObject *s) |
| static PyObject * | rpmdb_getattro (PyObject *o, PyObject *n) |
| static int | rpmdb_setattro (PyObject *o, PyObject *n, PyObject *v) |
Definition in file rpmdb-py.c.
| static void rpmdb_dealloc | ( | rpmdbObject * | s | ) | [static] |
| static PyObject* rpmdb_getattro | ( | PyObject * | o, | |
| PyObject * | n | |||
| ) | [static] |
Definition at line 214 of file rpmdb-py.c.
| static int rpmdb_length | ( | rpmdbObject * | s | ) | [static] |
Definition at line 147 of file rpmdb-py.c.
References rpmdbObject_s::db, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), and rpmdbNextIterator().
| static rpmmiObject* rpmdb_Match | ( | rpmdbObject * | s, | |
| PyObject * | args, | |||
| PyObject * | kwds | |||
| ) | [static] |
Definition at line 110 of file rpmdb-py.c.
References rpmdbObject_s::db, RPMDBI_PACKAGES, rpmdbInitIterator(), rpmmi_Wrap(), and tagNumFromPyObject().
| static int rpmdb_setattro | ( | PyObject * | o, | |
| PyObject * | n, | |||
| PyObject * | v | |||
| ) | [static] |
Definition at line 220 of file rpmdb-py.c.
| static hdrObject* rpmdb_subscript | ( | rpmdbObject * | s, | |
| PyObject * | key | |||
| ) | [static] |
Definition at line 166 of file rpmdb-py.c.
References rpmdbObject_s::db, hdr_Wrap(), headerFree(), pyrpmError, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), and rpmdbNextIterator().
PyMappingMethods rpmdb_as_mapping [static] |
Initial value:
{
(inquiry) rpmdb_length,
(binaryfunc) rpmdb_subscript,
(objobjargproc)0,
}
Definition at line 198 of file rpmdb-py.c.
char rpmdb_doc[] [static] |
struct PyMethodDef rpmdb_methods[] [static] |
Initial value:
{
{"match", (PyCFunction) rpmdb_Match, METH_VARARGS|METH_KEYWORDS,
"db.match([TagN, [key, [len]]]) -> mi\n\
- Create an rpm db match iterator.\n" },
{NULL, NULL}
}
Definition at line 136 of file rpmdb-py.c.
| PyTypeObject rpmdb_Type |
Definition at line 235 of file rpmdb-py.c.
1.5.2