lib/rpmlibprov.c File Reference

#include "system.h"
#include <rpmlib.h>
#include "rpmds.h"
#include "debug.h"

Go to the source code of this file.

Data Structures

struct  rpmlibProvides_s

Functions

void rpmShowRpmlibProvides (FILE *fp)
 Display current rpmlib feature provides.
int rpmCheckRpmlibProvides (const rpmds key)
 Check dependency against internal rpmlib feature provides.
int rpmGetRpmlibProvides (const char ***provNames, int **provFlags, const char ***provVersions)
 Return copy of rpmlib internal provides.

Variables

static struct rpmlibProvides_s rpmlibProvides []


Detailed Description

Definition in file rpmlibprov.c.


Function Documentation

int rpmCheckRpmlibProvides ( const rpmds  key  ) 

Check dependency against internal rpmlib feature provides.

Parameters:
key dependency
Returns:
1 if dependency overlaps, 0 otherwise

Definition at line 82 of file rpmlibprov.c.

References rpmlibProvides_s::featureEVR, rpmlibProvides_s::featureFlags, rpmlibProvides_s::featureName, rpmdsCompare(), rpmdsFree(), rpmdsSingle(), rpmlibProvides, and RPMTAG_PROVIDENAME.

Referenced by unsatisfiedDepend().

int rpmGetRpmlibProvides ( const char ***  provNames,
int **  provFlags,
const char ***  provVersions 
)

Return copy of rpmlib internal provides.

Return values:
provNames address of array of rpmlib internal provide names
provFlags address of array of rpmlib internal provide flags
provVersions address of array of rpmlib internal provide versions
Returns:
no. of entries

Definition at line 101 of file rpmlibprov.c.

References _free(), rpmlibProvides_s::featureEVR, rpmlibProvides_s::featureFlags, rpmlibProvides_s::featureName, rpmlibProvides, and xcalloc().


Variable Documentation

struct rpmlibProvides_s rpmlibProvides[] [static]

Definition at line 26 of file rpmlibprov.c.

Referenced by rpmCheckRpmlibProvides(), rpmGetRpmlibProvides(), and rpmShowRpmlibProvides().


Generated on Fri Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2