]> git.decadent.org.uk Git - ion3.git/blob - libtu/stringstore.h
[svn-inject] Installing original source of ion3
[ion3.git] / libtu / stringstore.h
1 /*
2  * libtu/stringstore.h
3  *
4  * Copyright (c) Tuomo Valkonen 2004. 
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 void stringstore_free(StringId id);
21
22 #endif /* LIBTU_STRINGSTORE_H */