rpm-build/lib/set.h

33 lines
653 B
C
Raw Normal View History

#ifndef SET_H
#define SET_H
2011-01-02 06:39:32 +03:00
/* Compare two set-versions.
* Return value:
* 1: set1 > set2
* 0: set1 == set2
* -1: set1 < set2 (aka set1 \subset set2)
* -2: set1 != set2
* -3: set1 decoder error
* -4: set2 decoder error
* For performance reasons, set1 should come on behalf of Provides.
*/
int rpmsetcmp(const char *set1, const char *set2);
/*
* API for creating set versions.
*/
2011-01-02 06:39:32 +03:00
// initialize new set
struct set *set_new(void);
2011-01-02 06:39:32 +03:00
// add new symbol to set
void set_add(struct set *set, const char *sym);
2011-01-02 06:39:32 +03:00
// make set-version
const char *set_fini(struct set *set, int bpp);
2011-01-02 06:39:32 +03:00
// free set
struct set *set_free(struct set *set);
#endif