QOF  0.7.5
kvputil.h
Go to the documentation of this file.
1 /********************************************************************\
2  * kvputil.h -- miscellaneous KVP utilities *
3  * Copyright (C) 2003 Linas Vepstas <linas@linas.org> *
4  * Copyright (c) 2006 Neil Williams <linux@codehelp.co.uk> *
5  * *
6  * This program is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License as *
8  * published by the Free Software Foundation; either version 2 of *
9  * the License, or (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License*
17  * along with this program; if not, contact: *
18  * *
19  * Free Software Foundation Voice: +1-617-542-5942 *
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21  * Boston, MA 02110-1301, USA gnu@gnu.org *
22 \********************************************************************/
23 
34 #ifndef KVPUTIL_H
35 #define KVPUTIL_H
36 
37 typedef struct
38 {
39  gpointer key;
40  gpointer value;
42 
57 GSList *g_hash_table_key_value_pairs (GHashTable * table);
58 void g_hash_table_kv_pair_free_gfunc (gpointer data, gpointer user_data);
59 
75 void kvp_frame_add_url_encoding (KvpFrame * frame, const gchar * enc);
76 
82 gint kvp_frame_compare (const KvpFrame * fa, const KvpFrame * fb);
83 
84 gchar *kvp_frame_to_string (const KvpFrame * frame);
85 gchar *binary_to_string (const void *data, guint32 size);
86 gchar *kvp_value_glist_to_string (const GList * list);
87 GHashTable *kvp_frame_get_hash (const KvpFrame * frame);
88 
89 /***********************************************************************/
90 
93 #endif /* KVPUTIL_H */