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

python/rpmfd-py.c File Reference

More...

#include "system.h"
#include "Python.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

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

Variables

int _rpmfd_debug = 1


Detailed Description

Definition in file rpmfd-py.c.


Typedef Documentation

typedef struct FDlist_t FDlist
 

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


Function Documentation

int closeCallback FILE *    f [static]
 

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

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

Referenced by rpmfd_Fopen().

PyObject* rpmfd_Debug rpmfdObject   s,
PyObject *    args
[static]
 

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

References _rpmfd_debug.

PyObject* rpmfd_Fopen PyObject *    s,
PyObject *    args
[static]
 

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

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

rpmfdObject* rpmfd_Wrap FD_t    fd
 

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

References rpmfdObject_s::fd, and rpmfd_Type.


Variable Documentation

int _rpmfd_debug = 1 [static]
 

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

Referenced by rpmfd_Debug().

FDlist* fdhead = NULL [static]
 

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

FDlist* fdtail = NULL [static]
 

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

char rpmfd_doc[] [static]
 

Initial value:

""

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


Generated on Sun Oct 26 13:02:06 2003 for rpm by doxygen1.2.18