00001 #ifndef H_RPMDB_PY 00002 #define H_RPMDB_PY 00003 00004 #include "rpmdb.h" 00005 00012 typedef struct rpmdbObject_s rpmdbObject; 00013 00016 struct rpmdbObject_s { 00017 PyObject_HEAD 00018 PyObject *md_dict; 00019 rpmdb db; 00020 int offx; 00021 int noffs; 00022 int *offsets; 00023 } ; 00024 00025 /*@unchecked@*/ 00026 extern PyTypeObject rpmdb_Type; 00027 00028 #ifdef _LEGACY_BINDINGS_TOO 00029 rpmdb dbFromDb(rpmdbObject * db) 00030 /*@*/; 00031 00032 rpmdbObject * rpmOpenDB(PyObject * self, PyObject * args, PyObject * kwds) 00033 /*@*/; 00034 PyObject * rebuildDB (PyObject * self, PyObject * args, PyObject * kwds) 00035 /*@globals rpmGlobalMacroContext @*/ 00036 /*@modifies rpmGlobalMacroContext @*/; 00037 #endif 00038 00039 #endif