32 lines
585 B
C
32 lines
585 B
C
#ifndef SET_H
|
|
#define SET_H
|
|
|
|
/* 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
|
|
*/
|
|
int rpmsetcmp(const char *set1, const char *set2);
|
|
|
|
/*
|
|
* API for creating set versions.
|
|
*/
|
|
|
|
// initialize new set
|
|
struct set *set_new(void);
|
|
|
|
// add new symbol to set
|
|
void set_add(struct set *set, const char *sym);
|
|
|
|
// make set-version
|
|
const char *set_fini(struct set *set, int bpp);
|
|
|
|
// free set
|
|
struct set *set_free(struct set *set);
|
|
|
|
#endif
|