rpmstrpool.h
Go to the documentation of this file.
#ifndef _RPMSTRPOOL_H
#define _RPMSTRPOOL_H
#include <rpm/rpmtypes.h>
#ifdef __cplusplus
extern "C" {
#endif
rpmstrPool rpmstrPoolCreate(void);
rpmstrPool rpmstrPoolFree(rpmstrPool pool);
rpmstrPool rpmstrPoolLink(rpmstrPool pool);
void rpmstrPoolFreeze(rpmstrPool pool, int keephash);
void rpmstrPoolUnfreeze(rpmstrPool pool);
rpmsid rpmstrPoolId(rpmstrPool pool, const char *s, int create);
rpmsid rpmstrPoolIdn(rpmstrPool pool, const char *s, size_t slen, int create);
const char * rpmstrPoolStr(rpmstrPool pool, rpmsid sid);
size_t rpmstrPoolStrlen(rpmstrPool pool, rpmsid sid);
int rpmstrPoolStreq(rpmstrPool poolA, rpmsid sidA,
rpmstrPool poolB, rpmsid sidB);
rpmsid rpmstrPoolNumStr(rpmstrPool pool);
#ifdef __cplusplus
}
#endif
#endif /* _RPMSIDPOOL_H */
rpmstrPoolNumStr
rpmsid rpmstrPoolNumStr(rpmstrPool pool)
Return the number of strings stored in the pool.
rpmstrPoolStreq
int rpmstrPoolStreq(rpmstrPool poolA, rpmsid sidA, rpmstrPool poolB, rpmsid sidB)
Compare two strings for equality by their ids.
rpmstrPoolUnfreeze
void rpmstrPoolUnfreeze(rpmstrPool pool)
Unfreeze a string pool to allow new additions again.
rpmstrPoolFree
rpmstrPool rpmstrPoolFree(rpmstrPool pool)
Free a string pool and its contents.
rpmstrPoolId
rpmsid rpmstrPoolId(rpmstrPool pool, const char *s, int create)
Look up the id of a string.
rpmstrPoolIdn
rpmsid rpmstrPoolIdn(rpmstrPool pool, const char *s, size_t slen, int create)
Look up the id of a string with predetermined length.
rpmstrPoolFreeze
void rpmstrPoolFreeze(rpmstrPool pool, int keephash)
Freeze a string pool: new strings cannot be added to a frozen pool.
rpmstrPoolCreate
rpmstrPool rpmstrPoolCreate(void)
Create a new, empty string pool.
rpmstrPoolStr
const char * rpmstrPoolStr(rpmstrPool pool, rpmsid sid)
Look up a string by its pool id.
rpmstrPoolLink
rpmstrPool rpmstrPoolLink(rpmstrPool pool)
Reference a string pool.
rpmstrPoolStrlen
size_t rpmstrPoolStrlen(rpmstrPool pool, rpmsid sid)
Return length of a string by its pool id.
rpmtypes.h
Typedefs for RPM abstract data types.
rpmsid
uint32_t rpmsid
Definition: rpmtypes.h:83
rpmstrPool
struct rpmstrPool_s * rpmstrPool
Definition: rpmtypes.h:84