summaryrefslogtreecommitdiff
path: root/src/strpool.h
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2008-01-29 16:14:03 +0000
committerMichael Schroeder <mls@suse.de>2008-01-29 16:14:03 +0000
commit5bb97e51a00ec15f1cb6bd6b5f3b4befd0263e1d (patch)
treee70c1d84501ba17323588be5a6d6e0970155285e /src/strpool.h
parentcf2556872b850f5d9c26975b5e287a4bf7ef38ca (diff)
downloadlibsolv-5bb97e51a00ec15f1cb6bd6b5f3b4befd0263e1d.tar.gz
libsolv-5bb97e51a00ec15f1cb6bd6b5f3b4befd0263e1d.tar.bz2
libsolv-5bb97e51a00ec15f1cb6bd6b5f3b4befd0263e1d.zip
- add key filtering to repo_write
- change repo_write so that it combines all available data - integrate attr_store into repodata - write storage parameter with every key, bump solv revision to 5 - don't create system rules for atoms - change repo_susetags to use repodata interface
Diffstat (limited to 'src/strpool.h')
-rw-r--r--src/strpool.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/strpool.h b/src/strpool.h
index c8429b9..dcab2ae 100644
--- a/src/strpool.h
+++ b/src/strpool.h
@@ -24,11 +24,15 @@ struct _Stringpool
Hashmask stringhashmask; // modulo value for hash table (size of table - 1)
};
-void stringpool_init (Stringpool *ss, const char *strs[]);
+void stringpool_init(Stringpool *ss, const char *strs[]);
+void stringpool_init_empty(Stringpool *ss);
+void stringpool_clone(Stringpool *ss, Stringpool *from);
+
Id stringpool_str2id (Stringpool *ss, const char *str, int create);
-Id stringpool_strn2id (Stringpool *ss, const char *str, unsigned len, int create);
+Id stringpool_strn2id (Stringpool *ss, const char *str, unsigned int len, int create);
void stringpool_shrink (Stringpool *ss);
+
static inline const char *
stringpool_id2str (Stringpool *ss, Id id)
{