# python/rpmds-py.c File Reference

`#include "system.h"`
`#include <rpmio.h>`
`#include <rpmcb.h>`
`#include <rpmlib.h>`
`#include "header-py.h"`
`#include "rpmds-py.h"`
`#include "debug.h"`

Include dependency graph for rpmds-py.c:

Go to the source code of this file.

## Functions
static void | rpmds_ParseEVR (char *evr, const char **ep, const char **vp, const char **rp)
| Split EVR into epoch, version, and release components.
static int | compare_values (const char *str1, const char *str2)
static int | rpmds_compare (rpmdsObject *a, rpmdsObject *b)
static PyObject * | rpmds_richcompare (rpmdsObject *a, rpmdsObject *b, int op)
static PyObject * | rpmds_iter (rpmdsObject *s)
static PyObject * | rpmds_iternext (rpmdsObject *s)
static void | rpmds_dealloc (rpmdsObject *s)
static int | rpmds_print (rpmdsObject *s, FILE *fp, int flags)
static PyObject * | rpmds_getattro (PyObject *o, PyObject *n)
static int | rpmds_setattro (PyObject *o, PyObject *n, PyObject *v)
static int | rpmds_length (rpmdsObject *s)
static PyObject * | rpmds_subscript (rpmdsObject *s, PyObject *key)
static int | rpmds_init (rpmdsObject *s, PyObject *args, PyObject *kwds)
static void | rpmds_free (rpmdsObject *s)
static PyObject * | rpmds_alloc (PyTypeObject *subtype, int nitems)
static PyObject * | rpmds_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
rpmds | dsFromDs (rpmdsObject *s)
rpmdsObject * | rpmds_Wrap (rpmds ds)
rpmdsObject * | rpmds_Single (PyObject *s, PyObject *args, PyObject *kwds)
rpmdsObject * | hdr_dsFromHeader (PyObject *s, PyObject *args, PyObject *kwds)
rpmdsObject * | hdr_dsOfHeader (PyObject *s)
Class: Rpmds
static PyObject * | rpmds_Next (rpmdsObject *s)
static PyObject * | rpmds_Debug (rpmdsObject *s, PyObject *args, PyObject *kwds)
static PyObject * | rpmds_Count (rpmdsObject *s)
static PyObject * | rpmds_Ix (rpmdsObject *s)
static PyObject * | rpmds_DNEVR (rpmdsObject *s)
static PyObject * | rpmds_N (rpmdsObject *s)
static PyObject * | rpmds_EVR (rpmdsObject *s)
static PyObject * | rpmds_Flags (rpmdsObject *s)
static PyObject * | rpmds_BT (rpmdsObject *s)
static PyObject * | rpmds_TagN (rpmdsObject *s)
static PyObject * | rpmds_Color (rpmdsObject *s)
static PyObject * | rpmds_Refs (rpmdsObject *s)
static PyObject * | rpmds_Result (rpmdsObject *s)
static PyObject * | rpmds_SetNoPromote (rpmdsObject *s, PyObject *args, PyObject *kwds)
static PyObject * | rpmds_Notify (rpmdsObject *s, PyObject *args, PyObject *kwds)
static PyObject * | rpmds_Sort (rpmdsObject *s)
static PyObject * | rpmds_Find (rpmdsObject *s, PyObject *args, PyObject *kwds)
static PyObject * | rpmds_Merge (rpmdsObject *s, PyObject *args, PyObject *kwds)
static PyObject * | rpmds_Search (rpmdsObject *s, PyObject *args, PyObject *kwds)
static PyObject * | rpmds_Cpuinfo (rpmdsObject *s)
static PyObject * | rpmds_Rpmlib (rpmdsObject *s)
static PyObject * | rpmds_Sysinfo (rpmdsObject *s)
static PyObject * | rpmds_Getconf (rpmdsObject *s)
static PyObject * | rpmds_Ldconfig (rpmdsObject *s)
static PyObject * | rpmds_Uname (rpmdsObject *s)
## Variables
static struct PyMethodDef | rpmds_methods []
static PyMappingMethods | rpmds_as_mapping
static char | rpmds_doc []
PyTypeObject | rpmds_Type

