python/rpmfd-py.c File Reference

#include "system.h"
#include <glob.h>
#include <dirent.h>
#include <rpmio_internal.h>
#include <rpmlib.h>
#include "header-py.h"
#include "rpmfd-py.h"
#include "debug.h"

Go to the source code of this file.

Data Structures

struct  FDlist_t

Class: Rpmfd

static FDlistfdhead = NULL
static FDlistfdtail = NULL
static struct PyMethodDef rpmfd_methods []
static char rpmfd_doc []
PyTypeObject rpmfd_Type
typedef FDlist_t FDlist
static PyObject * rpmfd_Debug (rpmfdObject *s, PyObject *args, PyObject *kwds)
static int closeCallback (FILE *f)
static PyObject * rpmfd_Fopen (PyObject *s, PyObject *args, PyObject *kwds)
static void rpmfd_dealloc (rpmfdObject *s)
static PyObject * rpmfd_getattro (PyObject *o, PyObject *n)
static int rpmfd_setattro (PyObject *o, PyObject *n, PyObject *v)
static int rpmfd_init (rpmfdObject *s, PyObject *args, PyObject *kwds)
static void rpmfd_free (rpmfdObject *s)
static PyObject * rpmfd_alloc (PyTypeObject *subtype, int nitems)
static rpmfdObjectrpmfd_new (PyTypeObject *subtype, PyObject *args, PyObject *kwds)
rpmfdObjectrpmfd_Wrap (FD_t fd)

Variables

static int _rpmfd_debug = 1


Detailed Description

Definition in file rpmfd-py.c.


Typedef Documentation

typedef struct FDlist_t FDlist

Definition at line 46 of file rpmfd-py.c.


Function Documentation

static int closeCallback ( FILE *  f  )  [static]

Definition at line 67 of file rpmfd-py.c.

References _free(), FDlist_t::f, Fclose(), FDlist_t::fd, fdFree, fdhead, fdLink, FDlist_t::next, and FDlist_t::note.

Referenced by rpmfd_Fopen().

static PyObject* rpmfd_Debug ( rpmfdObject s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 31 of file rpmfd-py.c.

References _rpmfd_debug.

static PyObject* rpmfd_Fopen ( PyObject *  s,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 102 of file rpmfd-py.c.

References _free(), closeCallback(), FDlist_t::f, FDlist_t::fd, fdGetFp(), fdhead, fdLink, fdtail, Ferror(), Fopen(), Fstrerror(), FDlist_t::next, FDlist_t::note, pyrpmError, xmalloc(), and xstrdup().

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

Definition at line 184 of file rpmfd-py.c.

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

Definition at line 190 of file rpmfd-py.c.

rpmfdObject* rpmfd_Wrap ( FD_t  fd  ) 

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

References rpmfdObject_s::fd.


Variable Documentation

int _rpmfd_debug = 1 [static]

Definition at line 21 of file rpmfd-py.c.

Referenced by rpmfd_alloc(), rpmfd_Debug(), rpmfd_free(), rpmfd_init(), and rpmfd_new().

FDlist* fdhead = NULL [static]

Definition at line 59 of file rpmfd-py.c.

Referenced by closeCallback(), and rpmfd_Fopen().

FDlist* fdtail = NULL [static]

Definition at line 63 of file rpmfd-py.c.

Referenced by rpmfd_Fopen().

char rpmfd_doc[] [static]

Initial value:

""

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


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