Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[r20]: cbrpager-maemo / branches / MAEMO_0_9_20 / src / garchivereaderunzip.h Maximize Restore History

Download this file

garchivereaderunzip.h    66 lines (54 with data), 2.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* garchivereaderunzip.h - routines to manipulate ZIP archive files
*
* Copyright (C) 2008 Benoit Goudreault-Emond (bgoudreaultemond@gmail.com).
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#ifndef __G_ARCHIVE_READER_UNZIP_H__
#define __G_ARCHIVE_READER_UNZIP_H__
#include <gdk/gdk.h>
#include <glib-object.h>
#include "unzip.h"
#include "garchivereader.h"
G_BEGIN_DECLS
#define G_TYPE_ARCHIVE_READER_UNZIP (g_archive_reader_unzip_get_type())
#define G_ARCHIVE_READER_UNZIP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_ARCHIVE_READER_UNZIP, GArchiveReaderUnzip))
#define G_ARCHIVE_READER_UNZIP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_ARCHIVE_READER_UNZIP, GArchiveReaderUnzipClass))
#define G_IS_ARCHIVE_READER_UNZIP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_ARCHIVE_READER_UNZIP))
#define G_IS_ARCHIVE_READER_UNZIP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_ARCHIVE_READER_UNZIP))
#define G_ARCHIVE_READER_UNZIP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_ARCHIVE_READER+UNZIP, GArchiveReaderUnzipClass))
typedef struct _GArchiveReaderUnzip GArchiveReaderUnzip;
typedef struct _GArchiveReaderUnzipClass GArchiveReaderUnzipClass;
struct _GArchiveReaderUnzip
{
GObject parent;
magic_sign magic;
guchar* buf;
int buf_size;
unzFile current_file;
gchar* last_error;
GArray* page_list;
SortStrategy strategy;
};
struct _GArchiveReaderUnzipClass
{
GObjectClass parent;
};
GType g_archive_reader_unzip_get_type(void) G_GNUC_CONST;
GArchiveReader* g_archive_reader_unzip_new(guchar* buf, int buf_size, magic_sign magic);
G_END_DECLS
#endif