00001 /********************************************************************\ 00002 * kvp-util.h -- misc KVP utilities * 00003 * Copyright (C) 2003 Linas Vepstas <linas@linas.org> * 00004 * * 00005 * This program is free software; you can redistribute it and/or * 00006 * modify it under the terms of the GNU General Public License as * 00007 * published by the Free Software Foundation; either version 2 of * 00008 * the License, or (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License* 00016 * along with this program; if not, contact: * 00017 * * 00018 * Free Software Foundation Voice: +1-617-542-5942 * 00019 * 59 Temple Place - Suite 330 Fax: +1-617-542-2652 * 00020 * Boston, MA 02111-1307, USA gnu@gnu.org * 00021 \********************************************************************/ 00022 00033 #ifndef GNC_KVP_UTIL_H 00034 #define GNC_KVP_UTIL_H 00035 00036 #include "config.h" 00037 00038 typedef struct { 00039 gpointer key; 00040 gpointer value; 00041 } GHashTableKVPair; 00042 00057 GSList *g_hash_table_key_value_pairs(GHashTable *table); 00058 void g_hash_table_kv_pair_free_gfunc(gpointer data, gpointer user_data); 00059 00060 /***********************************************************************/ 00061 00064 #endif /* GNC_KVP_UTIL_H */
1.4.5