root / src / stringtable.h @ 1
History | View | Annotate | Download (1.3 kB)
| 1 | /*
|
|---|---|
| 2 | * sylpheed -- a gtk+ based, lightweight, and fast e-mail client |
| 3 | * copyright (c) 1999-2001 hiroyuki yamamoto |
| 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 2 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, write to the free software |
| 17 | * foundation, inc., 59 temple place - suite 330, boston, ma 02111-1307, usa. |
| 18 | */ |
| 19 | |
| 20 | #ifndef STRINGTABLE_H__
|
| 21 | #define STRINGTABLE_H__
|
| 22 | |
| 23 | #include <glib.h> |
| 24 | |
| 25 | typedef struct { |
| 26 | GHashTable *hash_table; |
| 27 | } StringTable; |
| 28 | |
| 29 | StringTable *string_table_new (void);
|
| 30 | void string_table_free (StringTable *table);
|
| 31 | |
| 32 | gchar *string_table_lookup_string (StringTable *table, const gchar *str);
|
| 33 | gchar *string_table_insert_string (StringTable *table, const gchar *str);
|
| 34 | void string_table_free_string (StringTable *table, const gchar *str); |
| 35 | |
| 36 | void string_table_get_stats (StringTable *table);
|
| 37 | |
| 38 | #endif /* STRINGTABLE_H__ */ |