# PYTHON.

## Files

file | hash.c
file | hash.h
file | rpmmodule.c
file | upgrade.c
file | upgrade.h

## Data Structures

struct | hdrObject_s
struct | hdrObject_s
struct | rpmdbObject_s
struct | rpmdbObject_s
struct | rpmdbMIObject_s
struct | rpmtransObject_s
struct | rpmtransObject_s
struct | tsCallbackType
class | header
| A python header object represents an RPM package header. More...
class | rpmdbMatchIterator
| A python rpmdbMatchIterator object represents the result of an RPM database query. More...
class | rpmdb
| A python rpmdb object represents an RPM database. More...
class | rpmtrans
| A python rpmtrans object represents an RPM transaction set. More...

## Class: header

PyObject * | hdrKeyList (hdrObject *s, PyObject *args)
PyObject * | hdrUnload (hdrObject *s, PyObject *args, PyObject *keywords)
PyObject * | hdrVerifyFile (hdrObject *s, PyObject *args)
PyObject * | hdrExpandFilelist (hdrObject *s, PyObject *args)
PyObject * | hdrCompressFilelist (hdrObject *s, PyObject *args)
void | mungeFilelist (Header h)
PyObject * | hdrFullFilelist (hdrObject *s, PyObject *args)
PyObject * | hdrSprintf (hdrObject *s, PyObject *args)
PyObject * | hdrGetAttr (hdrObject *s, char *name)
void | hdrDealloc (hdrObject *s)
long | tagNumFromPyObject (PyObject *item)
PyObject * | hdrSubscript (hdrObject *s, PyObject *item)
PyObject * | rhnUnload (hdrObject *s, PyObject *args)
PyMethodDef | hdrMethods []
PyMappingMethods | hdrAsMapping
PyTypeObject | hdrType

## Class: rpmdbMatchIterator

PyObject * | rpmdbMINext (rpmdbMIObject *s, PyObject *args)
PyObject * | rpmdbMIGetAttr (rpmdbObject *s, char *name)
void | rpmdbMIDealloc (rpmdbMIObject *s)
PyMethodDef | rpmdbMIMethods []
PyTypeObject | rpmdbMIType

## Class: rpmdb

PyObject * | rpmdbFirst (rpmdbObject *s, PyObject *args)
PyObject * | rpmdbNext (rpmdbObject *s, PyObject *args)
PyObject * | handleDbResult (rpmdbMatchIterator mi)
PyObject * | rpmdbByFile (rpmdbObject *s, PyObject *args)
PyObject * | rpmdbByName (rpmdbObject *s, PyObject *args)
PyObject * | rpmdbByProvides (rpmdbObject *s, PyObject *args)
rpmdbMIObject * | py_rpmdbInitIterator (rpmdbObject *s, PyObject *args)
PyObject * | rpmdbGetAttr (rpmdbObject *s, char *name)
void | rpmdbDealloc (rpmdbObject *s)
int | rpmdbLength (rpmdbObject *s)
hdrObject * | rpmdbSubscript (rpmdbObject *s, PyObject *key)
PyMethodDef | rpmdbMethods []
PyMappingMethods | rpmdbAsMapping
PyTypeObject | rpmdbType

## Class: rpmtrans

PyObject * | rpmtransAdd (rpmtransObject *s, PyObject *args)
PyObject * | rpmtransRemove (rpmtransObject *s, PyObject *args)
PyObject * | rpmtransDepCheck (rpmtransObject *s, PyObject *args)
PyObject * | rpmtransOrder (rpmtransObject *s, PyObject *args)
PyObject * | py_rpmtransGetKeys (rpmtransObject *s, PyObject *args)
void * | tsCallback (const void *hd, const rpmCallbackType what, const unsigned long amount, const unsigned long total, const void *pkgKey, rpmCallbackData data)
PyObject * | rpmtransRun (rpmtransObject *s, PyObject *args)
PyObject * | rpmtransGetAttr (rpmtransObject *o, char *name)
void | rpmtransDealloc (PyObject *o)
int | rpmtransSetAttr (rpmtransObject *o, char *name, PyObject *val)
Header | transactionSetHeader = NULL
PyMethodDef | rpmtransMethods []
PyTypeObject | rpmtransType

