Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

PYTHON-C Language Bindings.


Files

file  _rpmdb.c
file  header-py.c
file  header-py.h
file  rpmal-py.c
file  rpmal-py.h
file  rpmdb-py.c
file  rpmdb-py.h
file  rpmds-py.c
file  rpmds-py.h
file  rpmfd-py.c
file  rpmfd-py.h
file  rpmfi-py.c
file  rpmfi-py.h
file  rpmfts-py.c
file  rpmfts-py.h
file  rpmmi-py.c
file  rpmmi-py.h
file  rpmmodule.c
file  rpmrc-py.c
file  rpmrc-py.h
file  rpmte-py.c
file  rpmte-py.h
file  rpmts-py.c
file  rpmts-py.h

Data Structures

struct  hdrObject_s
struct  rpmdbObject_s
struct  rpmmiObject_s
struct  rpmrcObject_s
struct  rpmtsCallbackType_s

Class: rpm.hdr

PyObject * hdrKeyList (hdrObject *s, PyObject *args)
PyObject * hdrUnload (hdrObject *s, PyObject *args, PyObject *keywords)
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)
void hdr_dealloc (hdrObject *s)
long tagNumFromPyObject (PyObject *item)
PyObject * hdr_subscript (hdrObject *s, PyObject *item)
PyMethodDef hdr_methods []
PyMappingMethods hdr_as_mapping
PyTypeObject hdr_Type

Class: Rpmfd

void rpmfd_dealloc (rpmfdObject *s)
int rpmfd_init (rpmfdObject *s, PyObject *args, PyObject *kwds)
void rpmfd_free (rpmfdObject *s)
PyObject * rpmfd_alloc (PyTypeObject *subtype, int nitems)
rpmfdObjectrpmfd_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
PyMethodDef rpmfd_methods []
PyTypeObject rpmfd_Type

Class: Rpmmi

void rpmmi_dealloc (rpmmiObject *s)
PyMethodDef rpmmi_methods []
PyTypeObject rpmmi_Type

Class: Rpmts

PyObject * rpmts_Debug (rpmtsObject *s, PyObject *args)
void rpmtsAddAvailableElement (rpmts ts, Header h, fnpyKey key)
PyObject * rpmts_AddInstall (rpmtsObject *s, PyObject *args)
PyObject * rpmts_AddErase (rpmtsObject *s, PyObject *args)
int rpmts_SolveCallback (rpmts ts, rpmds ds, const void *data)
PyObject * rpmts_Check (rpmtsObject *s, PyObject *args)
PyObject * rpmts_Order (rpmtsObject *s, PyObject *args)
PyObject * rpmts_Clean (rpmtsObject *s, PyObject *args)
PyObject * rpmts_IDTXload (rpmtsObject *s, PyObject *args)
PyObject * rpmts_IDTXglob (rpmtsObject *s, PyObject *args)
PyObject * rpmts_Rollback (rpmtsObject *s, PyObject *args)
PyObject * rpmts_OpenDB (rpmtsObject *s, PyObject *args)
PyObject * rpmts_CloseDB (rpmtsObject *s, PyObject *args)
PyObject * rpmts_InitDB (rpmtsObject *s, PyObject *args)
PyObject * rpmts_RebuildDB (rpmtsObject *s, PyObject *args)
PyObject * rpmts_VerifyDB (rpmtsObject *s, PyObject *args)
PyObject * rpmts_HdrFromFdno (rpmtsObject *s, PyObject *args)
PyObject * rpmts_HdrCheck (rpmtsObject *s, PyObject *args)
PyObject * rpmts_SetVSFlags (rpmtsObject *s, PyObject *args)
PyObject * rpmts_SetColor (rpmtsObject *s, PyObject *args)
PyObject * rpmts_PgpPrtPkts (rpmtsObject *s, PyObject *args)
PyObject * rpmts_PgpImportPubkey (rpmtsObject *s, PyObject *args)
PyObject * rpmts_GetKeys (rpmtsObject *s, PyObject *args)
void * rpmtsCallback (const void *hd, const rpmCallbackType what, const unsigned long amount, const unsigned long total, const void *pkgKey, rpmCallbackData data)
PyObject * rpmts_SetFlags (rpmtsObject *s, PyObject *args)
PyObject * rpmts_SetProbFilter (rpmtsObject *s, PyObject *args)
PyObject * rpmts_Run (rpmtsObject *s, PyObject *args)
void rpmts_dealloc (rpmtsObject *s)
int rpmts_setattro (PyObject *o, PyObject *n, PyObject *v)
int rpmts_init (rpmtsObject *s, PyObject *args, PyObject *kwds)
void rpmts_free (rpmtsObject *s)
PyObject * rpmts_alloc (PyTypeObject *subtype, int nitems)
PyObject * rpmts_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
PyObject * rpmts_iternext (rpmtsObject *s)
PyObject * rpmts_Next (rpmtsObject *s)
rpmmiObjectrpmts_Match (rpmtsObject *s, PyObject *args)
PyObject * rpmts_getattro (PyObject *o, PyObject *n)
rpmtsObjectrpmts_Create (PyObject *self, PyObject *args)
PyMethodDef rpmts_methods []
PyTypeObject rpmts_Type
char rpmts_doc []

