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

# python/rpmds-py.c File Reference

More...

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

Go to the source code of this file.

## Functions

PyObject * | rpmds_Debug (rpmdsObject *s, PyObject *args)
PyObject * | rpmds_Count (rpmdsObject *s, PyObject *args)
PyObject * | rpmds_Ix (rpmdsObject *s, PyObject *args)
PyObject * | rpmds_DNEVR (rpmdsObject *s, PyObject *args)
PyObject * | rpmds_N (rpmdsObject *s, PyObject *args)
PyObject * | rpmds_EVR (rpmdsObject *s, PyObject *args)
PyObject * | rpmds_Flags (rpmdsObject *s, PyObject *args)
PyObject * | rpmds_TagN (rpmdsObject *s, PyObject *args)
int | rpmds_compare (rpmdsObject *a, rpmdsObject *b)
PyObject * | rpmds_iter (rpmdsObject *s)
PyObject * | rpmds_iternext (rpmdsObject *s)
PyObject * | rpmds_Next (rpmdsObject *s, PyObject *args)
void | rpmds_dealloc (rpmdsObject *s)
int | rpmds_print (rpmdsObject *s, FILE *fp, int flags)
PyObject * | rpmds_getattr (rpmdsObject *s, char *name)
int | rpmds_length (rpmdsObject *s)
PyObject * | rpmds_subscript (rpmdsObject *s, PyObject *key)
rpmds | dsFromDs (rpmdsObject *s)
rpmdsObject * | rpmds_Wrap (rpmds ds)
rpmdsObject * | rpmds_Single (PyObject *s, PyObject *args)
rpmdsObject * | hdr_dsFromHeader (PyObject *s, PyObject *args)
rpmdsObject * | hdr_dsOfHeader (PyObject *s, PyObject *args)

## Variables

PyMethodDef | rpmds_methods []
PyMappingMethods | rpmds_as_mapping
char | rpmds_doc []
PyTypeObject | rpmds_Type

## Detailed Description

Definition in file rpmds-py.c.

## Function Documentation

rpmds dsFromDs | ( | rpmdsObject * | ds | ) |

| Definition at line 332 of file rpmds-py.c. References rpmdsObject_s::ds, and rpmds.

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

| Definition at line 371 of file rpmds-py.c. References hdrGetHeader, rpmds_Wrap, rpmdsNew, rpmTag, RPMTAG_REQUIRENAME, and tagNumFromPyObject.

rpmdsObject* hdr_dsOfHeader | ( | PyObject * | s,
|  | PyObject * | args
| ) |

| Definition at line 391 of file rpmds-py.c. References hdrGetHeader, rpmds_Wrap, rpmdsThis, RPMSENSE_EQUAL, and RPMTAG_PROVIDENAME.

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

| Definition at line 89 of file rpmds-py.c. References rpmdsCompare.

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

| Definition at line 33 of file rpmds-py.c. References rpmdsCount.

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

| Definition at line 216 of file rpmds-py.c. References rpmdsFree.

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

| Definition at line 23 of file rpmds-py.c.

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

| Definition at line 49 of file rpmds-py.c. References rpmdsDNEVR.

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

| Definition at line 65 of file rpmds-py.c. References rpmdsEVR.

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

| Definition at line 73 of file rpmds-py.c. References rpmdsFlags.

PyObject* rpmds_getattr | ( | rpmdsObject * | s,
|  | char * | name
| ) | `[static]`

| Definition at line 240 of file rpmds-py.c. References rpmds_methods.

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

| Definition at line 96 of file rpmds-py.c.

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

| Definition at line 104 of file rpmds-py.c. References N, rpmdsEVR, rpmdsFlags, rpmdsInit, rpmdsN, and rpmdsNext. Referenced by rpmds_Next.

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

| Definition at line 41 of file rpmds-py.c. References rpmdsIx.

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

| Definition at line 247 of file rpmds-py.c. References rpmdsCount.

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

| Definition at line 57 of file rpmds-py.c. References rpmdsN.

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

| Definition at line 141 of file rpmds-py.c. References rpmds_iternext.

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

| Definition at line 226 of file rpmds-py.c. References rpmdsDNEVR, rpmdsInit, and rpmdsNext.

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

| Definition at line 350 of file rpmds-py.c. References N, rpmds_Wrap, rpmdsSingle, RPMTAG_PROVIDENAME, and tagNumFromPyObject.

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

| Definition at line 254 of file rpmds-py.c. References rpmdsDNEVR, and rpmdsSetIx.

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

| Definition at line 81 of file rpmds-py.c. References rpmdsTagN.

rpmdsObject* rpmds_Wrap | ( | rpmds | ds | ) |

| Definition at line 338 of file rpmds-py.c. References rpmdsObject_s::active, rpmdsObject_s::ds, rpmds, and rpmds_Type.

## Variable Documentation

PyMappingMethods rpmds_as_mapping`[static]`

Initial value:

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

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

char rpmds_doc[]`[static]`

Initial value:

    ""

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

struct PyMethodDef rpmds_methods[]`[static]`

Initial value:

     {
     {"Debug",      (PyCFunction)rpmds_Debug,       METH_VARARGS,
            NULL},
     {"Count",      (PyCFunction)rpmds_Count,       METH_VARARGS,
            "ds.Count -> Count      - Return no. of elements.\n" },
     {"Ix",         (PyCFunction)rpmds_Ix,          METH_VARARGS,
            "ds.Ix -> Ix            - Return current element index.\n" },
     {"DNEVR",      (PyCFunction)rpmds_DNEVR,       METH_VARARGS,
            "ds.DNEVR -> DNEVR      - Return current DNEVR.\n" },
     {"N",          (PyCFunction)rpmds_N,           METH_VARARGS,
            "ds.N -> N              - Return current N.\n" },
     {"EVR",        (PyCFunction)rpmds_EVR,         METH_VARARGS,
            "ds.EVR -> EVR          - Return current EVR.\n" },
     {"Flags",      (PyCFunction)rpmds_Flags,       METH_VARARGS,
            "ds.Flags -> Flags      - Return current Flags.\n" },
     {"TagN",       (PyCFunction)rpmds_TagN,        METH_VARARGS,
            "ds.TagN -> TagN        - Return current TagN.\n" },
     {"next",       (PyCFunction)rpmds_Next,        METH_VARARGS,
    "ds.next() -> (N, EVR, Flags)\n\
    - Retrieve next dependency triple.\n" },

     {NULL,         NULL}
    }

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

Referenced by rpmds_getattr.

PyTypeObject rpmds_Type

| Definition at line 282 of file rpmds-py.c. Referenced by rpmds_Wrap.