## Detailed Description

Definition in file rpmds-py.c.

## Function Documentation

static int compare_values | ( | const char * | str1,
|  | const char * | str2 |
| ) |  |  | `[static]`

Definition at line 69 of file rpmds-py.c.

References rpmvercmp.

static PyObject* rpmds_alloc | ( | PyTypeObject * | subtype,
|  | int | nitems |
| ) |  |  | `[static]`

Definition at line 702 of file rpmds-py.c.

References _rpmds_debug.

static PyObject* rpmds_BT | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 258 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsBT().

static PyObject* rpmds_Color | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 274 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsColor().

static int rpmds_compare | ( | rpmdsObject * | a,
|  | rpmdsObject * | b |
| ) |  |  | `[static]`

Definition at line 81 of file rpmds-py.c.

References _free(), compare_values(), rpmdsObject_s::ds, rpmds_ParseEVR(), rpmdsEVR(), and xstrdup().

static PyObject* rpmds_Count | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 210 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsCount().

static PyObject* rpmds_Cpuinfo | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 402 of file rpmds-py.c.

References rpmds_Wrap(), and rpmdsCpuinfo().

static void rpmds_dealloc | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 589 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsFree().

static PyObject* rpmds_Debug | ( | rpmdsObject * | s,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

Definition at line 195 of file rpmds-py.c.

References _rpmds_debug.

static PyObject* rpmds_DNEVR | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 226 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsDNEVR().

static PyObject* rpmds_EVR | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 242 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsEVR().

static PyObject* rpmds_Find | ( | rpmdsObject * | s,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

Definition at line 348 of file rpmds-py.c.

References rpmdsObject_s::ds, rpmdsFind(), rpmdsIx(), and rpmdsSetIx().

static PyObject* rpmds_Flags | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 250 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsFlags().

static void rpmds_free | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 690 of file rpmds-py.c.

References _rpmds_debug, rpmdsObject_s::ds, and rpmdsFree().

Referenced by rpmds_new().

static PyObject* rpmds_getattro | ( | PyObject * | o,
|  | PyObject * | n |
| ) |  |  | `[static]`

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

static PyObject* rpmds_Getconf | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 444 of file rpmds-py.c.

References rpmds_Wrap(), and rpmdsGetconf().

static int rpmds_init | ( | rpmdsObject * | s,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

Definition at line 658 of file rpmds-py.c.

References _rpmds_debug, rpmdsObject_s::active, rpmdsObject_s::ds, hdr_Type, hdrGetHeader(), rpmdsNew(), RPMTAG_REQUIRENAME, and tagNumFromPyObject().

Referenced by rpmds_new().

static PyObject* rpmds_iter | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 133 of file rpmds-py.c.

static PyObject* rpmds_iternext | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 142 of file rpmds-py.c.

References rpmdsObject_s::active, rpmdsObject_s::ds, rpmds_Wrap(), rpmdsEVR(), rpmdsFlags(), rpmdsInit(), rpmdsN(), rpmdsNext(), rpmdsSingle(), rpmdsTagN(), and xstrdup().

Referenced by rpmds_Next().

static PyObject* rpmds_Ix | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 218 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsIx().

static PyObject* rpmds_Ldconfig | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 457 of file rpmds-py.c.

References rpmds_Wrap(), rpmdsFreePRCO(), rpmdsFromPRCO(), rpmdsLdconfig(), rpmdsLink, rpmdsNewPRCO(), and RPMTAG_PROVIDENAME.

static int rpmds_length | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 625 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsCount().

static PyObject* rpmds_Merge | ( | rpmdsObject * | s,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

Definition at line 369 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsMerge().

static PyObject* rpmds_N | ( | rpmdsObject * | s | ) | `[static]`

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

References rpmdsObject_s::ds, and rpmdsN().

static PyObject* rpmds_new | ( | PyTypeObject * | subtype,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

Definition at line 715 of file rpmds-py.c.

References _rpmds_debug, rpmdsObject_s::ds, rpmds_free(), and rpmds_init().

static PyObject* rpmds_Next | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 178 of file rpmds-py.c.

References rpmds_iternext().

static PyObject* rpmds_Notify | ( | rpmdsObject * | s,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

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

References rpmdsObject_s::ds, and rpmdsNotify().

static void rpmds_ParseEVR | ( | char * | evr,
|  | const char ** | ep,
|  | const char ** | vp,
|  | const char ** | rp |
| ) |  |  | `[static]`

Split EVR into epoch, version, and release components.

Parameters:

  | evr | [epoch:]version[-release] string

Return values:

  | *ep | pointer to epoch
  | *vp | pointer to version
  | *rp | pointer to release

Definition at line 26 of file rpmds-py.c.

References xisdigit().

Referenced by rpmds_compare().

static int rpmds_print | ( | rpmdsObject * | s,
|  | FILE * | fp,
|  | int | flags |
| ) |  |  | `[static]`

Definition at line 599 of file rpmds-py.c.

References rpmdsObject_s::ds, rpmdsDNEVR(), rpmdsInit(), and rpmdsNext().

static PyObject* rpmds_Refs | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 282 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsRefs().

static PyObject* rpmds_Result | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 290 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsResult().

static PyObject* rpmds_richcompare | ( | rpmdsObject * | a,
|  | rpmdsObject * | b,
|  | int | op |
| ) |  |  | `[static]`

Definition at line 108 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsCompare().

static PyObject* rpmds_Rpmlib | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 415 of file rpmds-py.c.

References rpmds_Wrap(), and rpmdsRpmlib().

static PyObject* rpmds_Search | ( | rpmdsObject * | s,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

Definition at line 386 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsSearch().

static int rpmds_setattro | ( | PyObject * | o,
|  | PyObject * | n,
|  | PyObject * | v |
| ) |  |  | `[static]`

Definition at line 618 of file rpmds-py.c.

static PyObject* rpmds_SetNoPromote | ( | rpmdsObject * | s,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

Definition at line 297 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsSetNoPromote().

static PyObject* rpmds_Sort | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 332 of file rpmds-py.c.

References rpmdsObject_s::ds, rpmdsFree(), and rpmdsMerge().

static PyObject* rpmds_subscript | ( | rpmdsObject * | s,
|  | PyObject * | key |
| ) |  |  | `[static]`

Definition at line 633 of file rpmds-py.c.

References rpmdsObject_s::ds, rpmdsDNEVR(), rpmdsNext(), and rpmdsSetIx().

static PyObject* rpmds_Sysinfo | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 428 of file rpmds-py.c.

References rpmds_Wrap(), rpmdsFreePRCO(), rpmdsFromPRCO(), rpmdsLink, rpmdsNewPRCO(), rpmdsSysinfo(), and RPMTAG_PROVIDENAME.

static PyObject* rpmds_TagN | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 266 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsTagN().

static PyObject* rpmds_Uname | ( | rpmdsObject * | s | ) | `[static]`

Definition at line 473 of file rpmds-py.c.

References rpmds_Wrap(), and rpmdsUname().

## Variable Documentation

PyMappingMethods rpmds_as_mapping`[static]`

Initial value:

     {
            (inquiry) rpmds_length,
            (binaryfunc) rpmds_subscript,
            (objobjargproc)0,
    }

Definition at line 650 of file rpmds-py.c.

char rpmds_doc[]`[static]`

Initial value:

    ""

Definition at line 736 of file rpmds-py.c.

struct PyMethodDef rpmds_methods[]`[static]`

Definition at line 518 of file rpmds-py.c.