Class: Rpmfts

PyMethodDef rpmfts_methods []
PyTypeObject rpmfts_Type

Class: rpm.rc

PyTypeObject rpmrc_Type

Class: Rpmte

PyMethodDef rpmte_methods []
PyTypeObject rpmte_Type

Typedefs

typedef hdrObject_s hdrObject
typedef rpmdbObject_s rpmdbObject
typedef rpmmiObject_s rpmmiObject
typedef rpmrcObject_s rpmrcObject

Variables

PyObject * pyrpmError

Typedef Documentation

typedef struct hdrObject_s hdrObject
 

Definition at line 10 of file header-py.h.

Referenced by hdr_compare(), hdr_dealloc(), hdr_dsFromHeader(), hdr_dsOfHeader(), hdr_fiFromHeader(), hdr_subscript(), hdr_Wrap(), hdrCompressFilelist(), hdrExpandFilelist(), hdrFullFilelist(), hdrGetHeader(), hdrKeyList(), hdrLoad(), hdrSprintf(), hdrUnload(), rhnUnload(), rpmdb_subscript(), rpmMergeHeaders(), rpmReadHeaders(), rpmts_AddInstall(), and versionCompare().

typedef struct rpmdbObject_s rpmdbObject
 

Definition at line 12 of file rpmdb-py.h.

Referenced by rpmdb_dealloc(), rpmdb_length(), rpmdb_Match(), and rpmdb_subscript().

typedef struct rpmmiObject_s rpmmiObject
 

Definition at line 10 of file rpmmi-py.h.

Referenced by rpmmi_Count(), rpmmi_dealloc(), rpmmi_Instance(), rpmmi_iter(), rpmmi_iternext(), rpmmi_Next(), rpmmi_Pattern(), and rpmmi_Wrap().

typedef struct rpmrcObject_s rpmrcObject
 

Definition at line 10 of file rpmrc-py.h.


Function Documentation

void hdr_dealloc hdrObject s  )  [static]
 

Definition at line 433 of file header-py.c.

References _free(), hdrObject_s::fileList, hdrObject_s::h, hdrObject, headerFree(), hdrObject_s::linkList, and hdrObject_s::md5list.

PyObject* hdr_subscript hdrObject s,
PyObject *  item
[static]
 

Definition at line 463 of file header-py.c.

