rpm  4.16.1.2
rpmstrpool.h
Go to the documentation of this file.
1 #ifndef _RPMSTRPOOL_H
2 #define _RPMSTRPOOL_H
3 
11 #include <rpm/rpmtypes.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
22 
30 
37 
46 void rpmstrPoolFreeze(rpmstrPool pool, int keephash);
47 
55 
65 rpmsid rpmstrPoolId(rpmstrPool pool, const char *s, int create);
66 
78 rpmsid rpmstrPoolIdn(rpmstrPool pool, const char *s, size_t slen, int create);
79 
86 const char * rpmstrPoolStr(rpmstrPool pool, rpmsid sid);
87 
97 
109  rpmstrPool poolB, rpmsid sidB);
110 
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif /* _RPMSIDPOOL_H */
rpmstrPoolNumStr
rpmsid rpmstrPoolNumStr(rpmstrPool pool)
Return the number of strings stored in the pool.
rpmstrPoolFree
rpmstrPool rpmstrPoolFree(rpmstrPool pool)
Free a string pool and its contents.
rpmstrPool
struct rpmstrPool_s * rpmstrPool
Definition: rpmtypes.h:84
rpmsid
uint32_t rpmsid
Definition: rpmtypes.h:83
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.
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.
rpmstrPoolCreate
rpmstrPool rpmstrPoolCreate(void)
Create a new, empty string pool.
rpmstrPoolFreeze
void rpmstrPoolFreeze(rpmstrPool pool, int keephash)
Freeze a string pool: new strings cannot be added to a frozen pool.
rpmstrPoolUnfreeze
void rpmstrPoolUnfreeze(rpmstrPool pool)
Unfreeze a string pool to allow new additions again.
rpmstrPoolStreq
int rpmstrPoolStreq(rpmstrPool poolA, rpmsid sidA, rpmstrPool poolB, rpmsid sidB)
Compare two strings for equality by their ids.