## Module: rpm

PyObject * | rpmtransCreate (PyObject *self, PyObject *args)

## Typedefs

typedef rpmdbObject_s | rpmdbObject
typedef rpmdbMIObject_s | rpmdbMIObject
typedef rpmtransObject_s | rpmtransObject
typedef hdrObject_s | hdrObject

## Variables

PyObject * | pyrpmError

## Typedef Documentation

typedef struct hdrObject_s hdrObject

| Definition at line 57 of file rpmmodule.c. Referenced by findUpgradeSet(), getTsHeader(), hdrLoad(), rhnLoad(), rpmdbMINext(), rpmdbSubscript(), rpmHeaderFromPackage(), rpmMergeHeaders(), rpmReadHeaders(), rpmtransAdd(), and versionCompare().

typedef struct rpmdbMIObject_s rpmdbMIObject

| Definition at line 49 of file rpmmodule.c. Referenced by py_rpmdbInitIterator().

typedef struct rpmdbObject_s rpmdbObject

| Definition at line 45 of file rpmmodule.c. Referenced by rpmOpenDB(), and rpmtransCreate().

typedef struct rpmtransObject_s rpmtransObject

| Definition at line 53 of file rpmmodule.c. Referenced by rpmtransCreate(), and rpmtransDealloc().

## Function Documentation

PyObject* handleDbResult | ( | rpmdbMatchIterator | mi | ) | `[static]`

| Definition at line 1010 of file rpmmodule.c. References rpmdbFreeIterator(), rpmdbGetIteratorOffset(), and rpmdbNextIterator(). Referenced by rpmdbByFile(), rpmdbByName(), and rpmdbByProvides().

PyObject* hdrCompressFilelist | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 417 of file rpmmodule.c. References compressFilelist(), and hdrObject_s::h.

void hdrDealloc | ( | hdrObject * | s | ) | `[static]`

| Definition at line 567 of file rpmmodule.c. References hdrObject_s::fileList, hdrObject_s::h, headerFree(), hdrObject_s::linkList, hdrObject_s::md5list, and hdrObject_s::sigs.

PyObject* hdrExpandFilelist | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 408 of file rpmmodule.c. References expandFilelist(), and hdrObject_s::h.

PyObject* hdrFullFilelist | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 511 of file rpmmodule.c. References hdrObject_s::h, and mungeFilelist().

PyObject* hdrGetAttr | ( | hdrObject * | s,
|  | char * | name
| ) | `[static]`

| Definition at line 561 of file rpmmodule.c. References hdrMethods.

PyObject* hdrKeyList | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 133 of file rpmmodule.c. References hdrObject_s::h, HEADER_I18NTABLE, headerFreeIterator(), headerInitIterator(), HeaderIterator, headerNextIterator(), RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_STRING_ARRAY_TYPE, and RPM_STRING_TYPE.

PyObject* hdrSprintf | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 523 of file rpmmodule.c. References errmsg_t, hdrObject_s::h, headerSprintf(), pyrpmError, rpmHeaderFormats, and rpmTagTable.

PyObject* hdrSubscript | ( | hdrObject * | s,
|  | PyObject * | item
| ) | `[static]`

Definition at line 596 of file rpmmodule.c.

References hdrObject_s::h, HEADER_EXT_TAG, headerSprintfExtension, RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, rpmHeaderFormats, rpmPackageGetEntry(), RPMTAG_DESCRIPTION, RPMTAG_FILEFLAGS, RPMTAG_FILEGIDS, RPMTAG_FILEGROUPNAME, RPMTAG_FILELINKTOS, RPMTAG_FILEMD5S, RPMTAG_FILEMODES, RPMTAG_FILEMTIMES, RPMTAG_FILERDEVS, RPMTAG_FILESIZES, RPMTAG_FILESTATES, RPMTAG_FILEUIDS, RPMTAG_FILEUSERNAME, RPMTAG_GROUP, RPMTAG_OLDFILENAMES, RPMTAG_ROOT, RPMTAG_SUMMARY, hdrObject_s::sigs, tagNumFromPyObject(), and xstrcasecmp().

PyObject* hdrUnload | ( | hdrObject * | s,
|  | PyObject * | args,
|  | PyObject * | keywords
| ) | `[static]`