References hdrObject_s::h, hdrObject, HEADER_EXT_TAG, headerSprintfExtension, headerSprintfExtension_s::name, RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, rpmHeaderGetEntry(), RPMTAG_ARCH, RPMTAG_CHANGELOGTIME, RPMTAG_CONFLICTFLAGS, RPMTAG_CONFLICTNAME, RPMTAG_CONFLICTVERSION, RPMTAG_DESCRIPTION, RPMTAG_EPOCH, 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_NAME, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEVERSION, RPMTAG_OLDFILENAMES, RPMTAG_OS, RPMTAG_PROVIDEFLAGS, RPMTAG_PROVIDENAME, RPMTAG_PROVIDEVERSION, RPMTAG_RELEASE, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIRENAME, RPMTAG_REQUIREVERSION, RPMTAG_ROOT, RPMTAG_SUMMARY, RPMTAG_VERSION, headerSprintfExtension_s::tagFunction, tagNumFromPyObject(), headerSprintfExtension_s::u, and xstrcasecmp().

PyObject* hdrCompressFilelist hdrObject s,
PyObject *  args
[static]
 

Definition at line 240 of file header-py.c.

References compressFilelist(), hdrObject_s::h, and hdrObject.

PyObject* hdrExpandFilelist hdrObject s,
PyObject *  args
[static]
 

Definition at line 229 of file header-py.c.

References expandFilelist(), hdrObject_s::h, and hdrObject.

PyObject* hdrFullFilelist hdrObject s,
PyObject *  args
[static]
 

Definition at line 339 of file header-py.c.

References hdrObject_s::h, hdrObject, and mungeFilelist().

PyObject* hdrKeyList hdrObject s,
PyObject *  args
[static]
 

Definition at line 160 of file header-py.c.

References hdrObject_s::h, hdrObject, 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 353 of file header-py.c.

References _free(), errmsg_t, hdrObject_s::h, hdrObject, headerSprintf(), pyrpmError, rpmHeaderFormats, and rpmTagTable.

PyObject* hdrUnload hdrObject s,
PyObject *  args,
PyObject *  keywords
[static]
 

Definition at line 194 of file header-py.c.

References _free(), hdrObject_s::h, hdrObject, Header, headerCopy(), headerFree(), headerLink(), headerSizeof(), headerUnload(), and pyrpmError.

void mungeFilelist Header  h  )  [static]
 

Definition at line 252 of file header-py.c.

References _free(), compressFilelist(), Header, headerAddEntry(), headerIsEntry(), RPM_STRING_ARRAY_TYPE, rpmfiBuildFNames(), RPMTAG_BASENAMES, RPMTAG_DIRINDEXES, RPMTAG_DIRNAMES, and RPMTAG_OLDFILENAMES.

Referenced by hdrFullFilelist().

PyObject* rpmfd_alloc PyTypeObject *  subtype,
int  nitems
[static]
 

Definition at line 238 of file rpmfd-py.c.

void rpmfd_dealloc rpmfdObject s  )  [static]
 

Definition at line 169 of file rpmfd-py.c.

References Fclose(), rpmfdObject_s::fd, and rpmfdObject.

void rpmfd_free rpmfdObject s  )  [static]
 

Definition at line 225 of file rpmfd-py.c.

References Fclose(), rpmfdObject_s::fd, and rpmfdObject.

Referenced by rpmfd_new().

int rpmfd_init rpmfdObject s,
PyObject *  args,
PyObject *  kwds
[static]
 

Definition at line 193 of file rpmfd-py.c.

References Fclose(), rpmfdObject_s::fd, Ferror(), Fopen(), Fstrerror(), pyrpmError, and rpmfdObject.

Referenced by rpmfd_new().

rpmfdObject* rpmfd_new PyTypeObject *  subtype,
PyObject *  args,
PyObject *  kwds
[static]
 

Definition at line 251 of file rpmfd-py.c.

References rpmfdObject_s::fd, rpmfd_free(), rpmfd_init(), and rpmfdObject.

void rpmmi_dealloc rpmmiObject s  )  [static]
 

Definition at line 203 of file rpmmi-py.c.

References rpmmiObject_s::mi, rpmdbFreeIterator(), and rpmmiObject.

PyObject* rpmts_AddErase rpmtsObject s,
PyObject *  args
[static]
 

Todo:
Permit finer control (i.e. not just --allmatches) of deleted elments.

Definition at line 257 of file rpmts-py.c.

