/usr/include/libgcab-1.0/libgcab/gcab-cabinet.h is in libgcab-dev 1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | /*
* LibGCab
* Copyright (c) 2012, Marc-André Lureau <marcandre.lureau@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*/
#ifndef _GCAB_CABINET_H_
#define _GCAB_CABINET_H_
#include <gio/gio.h>
#include <glib-object.h>
#include "gcab-folder.h"
#include "gcab-file.h"
G_BEGIN_DECLS
/**
* GCabCabinet:
*
* An opaque object holding a Cabinet file reference.
**/
#define GCAB_TYPE_CABINET (gcab_cabinet_get_type ())
G_DECLARE_FINAL_TYPE(GCabCabinet, gcab_cabinet, GCAB, CABINET, GObject)
/**
* GCAB_ERROR:
*
* Error domain for the GCab library. See #GError for more information
* on error domains.
*/
#define GCAB_ERROR gcab_error_quark ()
GQuark gcab_error_quark (void);
/**
* GCabError:
* @GCAB_ERROR_FORMAT: The given file is not of Cabinet format.
* @GCAB_ERROR_FAILED: General function failure.
* @GCAB_ERROR_NOT_SUPPORTED: Action or format is not supported
* @GCAB_ERROR_INVALID_DATA: Data stream was invalid
*
* The various errors triggered by the GCab functions.
**/
typedef enum GCabError
{
GCAB_ERROR_FORMAT,
GCAB_ERROR_FAILED,
GCAB_ERROR_NOT_SUPPORTED, /* Since: 1.0 */
GCAB_ERROR_INVALID_DATA, /* Since: 1.0 */
} GCabError;
GCabCabinet * gcab_cabinet_new (void);
gboolean gcab_cabinet_load (GCabCabinet *cabinet,
GInputStream *stream,
GCancellable *cancellable,
GError **error);
GPtrArray * gcab_cabinet_get_folders (GCabCabinet *cabinet);
guint32 gcab_cabinet_get_size (GCabCabinet *cabinet);
gboolean gcab_cabinet_add_folder (GCabCabinet *cabinet,
GCabFolder *folder,
GError **error);
gboolean gcab_cabinet_write (GCabCabinet *cabinet,
GOutputStream *stream,
GCabFileCallback file_callback,
GFileProgressCallback progress_callback,
gpointer user_data,
GCancellable *cancellable,
GError **error);
gboolean gcab_cabinet_write_simple (GCabCabinet *cabinet,
GOutputStream *stream,
GCabFileCallback file_callback,
gpointer user_data,
GCancellable *cancellable,
GError **error);
gboolean gcab_cabinet_extract (GCabCabinet *cabinet,
GFile *path,
GCabFileCallback file_callback,
GFileProgressCallback progress_callback,
gpointer user_data,
GCancellable *cancellable,
GError **error);
gboolean gcab_cabinet_extract_simple(GCabCabinet *cabinet,
GFile *path,
GCabFileCallback file_callback,
gpointer user_data,
GCancellable *cancellable,
GError **error);
const GByteArray * gcab_cabinet_get_signature (GCabCabinet *cabinet,
GCancellable *cancellable,
GError **error);
G_END_DECLS
#endif /* _GCAB_CABINET_H_ */
|