| Definition at line 166 of file rpmmodule.c. References hdrObject_s::h, Header, headerCopy(), headerFree(), headerLink(), headerSizeof(), headerUnload(), and pyrpmError.

PyObject* hdrVerifyFile | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

Returns a list of these tuples for each item that failed: (attr_name, correctValue, currentValue) It should be passed the file number to verify.

Definition at line 202 of file rpmmodule.c.

References hdrObject_s::fileList, hdrObject_s::fileSizes, hdrObject_s::gids, hdrObject_s::h, headerGetEntry(), hdrObject_s::linkList, hdrObject_s::md5list, mdfile(), hdrObject_s::modes, hdrObject_s::mtimes, hdrObject_s::rdevs, RPMTAG_FILEGIDS, RPMTAG_FILELINKTOS, RPMTAG_FILEMD5S, RPMTAG_FILEMODES, RPMTAG_FILEMTIMES, RPMTAG_FILERDEVS, RPMTAG_FILESIZES, RPMTAG_FILEUIDS, RPMTAG_OLDFILENAMES, RPMVERIFY_FILESIZE, RPMVERIFY_GROUP, RPMVERIFY_LINKTO, RPMVERIFY_MD5, RPMVERIFY_MODE, RPMVERIFY_MTIME, RPMVERIFY_NONE, RPMVERIFY_RDEV, RPMVERIFY_USER, rpmVerifyAttrs, rpmVerifyFile(), and hdrObject_s::uids.

void mungeFilelist | ( | Header | h | ) | `[static]`

| Definition at line 427 of file rpmmodule.c. References compressFilelist(), Header, headerAddEntry(), headerIsEntry(), RPM_STRING_ARRAY_TYPE, rpmBuildFileList(), RPMTAG_BASENAMES, RPMTAG_DIRINDEXES, RPMTAG_DIRNAMES, and RPMTAG_OLDFILENAMES. Referenced by hdrFullFilelist().