References Header, pyrpmError, rpmdbFreeIterator(), rpmdbGetIteratorCount(), rpmdbGetIteratorOffset(), RPMDBI_LABEL, RPMDBI_PACKAGES, rpmdbMatchIterator, rpmdbNextIterator(), rpmtsAddEraseElement(), rpmtsInitIterator(), rpmtsObject, rpmtsObject_s::ts, and uint_32.

PyObject* rpmts_AddInstall rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 211 of file rpmts-py.c.

References hdr_Type, hdrGetHeader(), hdrObject, rpmtsObject_s::keyList, rpmtsAddAvailableElement(), rpmtsAddInstallElement(), rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_alloc PyTypeObject *  subtype,
int  nitems
[static]
 

Definition at line 1507 of file rpmts-py.c.

References _rpmts_debug.

PyObject* rpmts_Check rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 355 of file rpmts-py.c.

References rpmProblem_s::altNEVR, fnpyKey, rpmProblem_s::key, rpmps_s::numProblems, rpmProblem_s::pkgNEVR, rpmps_s::probs, rpmalMakeIndex(), RPMDEP_SENSE_CONFLICTS, rpmProblem, rpmps, rpmpsFree(), rpmts_SolveCallback(), rpmtsCheck(), rpmtsObject, rpmtsProblems(), rpmtsSetSolveCallback(), rpmtsSolve(), rpmtsObject_s::ts, rpmtsCallbackType_s::tso, and rpmProblem_s::type.

PyObject* rpmts_Clean rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 496 of file rpmts-py.c.

References rpmtsClean(), rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_CloseDB rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 669 of file rpmts-py.c.

References rpmtsCloseDB(), rpmtsObject, and rpmtsObject_s::ts.

rpmtsObject* rpmts_Create PyObject *  self,
PyObject *  args
 

Definition at line 1596 of file rpmts-py.c.

References rpmtsObject_s::keyList, rpmExpandNumeric(), rpmts_Type, rpmtsCreate(), rpmtsObject, rpmtsSetRootDir(), rpmtsSetVSFlags(), rpmtsObject_s::scriptFd, rpmtsObject_s::ts, rpmtsObject_s::tsi, and rpmtsObject_s::tsiFilter.

void rpmts_dealloc rpmtsObject s  )  [static]
 

Definition at line 1413 of file rpmts-py.c.

References Fclose(), rpmtsObject_s::keyList, rpmtsFree(), rpmtsObject, rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.

PyObject* rpmts_Debug rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 168 of file rpmts-py.c.

References _rpmts_debug, rpmtsObject, and rpmtsObject_s::ts.

void rpmts_free rpmtsObject s  )  [static]
 

Definition at line 1488 of file rpmts-py.c.

References Fclose(), rpmtsObject_s::keyList, rpmtsFree(), rpmtsObject, rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.

Referenced by rpmts_new().

PyObject* rpmts_getattro PyObject *  o,
PyObject *  n
[static]
 

Definition at line 1428 of file rpmts-py.c.

PyObject* rpmts_GetKeys rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 965 of file rpmts-py.c.

References _free(), rpmtsGetKeys(), rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_HdrCheck rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 805 of file rpmts-py.c.

References _free(), headerCheck(), pyrpmError, rpmRC, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTTRUSTED, RPMRC_OK, rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_HdrFromFdno rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 755 of file rpmts-py.c.

References Fclose(), FD_t, fdDup(), hdr_Wrap(), Header, headerFree(), pyrpmError, rpmRC, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, rpmReadPackageFile(), rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_IDTXglob rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 562 of file rpmts-py.c.

References _free(), IDT_s::h, hdr_Wrap(), IDTindex_s::idt, IDT, IDTX, IDTXfree(), IDTXglob(), IDT_s::key, IDTindex_s::nidt, rpmExpand(), rpmTag, rpmtsObject, rpmtsObject_s::ts, IDT_s::u32, and IDT_s::val.

PyObject* rpmts_IDTXload rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 515 of file rpmts-py.c.

