1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * gsf-structured-blob.h: Utility storage to blob in/out a tree of data
5 * Copyright (C) 2002-2006 Jody Goldberg (jody@gnome.org)
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2.1 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
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.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22 #ifndef GSF_STRUCTURED_BLOB_H
23 #define GSF_STRUCTURED_BLOB_H
26 #include <glib-object.h>
30 #define GSF_STRUCTURED_BLOB_TYPE (gsf_structured_blob_get_type ())
31 #define GSF_STRUCTURED_BLOB(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSF_STRUCTURED_BLOB_TYPE, GsfStructuredBlob))
32 #define GSF_IS_STRUCTURED_BLOB(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSF_STRUCTURED_BLOB_TYPE))
34 typedef struct _GsfStructuredBlob GsfStructuredBlob;
36 /* inherits from GsfInfile */
37 GType gsf_structured_blob_get_type (void) G_GNUC_CONST;
38 /* void gsf_structured_blob_register_type (GTypeModule *module); glib dynamic types are not thread safe */
40 GsfStructuredBlob *gsf_structured_blob_read (GsfInput *input);
41 gboolean gsf_structured_blob_write (GsfStructuredBlob *blob,
42 GsfOutfile *container);
46 #endif /* GSF_STRUCTURED_BLOB_H */