rpm  5.4.10
Macros | Functions | Variables
rpmmodule.c File Reference
#include "system.h"
#include <rpmio_internal.h>
#include <rpmcb.h>
#include <rpmsq.h>
#include <argv.h>
#include <rpmtag.h>
#include <rpmevr.h>
#include <rpmdb.h>
#include <rpmcli.h>
#include "legacy.h"
#include "misc.h"
#include "header-py.h"
#include "rpmal-py.h"
#include "rpmds-py.h"
#include "rpmfd-py.h"
#include "rpmfts-py.h"
#include "rpmfi-py.h"
#include "rpmkeyring-py.h"
#include "rpmmacro-py.h"
#include "rpmmi-py.h"
#include "rpmps-py.h"
#include "rpmtd-py.h"
#include "rpmte-py.h"
#include "rpmts-py.h"
#include "spec-py.h"
#include "debug.h"
Include dependency graph for rpmmodule.c:

Go to the source code of this file.

Macros

#define _RPMTAG_INTERNAL
 
#define _RPMEVR_INTERNAL
 
#define REGISTER_ENUM(val)
 

Functions

static void rpm_exithook (void)
 
static void addRpmTags (PyObject *module)
 
void init_rpm (void)
 

Variables

static PyMethodDef rpmModuleMethods []
 
static char rpm__doc__ []
 

Module: rpm

PyObject * pyrpmError
 
sigset_t rpmsqCaught
 
static PyObject * archScore (PyObject *s, PyObject *args, PyObject *kwds)
 
static PyObject * platformScore (PyObject *s, PyObject *args, PyObject *kwds)
 
static PyObject * signalsCaught (PyObject *s, PyObject *check)
 
static PyObject * checkSignals (PyObject *s, PyObject *args)
 
static PyObject * setLogFile (PyObject *s, PyObject *args, PyObject *kwds)
 
static PyObject * setVerbosity (PyObject *s, PyObject *args, PyObject *kwds)
 
static PyObject * setEpochPromote (PyObject *s, PyObject *args, PyObject *kwds)
 
static PyObject * setStats (PyObject *s, PyObject *args, PyObject *kwds)
 

Macro Definition Documentation

§ _RPMEVR_INTERNAL

#define _RPMEVR_INTERNAL

Definition at line 14 of file rpmmodule.c.

§ _RPMTAG_INTERNAL

#define _RPMTAG_INTERNAL

Definition at line 12 of file rpmmodule.c.

§ REGISTER_ENUM

