1 /* 2 * e-poolv.h 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but 9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 11 * for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public License 14 * along with this program; if not, see <http://www.gnu.org/licenses/>. 15 * 16 */ 17 18 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION) 19 #error "Only <e-util/e-util.h> should be included directly." 20 #endif 21 22 #ifndef E_POOLV_H 23 #define E_POOLV_H 24 25 /* This was moved out of libedataserver since only MessageList uses it. */ 26 27 #include <glib.h> 28 29 G_BEGIN_DECLS 30 31 typedef struct _EPoolv EPoolv; 32 33 EPoolv * e_poolv_new (guint size); 34 EPoolv * e_poolv_set (EPoolv *poolv, 35 gint index, 36 gchar *str, 37 gint freeit); 38 const gchar * e_poolv_get (EPoolv *poolv, 39 gint index); 40 void e_poolv_destroy (EPoolv *poolv); 41 42 G_END_DECLS 43 44 #endif /* E_POOLV_H */ 45