rpmds-py.c File Reference
PYTHON-C Language Bindings.
`#include "system.h"`
`#include <rpmio.h>`
`#include <rpmiotypes.h>`
`#include <rpmtypes.h>`
`#include <rpmtag.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. More...
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

## Function Documentation

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

static

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

References rpmvercmp.

Referenced by rpmds_compare().

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

static

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

References _rpmds_debug.

static PyObject* rpmds_BT | ( | rpmdsObject * | s | ) |

static

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

References rpmdsObject_s::ds, and rpmdsBT().

static PyObject* rpmds_Color | ( | rpmdsObject * | s | ) |

static

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

References rpmdsObject_s::ds, and rpmdsColor().

static int rpmds_compare | ( | rpmdsObject * | a,
|  | rpmdsObject * | b
| ) |  |

static

Definition at line 82 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 212 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsCount().

static PyObject* rpmds_Cpuinfo | ( | rpmdsObject * | s | ) |

static

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

References rpmds_Wrap(), and rpmdsCpuinfo().

static void rpmds_dealloc | ( | rpmdsObject * | s | ) |

static

Definition at line 592 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 196 of file rpmds-py.c.

References _rpmds_debug.

static PyObject* rpmds_DNEVR | ( | rpmdsObject * | s | ) |

static

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

References rpmdsObject_s::ds, and rpmdsDNEVR().

static PyObject* rpmds_EVR | ( | rpmdsObject * | s | ) |

static

Definition at line 244 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 351 of file rpmds-py.c.

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

static PyObject* rpmds_Flags | ( | rpmdsObject * | s | ) |

static

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

References rpmdsObject_s::ds, and rpmdsFlags().

static void rpmds_free | ( | rpmdsObject * | s | ) |

static

Definition at line 694 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 616 of file rpmds-py.c.

static PyObject* rpmds_Getconf | ( | rpmdsObject * | s | ) |

static

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

References rpmds_Wrap(), and rpmdsGetconf().

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

static

Definition at line 662 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 134 of file rpmds-py.c.

static PyObject* rpmds_iternext | ( | rpmdsObject * | s | ) |

static

Definition at line 143 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 220 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsIx().

static PyObject* rpmds_Ldconfig | ( | rpmdsObject * | s | ) |

static

Definition at line 460 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 629 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 372 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsMerge().

static PyObject* rpmds_N | ( | rpmdsObject * | s | ) |

static

Definition at line 236 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 720 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 179 of file rpmds-py.c.

References rpmds_iternext().

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

static

Definition at line 314 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 27 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 603 of file rpmds-py.c.

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

static PyObject* rpmds_Refs | ( | rpmdsObject * | s | ) |

static

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

References rpmdsObject_s::ds, and rpmdsRefs().

static PyObject* rpmds_Result | ( | rpmdsObject * | s | ) |

static

Definition at line 292 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 109 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsCompare().

static PyObject* rpmds_Rpmlib | ( | rpmdsObject * | s | ) |

static

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

References rpmds_Wrap(), and rpmdsRpmlib().

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

static

Definition at line 389 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 622 of file rpmds-py.c.

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

static

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

References rpmdsObject_s::ds, and rpmdsSetNoPromote().

static PyObject* rpmds_Sort | ( | rpmdsObject * | s | ) |

static

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

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

static PyObject* rpmds_subscript | ( | rpmdsObject * | s,
|  | PyObject * | key
| ) |  |

static

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

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

static PyObject* rpmds_Sysinfo | ( | rpmdsObject * | s | ) |

static

Definition at line 431 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 268 of file rpmds-py.c.

References rpmdsObject_s::ds, and rpmdsTagN().

static PyObject* rpmds_Uname | ( | rpmdsObject * | s | ) |

static

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

References rpmds_Wrap(), and rpmdsUname().

## Variable Documentation

PyMappingMethods rpmds_as_mapping

static

Initial value:
= {
(lenfunc) rpmds_length,
(binaryfunc) rpmds_subscript,
(objobjargproc)0,
}

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

char rpmds_doc[]

static

Initial value:
=
""

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

struct PyMethodDef rpmds_methods[]

static

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