# python/rpmfi-py.c File Reference

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

Include dependency graph for rpmfi-py.c:

Go to the source code of this file.

## Functions
static PyObject * | rpmfi_iter (rpmfiObject *s)
static PyObject * | rpmfi_iternext (rpmfiObject *s)
static void | rpmfi_dealloc (rpmfiObject *s)
static int | rpmfi_print (rpmfiObject *s, FILE *fp, int flags)
static PyObject * | rpmfi_getattro (PyObject *o, PyObject *n)
static int | rpmfi_setattro (PyObject *o, PyObject *n, PyObject *v)
static int | rpmfi_length (rpmfiObject *s)
static PyObject * | rpmfi_subscript (rpmfiObject *s, PyObject *key)
static int | rpmfi_init (rpmfiObject *s, PyObject *args, PyObject *kwds)
static void | rpmfi_free (rpmfiObject *s)
static PyObject * | rpmfi_alloc (PyTypeObject *subtype, int nitems)
static PyObject * | rpmfi_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
rpmfi | fiFromFi (rpmfiObject *s)
rpmfiObject * | rpmfi_Wrap (rpmfi fi)
rpmfiObject * | hdr_fiFromHeader (PyObject *s, PyObject *args, PyObject *kwds)
Class: Rpmfi
static PyObject * | rpmfi_Next (rpmfiObject *s)
static PyObject * | rpmfi_Debug (rpmfiObject *s, PyObject *args, PyObject *kwds)
static PyObject * | rpmfi_FC (rpmfiObject *s)
static PyObject * | rpmfi_FX (rpmfiObject *s)
static PyObject * | rpmfi_DC (rpmfiObject *s)
static PyObject * | rpmfi_DX (rpmfiObject *s)
static PyObject * | rpmfi_BN (rpmfiObject *s)
static PyObject * | rpmfi_DN (rpmfiObject *s)
static PyObject * | rpmfi_FN (rpmfiObject *s)
static PyObject * | rpmfi_FFlags (rpmfiObject *s)
static PyObject * | rpmfi_VFlags (rpmfiObject *s)
static PyObject * | rpmfi_FMode (rpmfiObject *s)
static PyObject * | rpmfi_FState (rpmfiObject *s)
static PyObject * | rpmfi_MD5 (rpmfiObject *s)
static PyObject * | rpmfi_FLink (rpmfiObject *s)
static PyObject * | rpmfi_FSize (rpmfiObject *s)
static PyObject * | rpmfi_FRdev (rpmfiObject *s)
static PyObject * | rpmfi_FMtime (rpmfiObject *s)
static PyObject * | rpmfi_FUser (rpmfiObject *s)
static PyObject * | rpmfi_FGroup (rpmfiObject *s)
static PyObject * | rpmfi_FColor (rpmfiObject *s)
static PyObject * | rpmfi_FClass (rpmfiObject *s)
## Variables
static struct PyMethodDef | rpmfi_methods []
static PyMappingMethods | rpmfi_as_mapping
static char | rpmfi_doc []
PyTypeObject | rpmfi_Type

## Detailed Description

Definition in file rpmfi-py.c.

## Function Documentation

static PyObject* rpmfi_BN | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 205 of file rpmfi-py.c.

References rpmfiObject_s::fi, rpmfiBN(), and xstrdup().

static PyObject* rpmfi_DC | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 189 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiDC().

static void rpmfi_dealloc | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 413 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFree().

static PyObject* rpmfi_Debug | ( | rpmfiObject * | s,
|  | PyObject * | args,
|  | PyObject * | kwds |
| ) |  |  | `[static]`

Definition at line 158 of file rpmfi-py.c.

References _rpmfi_debug.

static PyObject* rpmfi_DN | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 213 of file rpmfi-py.c.

References rpmfiObject_s::fi, rpmfiDN(), and xstrdup().

static PyObject* rpmfi_DX | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 197 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiDX().

