2 * Copyright © 2010 Codethink Limited
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 * Author: Ryan Lortie <desrt@desrt.ca>
20 #ifndef __gvdb_reader_h__
21 #define __gvdb_reader_h__
25 typedef struct _GvdbTable GvdbTable
;
30 GvdbTable
* gvdb_table_new_from_bytes (GBytes
*bytes
,
34 GvdbTable
* gvdb_table_new (const gchar
*filename
,
38 void gvdb_table_free (GvdbTable
*table
);
40 gchar
** gvdb_table_get_names (GvdbTable
*table
,
43 gchar
** gvdb_table_list (GvdbTable
*table
,
46 GvdbTable
* gvdb_table_get_table (GvdbTable
*table
,
49 GVariant
* gvdb_table_get_raw_value (GvdbTable
*table
,
52 GVariant
* gvdb_table_get_value (GvdbTable
*table
,
56 gboolean
gvdb_table_has_value (GvdbTable
*table
,
59 gboolean
gvdb_table_is_valid (GvdbTable
*table
);
63 #endif /* __gvdb_reader_h__ */