build/reqprov.c, rpmbuild.h: export compare_deps()

This commit is contained in:
Alexey Tourbin 2011-02-07 04:28:18 +03:00
parent 0cf73c5886
commit 705b043ac2
2 changed files with 12 additions and 8 deletions

View File

@ -22,13 +22,6 @@ deps_opt_enabled (void)
return enabled;
}
typedef enum {
DEP_UN = 0, /* uncomparable */
DEP_ST = 1, /* stronger */
DEP_WK = -1, /* weaker */
DEP_EQ = 2 /* same */
} dep_compare_t;
static dep_compare_t compare_sense_flags (rpmTag tag, int cmp,
rpmsenseFlags a, rpmsenseFlags b)
{
@ -81,7 +74,7 @@ static dep_compare_t compare_sense_flags (rpmTag tag, int cmp,
#include "set.h"
static dep_compare_t compare_deps (rpmTag tag,
dep_compare_t compare_deps (rpmTag tag,
const char *Aevr, rpmsenseFlags Aflags,
const char *Bevr, rpmsenseFlags Bflags)
{

View File

@ -408,6 +408,17 @@ int addReqProv(/*@unused@*/Spec spec, Header h,
const char * depEVR, int index)
/*@modifies h @*/;
typedef enum {
DEP_UN = 0, /* uncomparable */
DEP_ST = 1, /* stronger */
DEP_WK = -1, /* weaker */
DEP_EQ = 2 /* same */
} dep_compare_t;
dep_compare_t compare_deps (rpmTag tag,
const char *Aevr, rpmsenseFlags Aflags,
const char *Bevr, rpmsenseFlags Bflags);
/** \ingroup rpmbuild
* Add rpmlib feature dependency.
* @param h header