1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * gsf-outfile-zip.h: interface for zip archive output.
5 * Copyright (C) 2002-2006 Jon K Hellan (hellan@acm.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_OUTFILE_ZIP_H
23 #define GSF_OUTFILE_ZIP_H
26 #include <glib-object.h>
31 GSF_ZIP_STORED = 0, /* supported for export */
33 GSF_ZIP_REDUCEDx1 = 2,
34 GSF_ZIP_REDUCEDx2 = 3,
35 GSF_ZIP_REDUCEDx3 = 4,
36 GSF_ZIP_REDUCEDx4 = 5,
38 GSF_ZIP_TOKENIZED = 7,
39 GSF_ZIP_DEFLATED = 8, /* supported for export */
40 GSF_ZIP_DEFLATED_BETTER = 9,
41 GSF_ZIP_IMPLODED_BETTER = 10
42 } GsfZipCompressionMethod;
44 typedef struct _GsfOutfileZip GsfOutfileZip;
46 #define GSF_OUTFILE_ZIP_TYPE (gsf_outfile_zip_get_type ())
47 #define GSF_OUTFILE_ZIP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSF_OUTFILE_ZIP_TYPE, GsfOutfileZip))
48 #define GSF_IS_OUTFILE_ZIP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSF_OUTFILE_ZIP_TYPE))
50 GType gsf_outfile_zip_get_type (void) G_GNUC_CONST;
51 /* void gsf_outfile_zip_register_type (GTypeModule *module); glib dynamic types are not thread safe */
53 GsfOutfile *gsf_outfile_zip_new (GsfOutput *sink, GError **err);
55 /* Deprecated. Has no effect. */
56 gboolean gsf_outfile_zip_set_compression_method (GsfOutfileZip *zip,
57 GsfZipCompressionMethod method);
61 #endif /* GSF_OUTFILE_H */