References IDT_s::h, hdr_Wrap(), IDT, IDTX, IDTXfree(), IDTXload(), IDT_s::instance, rpmTag, rpmtsObject, rpmtsObject_s::ts, IDT_s::u32, and IDT_s::val.

int rpmts_init rpmtsObject s,
PyObject *  args,
PyObject *  kwds
[static]
 

Definition at line 1462 of file rpmts-py.c.

References _rpmts_debug, rpmtsObject_s::keyList, rpmExpandNumeric(), rpmtsCreate(), rpmtsObject, rpmtsSetRootDir(), rpmtsSetVSFlags(), rpmtsObject_s::scriptFd, rpmtsObject_s::ts, rpmtsObject_s::tsi, and rpmtsObject_s::tsiFilter.

Referenced by rpmts_new().

PyObject* rpmts_InitDB rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 689 of file rpmts-py.c.

References rpmtsCloseDB(), rpmtsInitDB(), rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_iternext rpmtsObject s  )  [static]
 

Todo:
Add TR_ADDED filter to iterator.

Definition at line 1213 of file rpmts-py.c.

References rpmte, rpmte_Wrap(), rpmtsiFree, rpmtsiInit, rpmtsiNext(), rpmtsObject, rpmtsObject_s::ts, rpmtsObject_s::tsi, and rpmtsObject_s::tsiFilter.

Referenced by rpmts_Next().

rpmmiObject* rpmts_Match rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 1270 of file rpmts-py.c.

References rpmmi_Wrap(), rpmtsInitIterator(), rpmtsObject, rpmtsOpenDB(), tagNumFromPyObject(), and rpmtsObject_s::ts.

PyObject* rpmts_new PyTypeObject *  subtype,
PyObject *  args,
PyObject *  kwds
[static]
 

Definition at line 1519 of file rpmts-py.c.

References rpmts_free(), rpmts_init(), rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_Next rpmtsObject s  )  [static]
 

Todo:
Add TR_ADDED filter to iterator.

Definition at line 1247 of file rpmts-py.c.

References rpmts_iternext(), rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_OpenDB rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 649 of file rpmts-py.c.

References rpmtsObject, rpmtsOpenDB(), and rpmtsObject_s::ts.

PyObject* rpmts_Order rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 474 of file rpmts-py.c.

References rpmtsObject, rpmtsOrder(), and rpmtsObject_s::ts.

PyObject* rpmts_PgpImportPubkey rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 932 of file rpmts-py.c.

References pyrpmError, rpmcliImportPubkey(), rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_PgpPrtPkts rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 899 of file rpmts-py.c.

References pgpPrtPkts(), pyrpmError, rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_RebuildDB rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 711 of file rpmts-py.c.

References rpmtsObject, rpmtsRebuildDB(), and rpmtsObject_s::ts.

PyObject* rpmts_Rollback rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 612 of file rpmts-py.c.

References alloca(), INSTALL_FRESHEN, INSTALL_UPGRADE, rpmRollback(), rpmtransFlags, rpmtsObject, rpmtsSetFlags(), rpmtsObject_s::ts, uint_32, VERIFY_DIGEST, and VERIFY_SIGNATURE.

PyObject* rpmts_Run rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 1116 of file rpmts-py.c.

References _free(), rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, rpmtsObject_s::ignoreSet, rpmps_s::numProblems, rpmps_s::probs, rpmtsCallbackType_s::pythonError, rpmGetPath(), rpmProblem, rpmProblemString(), rpmps, rpmpsFree(), rpmsx, rpmsxFree(), rpmsxNew(), rpmtsCallback(), rpmtsObject, rpmtsProblems(), rpmtsREContext(), rpmtsRun(), rpmtsSELinuxEnabled(), rpmtsSetNotifyCallback(), rpmtsSetREContext(), rpmProblem_s::str1, rpmtsObject_s::ts, rpmtsCallbackType_s::tso, rpmProblem_s::type, and rpmProblem_s::ulong1.

int rpmts_setattro PyObject *  o,
PyObject *  n,
PyObject *  v
[static]
 

Definition at line 1436 of file rpmts-py.c.

