1 /*
2  * Sylpheed -- a gtk+ based, lightweight, and fast e-mail client
3  * Copyright (c) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the gnu general public license as published by
7  * the free software foundation; either version 3 of the license, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but without any warranty; without even the implied warranty of
12  * merchantability or fitness for a particular purpose.  see the
13  * gnu general public license for more details.
14  *
15  * You should have received a copy of the Gnu General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef STRINGTABLE_H__
20 #define STRINGTABLE_H__
21 
22 #include <glib.h>
23 
24 typedef struct {
25 	GHashTable *hash_table;
26 } StringTable;
27 
28 StringTable *string_table_new     (void);
29 void         string_table_free    (StringTable *table);
30 
31 gchar *string_table_insert_string (StringTable *table, const gchar *str);
32 void   string_table_free_string   (StringTable *table, const gchar *str);
33 
34 void   string_table_get_stats     (StringTable *table);
35 
36 #endif /* STRINGTABLE_H__ */
37