rpm: rpmstrpool.h Source File

rpm 4.12.0.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

rpmstrpool.h
Go to the documentation of this file.
1 #ifndef _RPMSTRPOOL_H
2 #define _RPMSTRPOOL_H
3
4 #include <rpm/rpmtypes.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
14 rpmstrPool rpmstrPoolCreate(void);
15
22 rpmstrPool rpmstrPoolFree(rpmstrPool pool);
23
29 rpmstrPool rpmstrPoolLink(rpmstrPool pool);
30
39 void rpmstrPoolFreeze(rpmstrPool pool, int keephash);
40
47 void rpmstrPoolUnfreeze(rpmstrPool pool);
48
58 rpmsid rpmstrPoolId(rpmstrPool pool, const char *s, int create);
59
71 rpmsid rpmstrPoolIdn(rpmstrPool pool, const char *s, size_t slen, int create);
72
79 const char * rpmstrPoolStr(rpmstrPool pool, rpmsid sid);
80
89 size_t rpmstrPoolStrlen(rpmstrPool pool, rpmsid sid);
90
101 int rpmstrPoolStreq(rpmstrPool poolA, rpmsid sidA,
102 rpmstrPool poolB, rpmsid sidB);
103
110 rpmsid rpmstrPoolNumStr(rpmstrPool pool);
111
112 #ifdef __cplusplus
113 }
114 #endif
115
116 #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.
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.
rpmstrPool
struct rpmstrPool_s * rpmstrPool
Definition: rpmtypes.h:83
rpmsid
uint32_t rpmsid
Definition: rpmtypes.h:82
rpmstrPoolUnfreeze
void rpmstrPoolUnfreeze(rpmstrPool pool)
Unfreeze a string pool to allow new additions again.
rpmstrPoolStrlen
size_t rpmstrPoolStrlen(rpmstrPool pool, rpmsid sid)
Return length of a string by its pool id.
rpmstrPoolIdn
rpmsid rpmstrPoolIdn(rpmstrPool pool, const char *s, size_t slen, int create)
Look up the id of a string with predetermined length.
rpmstrPoolId
rpmsid rpmstrPoolId(rpmstrPool pool, const char *s, int create)
Look up the id of a string.
rpmstrPoolLink
rpmstrPool rpmstrPoolLink(rpmstrPool pool)
Reference a string pool.
rpmstrPoolFreeze
void rpmstrPoolFreeze(rpmstrPool pool, int keephash)
Freeze a string pool: new strings cannot be added to a frozen pool.
rpmstrPoolStreq
int rpmstrPoolStreq(rpmstrPool poolA, rpmsid sidA, rpmstrPool poolB, rpmsid sidB)
Compare two strings for equality by their ids.