]> git.decadent.org.uk Git - ion3.git/blob - libtu/stringstore.h
[svn-upgrade] Integrating new upstream version, ion3 (20070203)
[ion3.git] / libtu / stringstore.h
1 /*
2  * libtu/stringstore.h
3  *
4  * Copyright (c) Tuomo Valkonen 2004-2007. 
5  *
6  * You may distribute and modify this library under the terms of either
7  * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
8  */
9
10 #ifndef LIBTU_STRINGSTORE_H
11 #define LIBTU_STRINGSTORE_H
12
13 typedef void* StringId;
14
15 #define STRINGID_NONE ((StringId)0)
16
17 extern const char *stringstore_get(StringId id);
18 extern StringId stringstore_find(const char *str);
19 extern StringId stringstore_alloc(const char *str);
20 extern StringId stringstore_find_n(const char *str, uint l);
21 extern StringId stringstore_alloc_n(const char *str, uint l);
22 extern void stringstore_free(StringId id);
23 extern void stringstore_ref(StringId id);
24
25 #endif /* LIBTU_STRINGSTORE_H */