rpmdbMIObject* py_rpmdbInitIterator | ( | rpmdbObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1060 of file rpmmodule.c. References rpmdbMIObject_s::db, rpmdbObject_s::db, rpmdbMIObject_s::mi, pyrpmError, rpmdbInitIterator(), rpmdbMIObject, rpmdbMIType, and tagNumFromPyObject().

PyObject* py_rpmtransGetKeys | ( | rpmtransObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1437 of file rpmmodule.c. References rpmtransGetKeys(), and rpmtransObject_s::ts.

PyObject* rhnUnload | ( | hdrObject * | s,
|  | PyObject * | args
| ) | `[static]`

Definition at line 451 of file rpmmodule.c.

References _free(), DIGEST_CTX, hdrObject_s::h, Header, headerAddEntry(), headerAllocated(), headerFree(), headerFreeData(), headerGetEntry(), headerIsEntry(), headerLink(), headerLoad(), headerReload(), headerSizeof(), headerUnload(), int_32, PGPHASHALGO_SHA1, RPM_STRING_TYPE, RPMDIGEST_NONE, rpmDigestFinal(), rpmDigestInit(), rpmDigestUpdate(), RPMTAG_ARCH, RPMTAG_HEADERIMMUTABLE, RPMTAG_RHNPLATFORM, RPMTAG_SHA1HEADER, and RPMTAG_SHA1RHN.

PyObject* rpmdbByFile | ( | rpmdbObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1029 of file rpmmodule.c. References rpmdbObject_s::db, handleDbResult(), rpmdbInitIterator(), and RPMTAG_BASENAMES.

PyObject* rpmdbByName | ( | rpmdbObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1039 of file rpmmodule.c. References rpmdbObject_s::db, handleDbResult(), rpmdbInitIterator(), and RPMTAG_NAME.

PyObject* rpmdbByProvides | ( | rpmdbObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1049 of file rpmmodule.c. References rpmdbObject_s::db, handleDbResult(), rpmdbInitIterator(), and RPMTAG_PROVIDENAME.

void rpmdbDealloc | ( | rpmdbObject * | s | ) | `[static]`

| Definition at line 1109 of file rpmmodule.c. References rpmdbObject_s::db, rpmdbObject_s::offsets, and rpmdbClose().

PyObject* rpmdbFirst | ( | rpmdbObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 949 of file rpmmodule.c. References rpmdbObject_s::db, Header, rpmdbObject_s::noffs, rpmdbObject_s::offsets, rpmdbObject_s::offx, pyrpmError, rpmdbFreeIterator(), rpmdbGetIteratorOffset(), RPMDBI_PACKAGES, rpmdbInitIterator(), and rpmdbNextIterator().

PyObject* rpmdbGetAttr | ( | rpmdbObject * | s,
|  | char * | name
| ) | `[static]`

| Definition at line 1103 of file rpmmodule.c. References rpmdbMethods.

int rpmdbLength | ( | rpmdbObject * | s | ) | `[static]`

| Definition at line 1123 of file rpmmodule.c. References rpmdbObject_s::db, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), and rpmdbNextIterator().

void rpmdbMIDealloc | ( | rpmdbMIObject * | s | ) | `[static]`

| Definition at line 851 of file rpmmodule.c. References rpmdbMIObject_s::db, rpmdbMIObject_s::mi, and rpmdbFreeIterator().

PyObject* rpmdbMIGetAttr | ( | rpmdbObject * | s,
|  | char * | name
| ) | `[static]`

| Definition at line 845 of file rpmmodule.c. References rpmdbMIMethods.

PyObject* rpmdbMINext | ( | rpmdbMIObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 814 of file rpmmodule.c. References hdrObject_s::fileList, hdrObject_s::fileSizes, hdrObject_s::gids, hdrObject_s::h, hdrObject, hdrType, Header, headerLink(), hdrObject_s::linkList, hdrObject_s::md5list, rpmdbMIObject_s::mi, hdrObject_s::modes, hdrObject_s::mtimes, hdrObject_s::rdevs, rpmdbNextIterator(), hdrObject_s::sigs, and hdrObject_s::uids.

PyObject* rpmdbNext | ( | rpmdbObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 988 of file rpmmodule.c. References rpmdbObject_s::noffs, rpmdbObject_s::offsets, and rpmdbObject_s::offx.

hdrObject* rpmdbSubscript | ( | rpmdbObject * | s,
|  | PyObject * | key
| ) | `[static]`

Definition at line 1141 of file rpmmodule.c.

References rpmdbObject_s::db, hdrObject_s::fileList, hdrObject_s::fileSizes, hdrObject_s::gids, hdrObject_s::h, hdrObject, hdrType, headerLink(), hdrObject_s::linkList, hdrObject_s::md5list, hdrObject_s::modes, hdrObject_s::mtimes, pyrpmError, hdrObject_s::rdevs, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), rpmdbNextIterator(), hdrObject_s::sigs, and hdrObject_s::uids.

PyObject* rpmtransAdd | ( | rpmtransObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1322 of file rpmmodule.c. References hdrObject_s::h, hdrObject, hdrType, rpmtransObject_s::keyList, rpmtransAddPackage(), rpmtransAvailablePackage(), and rpmtransObject_s::ts.

PyObject* rpmtransCreate | ( | PyObject * | self,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1652 of file rpmmodule.c. References rpmdbObject_s::db, rpmtransObject_s::dbo, rpmtransObject_s::keyList, rpmdbObject, rpmdbType, rpmtransCreateSet(), rpmtransObject, rpmtransType, rpmtransObject_s::scriptFd, and rpmtransObject_s::ts.

void rpmtransDealloc | ( | PyObject * | o | ) | `[static]`

| Definition at line 1587 of file rpmmodule.c. References rpmtransObject_s::dbo, Fclose(), rpmtransObject_s::keyList, rpmtransFree(), rpmtransObject, rpmtransObject_s::scriptFd, and rpmtransObject_s::ts.

PyObject* rpmtransDepCheck | ( | rpmtransObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1387 of file rpmmodule.c. References rpmdepCheck(), rpmDependencyConflict, rpmdepFreeConflicts(), and rpmtransObject_s::ts.

PyObject* rpmtransGetAttr | ( | rpmtransObject * | o,
|  | char * | name
| ) | `[static]`

| Definition at line 1581 of file rpmmodule.c. References rpmtransMethods.

PyObject* rpmtransOrder | ( | rpmtransObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1426 of file rpmmodule.c. References rpmdepOrder(), and rpmtransObject_s::ts.

PyObject* rpmtransRemove | ( | rpmtransObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1356 of file rpmmodule.c. References rpmdbObject_s::db, rpmtransObject_s::dbo, Header, pyrpmError, rpmdbFreeIterator(), rpmdbGetIteratorCount(), rpmdbGetIteratorOffset(), RPMDBI_LABEL, rpmdbInitIterator(), rpmdbNextIterator(), rpmtransRemovePackage(), and rpmtransObject_s::ts.

PyObject* rpmtransRun | ( | rpmtransObject * | s,
|  | PyObject * | args
| ) | `[static]`

| Definition at line 1521 of file rpmmodule.c. References tsCallbackType::cb, tsCallbackType::data, rpmProblemSet_s::numProblems, rpmProblemSet_s::probs, tsCallbackType::pythonError, rpmProblem, rpmProblemSet, rpmProblemSetFree(), rpmProblemString(), rpmRunTransactions(), rpmProblem_s::str1, rpmtransObject_s::ts, tsCallback(), rpmProblem_s::type, and rpmProblem_s::ulong1.

int rpmtransSetAttr | ( | rpmtransObject * | o,
|  | char * | name,
|  | PyObject * | val
| ) | `[static]`

| Definition at line 1603 of file rpmmodule.c. References fdDup(), rpmtransSetScriptFd(), rpmtransObject_s::scriptFd, and rpmtransObject_s::ts.

long tagNumFromPyObject | ( | PyObject * | item | ) | `[static]`

| Definition at line 578 of file rpmmodule.c. References rpmTagTable, rpmTagTableSize, headerTagTableEntry_s::val, and xstrcasecmp(). Referenced by hdrSubscript(), and py_rpmdbInitIterator().

void* tsCallback | ( | const void * | hd,
|  | const rpmCallbackType | what,
|  | const unsigned long | amount,
|  | const unsigned long | total,
|  | const void * | pkgKey,
|  | rpmCallbackData | data
| ) | `[static]`

| Definition at line 1476 of file rpmmodule.c. References Fclose(), FD_t, fdDup(), Header, RPMCALLBACK_INST_CLOSE_FILE, RPMCALLBACK_INST_OPEN_FILE, rpmCallbackData, rpmCallbackType, and transactionSetHeader. Referenced by rpmtransRun().

## Variable Documentation

PyMappingMethods hdrAsMapping`[static]`

Initial value:

     {
            (inquiry) 0,
            (binaryfunc) hdrSubscript,
            (objobjargproc)0,
    }

Definition at line 755 of file rpmmodule.c.

struct PyMethodDef hdrMethods[]`[static]`

Initial value:

     {
            {"keys",        (PyCFunction) hdrKeyList,       1 },
            {"unload",      (PyCFunction) hdrUnload,        METH_VARARGS|METH_KEYWORDS },
            {"verifyFile",  (PyCFunction) hdrVerifyFile,    1 },
            {"expandFilelist",      (PyCFunction) hdrExpandFilelist,        1 },
            {"compressFilelist",    (PyCFunction) hdrCompressFilelist,      1 },
            {"fullFilelist",        (PyCFunction) hdrFullFilelist,  1 },
            {"rhnUnload",   (PyCFunction) rhnUnload, METH_VARARGS },
            {"sprintf",     (PyCFunction) hdrSprintf, METH_VARARGS },
            {NULL,          NULL}
    }

Definition at line 547 of file rpmmodule.c.

Referenced by hdrGetAttr().

PyTypeObject hdrType`[static]`

Initial value:

     {
            PyObject_HEAD_INIT(NULL)
            0,
            "header",
            sizeof(hdrObject),
            0,
            (destructor) hdrDealloc,
            0,
            (getattrfunc) hdrGetAttr,
            0,
            0,
            0,
            0,
            0,
            &hdrAsMapping,
    }

Definition at line 763 of file rpmmodule.c.

Referenced by findUpgradeSet(), getTsHeader(), hdrLoad(), initrpm(), rhnLoad(), rpmdbMINext(), rpmdbSubscript(), rpmHeaderFromPackage(), rpmReadHeaders(), rpmtransAdd(), and versionCompare().

PyObject* pyrpmError`[static]`

| Definition at line 61 of file rpmmodule.c. Referenced by doFopen(), findUpgradeSet(), hdrLoad(), hdrSprintf(), hdrUnload(), initrpm(), py_rpmdbInitIterator(), rhnLoad(), rpmdbFirst(), rpmdbSubscript(), rpmHeaderFromFile(), rpmHeaderFromPackage(), rpmInitDB(), rpmMergeHeaders(), rpmOpenDB(), rpmReadHeaders(), and rpmtransRemove().

PyMappingMethods rpmdbAsMapping`[static]`

Initial value:

     {
            (inquiry) rpmdbLength,
            (binaryfunc) rpmdbSubscript,
            (objobjargproc)0,
    }

Definition at line 1175 of file rpmmodule.c.

struct PyMethodDef rpmdbMethods[]`[static]`

Initial value:

     {
            {"firstkey",        (PyCFunction) rpmdbFirst,   1 },
            {"nextkey",         (PyCFunction) rpmdbNext,    1 },
            {"findbyfile",      (PyCFunction) rpmdbByFile, 1 },
            {"findbyname",      (PyCFunction) rpmdbByName, 1 },
            {"findbyprovides",  (PyCFunction) rpmdbByProvides, 1 },
            {"match",           (PyCFunction) py_rpmdbInitIterator, 1 },
            {NULL,          NULL}
    }

Definition at line 1091 of file rpmmodule.c.

Referenced by rpmdbGetAttr().

struct PyMethodDef rpmdbMIMethods[]`[static]`

Initial value:

     {
            {"next",            (PyCFunction) rpmdbMINext,  1 },
            {NULL,          NULL}
    }

Definition at line 838 of file rpmmodule.c.

Referenced by rpmdbMIGetAttr().

PyTypeObject rpmdbMIType`[static]`

Initial value:

     {
            PyObject_HEAD_INIT(NULL)
            0,
            "rpmdbMatchIterator",
            sizeof(rpmdbMIObject),
            0,
            (destructor) rpmdbMIDealloc,
            0,
            (getattrfunc) rpmdbMIGetAttr,
            0,
            0,
            0,
            0,
            0,
            0,
    }

Definition at line 861 of file rpmmodule.c.

Referenced by initrpm(), and py_rpmdbInitIterator().

PyTypeObject rpmdbType`[static]`

Initial value:

     {
            PyObject_HEAD_INIT(NULL)
            0,
            "rpmdb",
            sizeof(rpmdbObject),
            0,
            (destructor) rpmdbDealloc,
            0,
            (getattrfunc) rpmdbGetAttr,
            0,
            0,
            0,
            0,
            0,

            &rpmdbAsMapping,

    }

Definition at line 1184 of file rpmmodule.c.

Referenced by initrpm(), rpmOpenDB(), and rpmtransCreate().

struct PyMethodDef rpmtransMethods[]`[static]`

Initial value:

     {
            {"add",         (PyCFunction) rpmtransAdd,      1 },
            {"remove",      (PyCFunction) rpmtransRemove,   1 },
            {"depcheck",    (PyCFunction) rpmtransDepCheck, 1 },
            {"order",       (PyCFunction) rpmtransOrder,    1 },
            {"getKeys",     (PyCFunction) py_rpmtransGetKeys, 1 },
            {"run",         (PyCFunction) rpmtransRun, 1 },
            {NULL,          NULL}
    }

Definition at line 1569 of file rpmmodule.c.

Referenced by rpmtransGetAttr().

PyTypeObject rpmtransType`[static]`

Initial value:

     {
            PyObject_HEAD_INIT(NULL)
            0,
            "rpmtrans",
            sizeof(rpmtransObject),
            0,
            (destructor) rpmtransDealloc,
            0,
            (getattrfunc) rpmtransGetAttr,
            (setattrfunc) rpmtransSetAttr,
            0,
            0,
            0,
            0,
            0,
    }

Definition at line 1626 of file rpmmodule.c.

Referenced by initrpm(), and rpmtransCreate().

Header transactionSetHeader = NULL`[static]`

Todo:
  Remove, there's no headerLink refcount on the pointer.

Definition at line 1472 of file rpmmodule.c.

Referenced by getTsHeader(), and tsCallback().