python/rpmds-py.c File Reference

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

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 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 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 PyObject * rpmds_Next (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 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)
rpmdsObjectrpmds_Wrap (rpmds ds)
rpmdsObjectrpmds_Single (PyObject *s, PyObject *args, PyObject *kwds)
rpmdsObjecthdr_dsFromHeader (PyObject *s, PyObject *args, PyObject *kwds)
rpmdsObjecthdr_dsOfHeader (PyObject *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 162 of file rpmds-py.c.

References rpmvercmp().

rpmds dsFromDs ( rpmdsObject s  ) 

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

References rpmdsObject_s::ds.

rpmdsObject* hdr_dsFromHeader ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)

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

References hdrGetHeader(), rpmds_Wrap(), rpmdsNew(), RPMTAG_REQUIRENAME, and tagNumFromPyObject().

rpmdsObject* hdr_dsOfHeader ( PyObject *  s  ) 

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

References hdrGetHeader(), rpmds_Wrap(), rpmdsThis(), RPMSENSE_EQUAL, and RPMTAG_PROVIDENAME.

static PyObject* rpmds_BT ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsBT().

static PyObject* rpmds_Color ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsColor().

static int rpmds_compare ( rpmdsObject a,
rpmdsObject b 
) [static]

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

References rpmdsObject_s::ds, and rpmdsCount().

static void rpmds_dealloc ( rpmdsObject s  )  [static]

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

References _rpmds_debug.

static PyObject* rpmds_DNEVR ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsDNEVR().

static PyObject* rpmds_EVR ( rpmdsObject s  )  [static]

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

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

static PyObject* rpmds_Flags ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsFlags().

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

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

static PyObject* rpmds_iter ( rpmdsObject s  )  [static]

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

static PyObject* rpmds_iternext ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsIx().

static int rpmds_length ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsMerge().

static PyObject* rpmds_N ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsN().

static PyObject* rpmds_Next ( rpmdsObject s  )  [static]

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

References rpmds_iternext().

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

Definition at line 298 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 24 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 457 of file rpmds-py.c.

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

static PyObject* rpmds_Refs ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsRefs().

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

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

References rpmdsObject_s::ds, and rpmdsCompare().

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

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

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

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

References rpmdsObject_s::ds, and rpmdsSetNoPromote().

rpmdsObject* rpmds_Single ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
)

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

References rpmds_Wrap(), rpmdsSingle(), RPMTAG_PROVIDENAME, tagNumFromPyObject(), and xstrdup().

static PyObject* rpmds_Sort ( rpmdsObject s  )  [static]

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

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

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

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

static PyObject* rpmds_TagN ( rpmdsObject s  )  [static]

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

References rpmdsObject_s::ds, and rpmdsTagN().

rpmdsObject* rpmds_Wrap ( rpmds  ds  ) 

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

References rpmdsObject_s::active, and rpmdsObject_s::ds.

Referenced by hdr_dsFromHeader(), hdr_dsOfHeader(), rpmds_iternext(), rpmds_Single(), and rpmte_DS().


Variable Documentation

PyMappingMethods rpmds_as_mapping [static]

Initial value:

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

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

char rpmds_doc[] [static]

Initial value:

""

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

struct PyMethodDef rpmds_methods[] [static]

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

PyTypeObject rpmds_Type

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

Referenced by init_rpm(), rpmal_Add(), and rpmal_AddProvides().


Generated on Fri Oct 12 08:44:56 2007 for rpm by  doxygen 1.5.2