Expose XWarpPointer to lua as rootwin:warp_pointer, for region_do_warp_alt
[notion.git] / libtu / stringstore.h
blob5510ef41de0429e121f57d215f93995e76c501d1
1 /*
2 * libtu/stringstore.h
4 * Copyright (c) Tuomo Valkonen 2004-2007.
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 */
10 #ifndef LIBTU_STRINGSTORE_H
11 #define LIBTU_STRINGSTORE_H
13 typedef void* StringId;
15 #define STRINGID_NONE ((StringId)0)
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);
25 #endif /* LIBTU_STRINGSTORE_H */