static PyObject* rpmfi_FC | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 173 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFC().

static PyObject* rpmfi_FClass | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 340 of file rpmfi-py.c.

References rpmfiObject_s::fi, rpmfiFClass(), and xstrdup().

static PyObject* rpmfi_FColor | ( | rpmfiObject * | s | ) | `[static]`

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

References rpmfiObject_s::fi, and rpmfiFColor().

static PyObject* rpmfi_FFlags | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 229 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFFlags().

static PyObject* rpmfi_FGroup | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 324 of file rpmfi-py.c.

References rpmfiObject_s::fi, rpmfiFGroup(), and xstrdup().

static PyObject* rpmfi_FLink | ( | rpmfiObject * | s | ) | `[static]`

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

References rpmfiObject_s::fi, rpmfiFLink(), and xstrdup().

static PyObject* rpmfi_FMode | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 245 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFMode().

static PyObject* rpmfi_FMtime | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 308 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFMtime().

static PyObject* rpmfi_FN | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 221 of file rpmfi-py.c.

References rpmfiObject_s::fi, rpmfiFN(), and xstrdup().

static PyObject* rpmfi_FRdev | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 300 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFRdev().

static PyObject* rpmfi_FSize | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 292 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFSize().

static PyObject* rpmfi_FState | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 253 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFState().

static PyObject* rpmfi_FUser | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 316 of file rpmfi-py.c.

References rpmfiObject_s::fi, rpmfiFUser(), and xstrdup().

static PyObject* rpmfi_FX | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 181 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFX().

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

Definition at line 436 of file rpmfi-py.c.

static PyObject* rpmfi_iter | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 20 of file rpmfi-py.c.

static PyObject* rpmfi_iternext | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 30 of file rpmfi-py.c.

References rpmfiObject_s::active, alloca(), rpmfiObject_s::fi, rpmfiDigest(), rpmfiFFlags(), rpmfiFGroup(), rpmfiFInode(), rpmfiFMode(), rpmfiFMtime(), rpmfiFN(), rpmfiFNlink(), rpmfiFRdev(), rpmfiFSize(), rpmfiFState(), rpmfiFUser(), rpmfiInit(), rpmfiNext(), and rpmfiVFlags().

Referenced by rpmfi_Next().

static int rpmfi_length | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 449 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiFC().

static PyObject* rpmfi_MD5 | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 262 of file rpmfi-py.c.

References alloca(), rpmfiObject_s::fi, rpmfiDigest(), and xstrdup().

static PyObject* rpmfi_Next | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 120 of file rpmfi-py.c.

References rpmfi_iternext().

static int rpmfi_print | ( | rpmfiObject * | s,
|  | FILE * | fp,
|  | int | flags |
| ) |  |  | `[static]`

Definition at line 423 of file rpmfi-py.c.

References rpmfiObject_s::fi, rpmfiFN(), rpmfiInit(), and rpmfiNext().

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

Definition at line 442 of file rpmfi-py.c.

static PyObject* rpmfi_subscript | ( | rpmfiObject * | s,
|  | PyObject * | key |
| ) |  |  | `[static]`

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

References rpmfiObject_s::fi, rpmfiFN(), rpmfiSetFX(), and xstrdup().

static PyObject* rpmfi_VFlags | ( | rpmfiObject * | s | ) | `[static]`

Definition at line 237 of file rpmfi-py.c.

References rpmfiObject_s::fi, and rpmfiVFlags().

## Variable Documentation

PyMappingMethods rpmfi_as_mapping`[static]`

Initial value:

     {
            (inquiry) rpmfi_length,
            (binaryfunc) rpmfi_subscript,
            (objobjargproc)0,
    }

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

char rpmfi_doc[]`[static]`

Initial value:

    ""

Definition at line 560 of file rpmfi-py.c.

struct PyMethodDef rpmfi_methods[]`[static]`

Definition at line 354 of file rpmfi-py.c.