1 /* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
2 * BSD-style license. Please see the COPYING file for details.
4 #ifndef _STRINGBUCKET_H
5 #define _STRINGBUCKET_H
13 struct stringbucket * stringbucket_open(const char *filename);
14 void stringbucket_close(struct stringbucket *sb);
15 int stringbucket_find(struct stringbucket *sb, const char *string);
16 int stringbucket_add(struct stringbucket *sb, const char *string);
17 int stringbucket_delete(struct stringbucket *sb, const char *string);
18 void stringbucket_iterate(struct stringbucket *sb, void (*iter)(char *string, void *stuff), void *stuff);
20 #endif //_STRINGBUCKET_H