Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-archive.h
Go to the documentation of this file.
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */
2 /*
3  * Copyright (C) 2017, Bastien Nocera <hadess@hadess.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2, or (at your option)
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef __EV_ARCHIVE_H__
21 #define __EV_ARCHIVE_H__
22 
23 #include <glib-object.h>
24 
25 G_BEGIN_DECLS
26 
27 #define EV_TYPE_ARCHIVE ev_archive_get_type ()
28 G_DECLARE_FINAL_TYPE (EvArchive, ev_archive, EV, ARCHIVE, GObject)
29 
30 typedef enum {
37 
38 EvArchive *ev_archive_new (void);
39 gboolean ev_archive_set_archive_type (EvArchive *archive,
40  EvArchiveType archive_type);
41 EvArchiveType ev_archive_get_archive_type (EvArchive *archive);
42 gboolean ev_archive_open_filename (EvArchive *archive,
43  const char *path,
44  GError **error);
45 gboolean ev_archive_read_next_header (EvArchive *archive,
46  GError **error);
47 const char *ev_archive_get_entry_pathname (EvArchive *archive);
48 gint64 ev_archive_get_entry_size (EvArchive *archive);
49 gssize ev_archive_read_data (EvArchive *archive,
50  void *buf,
51  gsize count,
52  GError **error);
53 void ev_archive_reset (EvArchive *archive);
54 
55 G_END_DECLS
56 
57 #endif /* __EV_ARCHIVE_H__ */