References fdDup(), rpmtsObject, rpmtsSetScriptFd(), rpmtsObject_s::scriptFd, and rpmtsObject_s::ts.

PyObject* rpmts_SetColor rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 880 of file rpmts-py.c.

References rpmtsObject, rpmtsSetColor(), rpmtsObject_s::ts, and uint_32.

PyObject* rpmts_SetFlags rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 1080 of file rpmts-py.c.

References rpmtransFlags, rpmtsObject, rpmtsSetFlags(), and rpmtsObject_s::ts.

PyObject* rpmts_SetProbFilter rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 1096 of file rpmts-py.c.

References rpmtsObject_s::ignoreSet, rpmprobFilterFlags, rpmtsObject, and rpmtsObject_s::ts.

PyObject* rpmts_SetVSFlags rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 861 of file rpmts-py.c.

References rpmtsObject, rpmtsSetVSFlags(), rpmVSFlags, and rpmtsObject_s::ts.

int rpmts_SolveCallback rpmts  ts,
rpmds  ds,
const void *  data
[static]
 

Definition at line 317 of file rpmts-py.c.

References rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::pythonError, rpmdsDNEVR(), rpmdsEVR(), rpmdsFlags(), rpmdsN(), rpmdsTagN(), and rpmtsCallbackType_s::tso.

Referenced by rpmts_Check().

PyObject* rpmts_VerifyDB rpmtsObject s,
PyObject *  args
[static]
 

Definition at line 733 of file rpmts-py.c.

References rpmtsObject, rpmtsVerifyDB(), and rpmtsObject_s::ts.

void rpmtsAddAvailableElement rpmts  ts,
Header  h,
fnpyKey  key
[static]
 

Add package to universe of possible packages to install in transaction set.

Parameters:
ts transaction set
h header
key package private data

Definition at line 187 of file rpmts-py.c.

References _rpmts_debug, Header, RPMAL_NOMATCH, rpmalAdd(), rpmds, rpmdsFree(), rpmdsNew(), rpmfi, rpmfiFree(), rpmfiNew(), RPMTAG_BASENAMES, RPMTAG_PROVIDENAME, and rpmtsColor().

Referenced by rpmts_AddInstall().

void* rpmtsCallback const void *  hd,
const rpmCallbackType  what,
const unsigned long  amount,
const unsigned long  total,
const void *  pkgKey,
rpmCallbackData  data
[static]
 

Definition at line 1003 of file rpmts-py.c.

References rpmtsCallbackType_s::_save, rpmtsCallbackType_s::cb, rpmtsCallbackType_s::data, Fclose(), FD_t, fdDup(), Header, headerNVR(), and rpmtsCallbackType_s::pythonError.

Referenced by rpmts_Run().

long tagNumFromPyObject PyObject *  item  ) 
 

Definition at line 445 of file header-py.c.

References rpmTagTable, headerTagTableEntry_s::val, and xstrcasecmp().

Referenced by hdr_dsFromHeader(), hdr_fiFromHeader(), hdr_subscript(), rpmdb_Match(), rpmds_Single(), rpmmi_Pattern(), rpmte_DS(), rpmte_FI(), and rpmts_Match().


Variable Documentation

PyMappingMethods hdr_as_mapping [static]
 

Initial value:

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

Definition at line 649 of file header-py.c.

struct PyMethodDef hdr_methods[] [static]
 

Initial value:

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

    {"dsOfHeader",      (PyCFunction)hdr_dsOfHeader,    METH_VARARGS,
        NULL},
    {"dsFromHeader",    (PyCFunction)hdr_dsFromHeader,  METH_VARARGS,
        NULL},
    {"fiFromHeader",    (PyCFunction)hdr_fiFromHeader,  METH_VARARGS,
        NULL},

    {NULL,              NULL}           
}

Definition at line 392 of file header-py.c.

PyTypeObject hdr_Type
 

Definition at line 663 of file header-py.c.

Referenced by hdr_Wrap(), initrpm(), rpmts_AddInstall(), and versionCompare().

PyObject* pyrpmError
 

