rpm  5.4.14
Functions | Variables
rpmal-py.c File Reference
#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include "rpmal-py.h"
#include "rpmds-py.h"
#include "rpmfi-py.h"
#include "debug.h"
Include dependency graph for rpmal-py.c:

Go to the source code of this file.

Functions

 if (!PyArg_ParseTupleAndKeywords(args, kwds,"iOO!O!:Add", kwlist,&pkgKey,&key,&rpmds_Type,&dso,&rpmfi_Type,&fio)) return NULL
 
return Py_BuildValue ("i", pkgKey)
 
 rpmalDel (s->al, pkgKey)
 
 if (!PyArg_ParseTupleAndKeywords(args, kwds,"iOO!O!:AddProvides", kwlist,&pkgKey,&rpmds_Type,&dso)) return NULL
 
 rpmalAddProvides (s->al, pkgKey, dso->ds, 0)
 
rpmalObjectrpmal_Wrap (rpmal al)
 

Variables

static PyObject *rpmfiObjectfio
 
PyObject * key
 
alKey pkgKey = rpmalAdd(&s->al, pkgKey, key, dso->ds, fio->fi, 0)
 
return NULL
 
static struct PyMethodDef rpmal_methods []
 
static void
 
PyTypeObject rpmal_Type
 

Class: Rpmds

char * kwlist [] = {"packageKey", "key", "dso", "fileInfo", NULL}
 
return Py_None
 
 Py_INCREF (Py_None)
 

Function Documentation

if ( PyArg_ParseTupleAndKeywordsargs, kwds,"iOO!O!:Add", kwlist,&pkgKey,&key,&rpmds_Type,&dso,&rpmfi_Type,&fio)
if ( PyArg_ParseTupleAndKeywordsargs, kwds,"iOO!O!:AddProvides", kwlist,&pkgKey,&rpmds_Type,&dso)
return Py_BuildValue ( "i"  ,
pkgKey   
)
Py_INCREF ( Py_None  )
rpmalAddProvides ( s->  al,
pkgKey  ,
dso->  ds,
 
)
rpmalDel ( s->  al,
pkgKey   
)

Variable Documentation

PyObject* rpmfiObject* fio
Initial value:
{
cbInfo dso
Definition: rpmts-py.c:211

Definition at line 22 of file rpmal-py.c.

PyObject* key

Definition at line 25 of file rpmal-py.c.

char * kwlist = {"packageKey", "key", "dso", "fileInfo", NULL}
return NULL

Definition at line 50 of file rpmal-py.c.

static PyObject *alKey pkgKey = rpmalAdd(&s->al, pkgKey, key, dso->ds, fio->fi, 0)
return Py_None
struct PyMethodDef rpmal_methods[]
static
Initial value:
= {
{"add", (PyCFunction)rpmal_Add, METH_VARARGS|METH_KEYWORDS,
NULL},
{"delete", (PyCFunction)rpmal_Del, METH_VARARGS|METH_KEYWORDS,
NULL},
{"addProvides",(PyCFunction)rpmal_AddProvides, METH_VARARGS|METH_KEYWORDS,
NULL},
{"makeIndex",(PyCFunction)rpmal_MakeIndex, METH_NOARGS,
NULL},
{NULL, NULL }
}
return NULL
Definition: poptALL.c:613

Definition at line 95 of file rpmal-py.c.

void
static
Initial value:
{
if (s) {
s->al = rpmalFree(s->al);
}
}
static PyObject * rpmal_getattro(PyObject * o, PyObject * n)
{
return PyObject_GenericGetAttr(o, n);
}
static int rpmal_setattro(PyObject * o, PyObject * n, PyObject * v)
{
return PyObject_GenericSetAttr(o, n, v);
}
static char rpmal_doc[] =
""
char * o
Definition: macro.c:745
char * n
Definition: macro.c:744
const char * s
Definition: poptALL.c:734
PyObject_Del(s)
rpmal rpmalFree(rpmal al)
Destroy available list.

Definition at line 113 of file rpmal-py.c.