fix bug 4773, 'remove obsolescent AC_C_CONST'
[claws.git] / src / common / stringtable.h
blob2612e1d64d264b5dfddff3d7a7b90f33a832e663
1 /*
2 * Claws Mail -- a gtk+ based, lightweight, and fast e-mail client
3 * Copyright (c) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
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.
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.
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/>.
19 #ifndef STRINGTABLE_H__
20 #define STRINGTABLE_H__
22 #include <glib.h>
24 typedef struct {
25 GHashTable *hash_table;
26 } StringTable;
28 StringTable *string_table_new (void);
29 void string_table_free (StringTable *table);
31 gchar *string_table_insert_string (StringTable *table, const gchar *str);
32 void string_table_free_string (StringTable *table, const gchar *str);
34 void string_table_get_stats (StringTable *table);
36 #endif /* STRINGTABLE_H__ */