Definition at line 17 of file header-py.h.

Referenced by hdrLoad(), hdrSprintf(), hdrUnload(), initrpm(), rhnLoad(), rpmdb_subscript(), rpmfd_Fopen(), rpmfd_init(), rpmHeaderFromFile(), rpmMergeHeaders(), rpmmi_Wrap(), rpmReadHeaders(), rpmts_AddErase(), rpmts_HdrCheck(), rpmts_HdrFromFdno(), rpmts_PgpImportPubkey(), rpmts_PgpPrtPkts(), and setLogFile().

struct PyMethodDef rpmfd_methods[] [static]
 

Initial value:

 {
    {"Debug",   (PyCFunction)rpmfd_Debug,       METH_VARARGS,
        NULL},
    {"Fopen",   (PyCFunction)rpmfd_Fopen,       METH_VARARGS,
        NULL},
    {NULL,              NULL}           
}

Definition at line 155 of file rpmfd-py.c.

PyTypeObject rpmfd_Type
 

Definition at line 277 of file rpmfd-py.c.

Referenced by initrpm(), and rpmfd_Wrap().

struct PyMethodDef rpmfts_methods[] [static]
 

Initial value:

 {
    {"Debug",   (PyCFunction)rpmfts_Debug,      METH_VARARGS,
        NULL},
    {"open",    (PyCFunction)rpmfts_Open,       METH_VARARGS,
        NULL},
    {"read",    (PyCFunction)rpmfts_Read,       METH_VARARGS,
        NULL},
    {"children",(PyCFunction)rpmfts_Children,   METH_VARARGS,
        NULL},
    {"close",   (PyCFunction)rpmfts_Close,      METH_VARARGS,
        NULL},
    {"set",     (PyCFunction)rpmfts_Set,        METH_VARARGS,
        NULL},
    {NULL,              NULL}           
}

Definition at line 283 of file rpmfts-py.c.

PyTypeObject rpmfts_Type
 

Definition at line 522 of file rpmfts-py.c.

Referenced by initrpm().

struct PyMethodDef rpmmi_methods[] [static]
 

Initial value:

 {
    {"next",        (PyCFunction) rpmmi_Next,           METH_VARARGS,
"mi.next() -> hdr\n\
- Retrieve next header that matches. Iterate directly in python if possible.\n" },
    {"instance",    (PyCFunction) rpmmi_Instance,       METH_VARARGS,
        NULL },
    {"count",       (PyCFunction) rpmmi_Count,          METH_VARARGS,
        NULL },
    {"pattern",     (PyCFunction) rpmmi_Pattern,        METH_VARARGS,
"mi.pattern(TagN, mire_type, pattern)\n\
- Set a secondary match pattern on tags from retrieved header.\n" },
    {NULL,              NULL}           
}

Definition at line 186 of file rpmmi-py.c.

PyTypeObject rpmmi_Type
 

Definition at line 234 of file rpmmi-py.c.

Referenced by initrpm(), and rpmmi_Wrap().

PyTypeObject rpmrc_Type
 

Initial value:

 {
        PyObject_HEAD_INIT(&PyType_Type)
        0,                              
        "rpm.rc",                       
        sizeof(rpmrcObject),            
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0                               
}

Definition at line 375 of file rpmrc-py.c.

Referenced by initrpm().

struct PyMethodDef rpmte_methods[] [static]
 

Definition at line 312 of file rpmte-py.c.

PyTypeObject rpmte_Type
 

Definition at line 412 of file rpmte-py.c.

Referenced by initrpm(), and rpmte_Wrap().

char rpmts_doc[] [static]
 

Initial value:

""

Definition at line 1540 of file rpmts-py.c.

struct PyMethodDef rpmts_methods[] [static]
 

Definition at line 1324 of file rpmts-py.c.

PyTypeObject rpmts_Type
 

Definition at line 1546 of file rpmts-py.c.

Referenced by initrpm(), and rpmts_Create().


Generated on Tue Jan 27 18:26:08 2009 for rpm by  doxygen 1.3.9.1