summaryrefslogtreecommitdiff
path: root/python/db-py.h
blob: c2265ffc5ac45ab2ea37ae1f534563dff5b6ebe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef RPMPYTHON_DB
#define RPMPYTHON_DB

/** \ingroup python
 * \file python/db-py.h
 */

/** \ingroup python
 */
struct rpmdbObject_s {
    PyObject_HEAD;
    rpmdb db;
    int offx;
    int noffs;
    int *offsets;
} ;

/** \ingroup python
 */
typedef struct rpmdbObject_s rpmdbObject;

extern PyTypeObject rpmdbType;
PyTypeObject rpmdbMIType;

rpmdb dbFromDb(rpmdbObject * db);
rpmdbObject * rpmOpenDB(PyObject * self, PyObject * args);
PyObject * rebuildDB (PyObject * self, PyObject * args);

#endif