int npreds; /*!< No. of predecessors. */
int tree; /*!< Tree index. */
int depth; /*!< Depth in dependency tree. */
- int breadth; /*!< Breadth in dependency tree. */
unsigned int db_instance; /*!< Database instance (of removed pkgs) */
tsortInfo tsi; /*!< Dependency ordering chains. */
return odepth;
}
-int rpmteBreadth(rpmte te)
-{
- return (te != NULL ? te->depth : 0);
-}
-
-int rpmteSetBreadth(rpmte te, int nbreadth)
-{
- int obreadth = 0;
- if (te != NULL) {
- obreadth = te->breadth;
- te->breadth = nbreadth;
- }
- return obreadth;
-}
-
int rpmteNpreds(rpmte te)
{
return (te != NULL ? te->npreds : 0);
int rpmteSetDepth(rpmte te, int ndepth);
/** \ingroup rpmte
- * Retrieve dependency tree breadth of transaction element.
- * @param te transaction element
- * @return breadth
- */
-int rpmteBreadth(rpmte te);
-
-/** \ingroup rpmte
- * Set dependency tree breadth of transaction element.
- * @param te transaction element
- * @param nbreadth new breadth
- * @return previous breadth
- */
-int rpmteSetBreadth(rpmte te, int nbreadth);
-
-/** \ingroup rpmte
* Retrieve tsort no. of predecessors of transaction element.
* @param te transaction element
* @return no. of predecessors