/usr/include/libgcab-1.0/libgcab/gcab-folder.h is in libgcab-dev 0.7-2+deb9u1.
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 | /*
* 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_FOLDER_H_
#define _GCAB_FOLDER_H_
#include <gio/gio.h>
#include <glib-object.h>
#include "gcab-file.h"
G_BEGIN_DECLS
#define GCAB_TYPE_FOLDER (gcab_folder_get_type ())
#define GCAB_FOLDER(folder) (G_TYPE_CHECK_INSTANCE_CAST ((folder), GCAB_TYPE_FOLDER, GCabFolder))
#define GCAB_FOLDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCAB_TYPE_FOLDER, GCabFolderClass))
#define GCAB_IS_FOLDER(folder) (G_TYPE_CHECK_INSTANCE_TYPE ((folder), GCAB_TYPE_FOLDER))
#define GCAB_IS_FOLDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCAB_TYPE_FOLDER))
#define GCAB_FOLDER_GET_CLASS(folder) (G_TYPE_INSTANCE_GET_CLASS ((folder), GCAB_TYPE_FOLDER, GCabFolderClass))
typedef struct _GCabFolderClass GCabFolderClass;
/**
* GCabFolder:
*
* An opaque object, referencing a folder in a Cabinet.
**/
typedef struct _GCabFolder GCabFolder;
/**
* GCabCompression:
* @GCAB_COMPRESSION_NONE: No compression.
* @GCAB_COMPRESSION_MSZIP: MSZIP compression.
* @GCAB_COMPRESSION_QUANTUM: QUANTUM compression.
* @GCAB_COMPRESSION_LZX: LZX compression.
* @GCAB_COMPRESSION_MASK: compression value mask.
*
* Compression used by the #GCabFolder.
**/
typedef enum
{
GCAB_COMPRESSION_NONE = 0,
GCAB_COMPRESSION_MSZIP = 1,
GCAB_COMPRESSION_QUANTUM = 2,
GCAB_COMPRESSION_LZX = 3,
GCAB_COMPRESSION_MASK = 0xf,
} GCabCompression;
GType gcab_folder_get_type (void) G_GNUC_CONST;
GCabFolder * gcab_folder_new (gint comptype);
gboolean gcab_folder_add_file (GCabFolder *cabfolder,
GCabFile *cabfile,
gboolean recurse,
GCancellable *cancellable,
GError **error);
guint gcab_folder_get_nfiles (GCabFolder *cabfolder);
GSList * gcab_folder_get_files (GCabFolder *cabfolder);
G_END_DECLS
#endif /* _GCAB_FILE_H_ */
|