#define REGISTER_ENUM (   val)
Value:
PyDict_SetItemString(d, #val, o=PyInt_FromLong( val )); \
Py_XDECREF(o);

Referenced by init_rpm().

Function Documentation

§ addRpmTags()

static void addRpmTags ( PyObject *  module)
static

Definition at line 289 of file rpmmodule.c.

References rpmHeaderFormats, and rpmTagTable.

Referenced by init_rpm().

§ archScore()

static PyObject* archScore ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 57 of file rpmmodule.c.

References _free(), platform, rpmExpand(), and rpmPlatformScore().

§ checkSignals()

static PyObject* checkSignals ( PyObject *  s,
PyObject *  args 
)
static

Definition at line 133 of file rpmmodule.c.

References rpmdbCheckSignals().

§ init_rpm()

void init_rpm ( void  )

Definition at line 361 of file rpmmodule.c.

References addRpmTags(), hdr_Type, pyrpmError, REGISTER_ENUM, rpm__doc__, rpm_exithook(), RPMAL_NOMATCH, rpmal_Type, RPMCALLBACK_CPIO_ERROR, RPMCALLBACK_INST_CLOSE_FILE, RPMCALLBACK_INST_OPEN_FILE, RPMCALLBACK_INST_PROGRESS, RPMCALLBACK_INST_START, RPMCALLBACK_REPACKAGE_PROGRESS, RPMCALLBACK_REPACKAGE_START, RPMCALLBACK_REPACKAGE_STOP, RPMCALLBACK_SCRIPT_ERROR, RPMCALLBACK_SCRIPT_START, RPMCALLBACK_SCRIPT_STOP, RPMCALLBACK_TRANS_PROGRESS, RPMCALLBACK_TRANS_START, RPMCALLBACK_TRANS_STOP, RPMCALLBACK_UNINST_PROGRESS, RPMCALLBACK_UNINST_START, RPMCALLBACK_UNINST_STOP, RPMCALLBACK_UNKNOWN, RPMCALLBACK_UNPACK_ERROR, RPMDBI_PACKAGES, RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, RPMDEPS_FLAG_ADDINDEPS, RPMDEPS_FLAG_ANACONDA, RPMDEPS_FLAG_DEPLOOPS, RPMDEPS_FLAG_NOCONFLICTS, RPMDEPS_FLAG_NOLINKTOS, RPMDEPS_FLAG_NOOBSOLETES, RPMDEPS_FLAG_NOPARENTDIRS, RPMDEPS_FLAG_NOREQUIRES, RPMDEPS_FLAG_NOSUGGEST, RPMDEPS_FLAG_NOUPGRADE, rpmds_Type, rpmfd_Type, rpmfi_Type, RPMFILE_CONFIG, RPMFILE_DOC, RPMFILE_EXCLUDE, RPMFILE_GHOST, RPMFILE_ICON, RPMFILE_LICENSE, RPMFILE_MISSINGOK, RPMFILE_NOREPLACE, RPMFILE_PUBKEY, RPMFILE_README, RPMFILE_STATE_NETSHARED, RPMFILE_STATE_NORMAL, RPMFILE_STATE_NOTINSTALLED, RPMFILE_STATE_REPLACED, RPMFILE_STATE_WRONGCOLOR, RPMFILE_UNPATCHED, rpmfts_Type, RPMLOG_ALERT, RPMLOG_CRIT, RPMLOG_DEBUG, RPMLOG_EMERG, RPMLOG_ERR, RPMLOG_INFO, RPMLOG_NOTICE, RPMLOG_WARNING, rpmmi_Type, RPMMIRE_DEFAULT, RPMMIRE_GLOB, RPMMIRE_REGEX, RPMMIRE_STRCMP, rpmModuleMethods, RPMPROB_BADARCH, RPMPROB_BADOS, RPMPROB_BADPRETRANS, RPMPROB_BADRELOCATE, RPMPROB_CONFLICT, RPMPROB_DISKNODES, RPMPROB_DISKSPACE, RPMPROB_FILE_CONFLICT, RPMPROB_FILTER_DISKNODES, RPMPROB_FILTER_DISKSPACE, RPMPROB_FILTER_FORCERELOCATE, RPMPROB_FILTER_IGNOREARCH, RPMPROB_FILTER_IGNOREOS, RPMPROB_FILTER_OLDPACKAGE, RPMPROB_FILTER_REPLACENEWFILES, RPMPROB_FILTER_REPLACEOLDFILES, RPMPROB_FILTER_REPLACEPKG, RPMPROB_NEW_FILE_CONFLICT, RPMPROB_OLDPACKAGE, RPMPROB_PKG_INSTALLED, RPMPROB_REQUIRES, rpmps_Type, rpmReadConfigFiles(), RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, RPMSENSE_NOTEQUAL, RPMSENSE_PREREQ, rpmte_Type, RPMTRANS_FLAG_ALLFILES, RPMTRANS_FLAG_BUILD_PROBS, RPMTRANS_FLAG_JUSTDB, RPMTRANS_FLAG_NOCONFIGS, RPMTRANS_FLAG_NODOCS, RPMTRANS_FLAG_NOFDIGESTS, RPMTRANS_FLAG_NOPOST, RPMTRANS_FLAG_NOPOSTUN, RPMTRANS_FLAG_NOPRE, RPMTRANS_FLAG_NOPREUN, RPMTRANS_FLAG_NORPMDB, RPMTRANS_FLAG_NOSCRIPTS, RPMTRANS_FLAG_NOTRIGGERIN, RPMTRANS_FLAG_NOTRIGGERPOSTUN, RPMTRANS_FLAG_NOTRIGGERPREIN, RPMTRANS_FLAG_NOTRIGGERS, RPMTRANS_FLAG_NOTRIGGERUN, RPMTRANS_FLAG_REPACKAGE, RPMTRANS_FLAG_TEST, rpmts_Type, RPMVSF_DEFAULT, RPMVSF_NEEDPAYLOAD, RPMVSF_NODSA, RPMVSF_NODSAHEADER, RPMVSF_NOHDRCHK, RPMVSF_NOMD5, RPMVSF_NOMD5HEADER, RPMVSF_NORSA, RPMVSF_NORSAHEADER, RPMVSF_NOSHA1, RPMVSF_NOSHA1HEADER, spec_Type, TR_ADDED, TR_REMOVED, VERIFY_DIGEST, and VERIFY_SIGNATURE.

§ platformScore()

static PyObject* platformScore ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 81 of file rpmmodule.c.

References platform, and rpmPlatformScore().

§ rpm_exithook()

static void rpm_exithook ( void  )
static

Definition at line 281 of file rpmmodule.c.

References rpmdbCheckTerminate().

Referenced by init_rpm().

§ setEpochPromote()

static PyObject* setEpochPromote ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 187 of file rpmmodule.c.

References _rpmds_nopromote.

§ setLogFile()

static PyObject* setLogFile ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 143 of file rpmmodule.c.

References pyrpmError, and rpmlogSetFile().

§ setStats()

static PyObject* setStats ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 201 of file rpmmodule.c.

References _rpmts_stats.

§ setVerbosity()

static PyObject* setVerbosity ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 170 of file rpmmodule.c.

References rpmSetVerbosity.

§ signalsCaught()

static PyObject* signalsCaught ( PyObject *  s,
PyObject *  check 
)
static

Definition at line 98 of file rpmmodule.c.

References rpmsqCaught.

Variable Documentation

§ pyrpmError

PyObject* pyrpmError

§ rpm__doc__

char rpm__doc__[]
static
Initial value:
=
""

Definition at line 355 of file rpmmodule.c.

Referenced by init_rpm().

§ rpmModuleMethods

PyMethodDef rpmModuleMethods[]
static

Definition at line 216 of file rpmmodule.c.

Referenced by init_rpm().

§ rpmsqCaught

sigset_t rpmsqCaught

Definition at line 352 of file rpmsq.c.

Referenced by rpmdbCheckSignals(), rpmdbCheckTerminate(), and signalsCaught().