}
static PyObject *
-rpmds_Next(rpmdsObject * s)
-{
- PyObject * result;
-
- result = rpmds_iternext(s);
-
- if (result == NULL) {
- Py_RETURN_NONE;
- }
- return result;
-}
-
-static PyObject *
rpmds_SetNoPromote(rpmdsObject * s, PyObject * args, PyObject * kwds)
{
int nopromote;
"ds.Color -> Color - Return current Color.\n" },
{"Refs", (PyCFunction)rpmds_Refs, METH_NOARGS,
"ds.Refs -> Refs - Return current Refs.\n" },
- {"next", (PyCFunction)rpmds_Next, METH_NOARGS,
-"ds.next() -> (N, EVR, Flags)\n\
-- Retrieve next dependency triple.\n" },
{"SetNoPromote",(PyCFunction)rpmds_SetNoPromote, METH_VARARGS|METH_KEYWORDS,
NULL},
{"Notify", (PyCFunction)rpmds_Notify, METH_VARARGS|METH_KEYWORDS,
return result;
}
-static PyObject *
-rpmfi_Next(rpmfiObject * s)
-{
- PyObject * result = NULL;
-
- result = rpmfi_iternext(s);
-
- if (result == NULL) {
- Py_RETURN_NONE;
- }
-
- return result;
-}
-
-#ifdef NOTYET
-static PyObject *
-rpmfi_NextD(rpmfiObject * s)
-{
- Py_RETURN_NONE;
-}
-
-static PyObject *
-rpmfi_InitD(rpmfiObject * s)
-{
- Py_RETURN_NONE;
-}
-#endif
-
static struct PyMethodDef rpmfi_methods[] = {
{"Debug", (PyCFunction)rpmfi_Debug, METH_VARARGS|METH_KEYWORDS,
NULL},
NULL},
{"FClass", (PyCFunction)rpmfi_FClass, METH_NOARGS,
NULL},
- {"next", (PyCFunction)rpmfi_Next, METH_NOARGS,
-"fi.next() -> (FN, FSize, FMode, FMtime, FFlags, FRdev, FInode, FNlink, FState, VFlags, FUser, FGroup, FDigest))\n\
-- Retrieve next file info tuple.\n" },
-#ifdef NOTYET
- {"NextD", (PyCFunction)rpmfi_NextD, METH_NOARGS,
- NULL},
- {"InitD", (PyCFunction)rpmfi_InitD, METH_NOARGS,
- NULL},
-#endif
{NULL, NULL} /* sentinel */
};
/**
*/
static PyObject *
-rpmmi_Next(rpmmiObject * s)
-{
- PyObject * result;
-
- result = rpmmi_iternext(s);
-
- if (result == NULL) {
- Py_RETURN_NONE;
- }
- return result;
-}
-
-/**
- */
-static PyObject *
rpmmi_Instance(rpmmiObject * s)
{
int rc = 0;
/** \ingroup py_c
*/
static struct PyMethodDef rpmmi_methods[] = {
- {"next", (PyCFunction) rpmmi_Next, METH_NOARGS,
-"mi.next() -> hdr\n\
-- Retrieve next header that matches. Iterate directly in python if possible.\n" },
{"instance", (PyCFunction) rpmmi_Instance, METH_NOARGS,
NULL },
{"count", (PyCFunction) rpmmi_Count, METH_NOARGS,
}
/**
- * @todo Add TR_ADDED filter to iterator.
- */
-static PyObject *
-rpmts_Next(rpmtsObject * s)
-{
- PyObject * result;
-
-if (_rpmts_debug)
-fprintf(stderr, "*** rpmts_Next(%p) ts %p\n", s, s->ts);
-
- result = rpmts_iternext(s);
-
- if (result == NULL) {
- Py_RETURN_NONE;
- }
-
- return result;
-}
-
-/**
*/
static specObject *
spec_Parse(rpmtsObject * s, PyObject * args, PyObject * kwds)
{"dbMatch", (PyCFunction) rpmts_Match, METH_VARARGS|METH_KEYWORDS,
"ts.dbMatch([TagN, [key, [len]]]) -> mi\n\
- Create a match iterator for the default transaction rpmdb.\n" },
- {"next", (PyCFunction)rpmts_Next, METH_NOARGS,
-"ts.next() -> te\n\
-- Retrieve next transaction set element.\n" },
{NULL, NULL} /* sentinel */
};