/usr/share/vala/vapi/libgcab-1.0.vapi is in libgcab-dev 0.7-1ubuntu0.1.
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 | /* libgcab-1.0.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "GCab", gir_namespace = "GCab", gir_version = "1.0", lower_case_cprefix = "gcab_")]
namespace GCab {
[CCode (cheader_filename = "libgcab.h", type_id = "gcab_cabinet_get_type ()")]
public class Cabinet : GLib.Object {
[CCode (has_construct_function = false)]
public Cabinet ();
public bool add_folder (GCab.Folder folder) throws GLib.Error;
public bool extract (GLib.File path, [CCode (delegate_target_pos = 3.5)] GCab.FileCallback? file_callback, [CCode (delegate_target_pos = 3.5)] GLib.FileProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool extract_simple (GLib.File path, [CCode (delegate_target_pos = 2.5)] GCab.FileCallback? file_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.GenericArray<GCab.Folder> get_folders ();
public unowned GLib.ByteArray get_signature (GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool load (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool write (GLib.OutputStream stream, [CCode (delegate_target_pos = 3.5)] GCab.FileCallback? file_callback, [CCode (delegate_target_pos = 3.5)] GLib.FileProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool write_simple (GLib.OutputStream stream, [CCode (delegate_target_pos = 2.5)] GCab.FileCallback? file_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[NoAccessorMethod]
public GLib.ByteArray reserved { owned get; set; }
[NoAccessorMethod]
public GLib.ByteArray signature { owned get; set; }
}
[CCode (cheader_filename = "libgcab.h", type_id = "gcab_file_get_type ()")]
public class File : GLib.Object {
[CCode (has_construct_function = false)]
protected File ();
public uint32 get_attributes ();
public void get_date (GLib.TimeVal result);
public unowned string get_extract_name ();
public GLib.File get_file ();
public unowned string get_name ();
public uint32 get_size ();
public void set_extract_name (string? name);
[CCode (has_construct_function = false)]
public File.with_file (string name, GLib.File file);
public GLib.File file { owned get; construct; }
public string name { get; construct; }
}
[CCode (cheader_filename = "libgcab.h", type_id = "gcab_folder_get_type ()")]
public class Folder : GLib.Object {
[CCode (has_construct_function = false)]
public Folder (int comptype);
public bool add_file (GCab.File cabfile, bool recurse, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.SList<GCab.File> get_files ();
public uint get_nfiles ();
[NoAccessorMethod]
public GCab.Compression compression { get; }
[NoAccessorMethod]
public int comptype { get; construct; }
[NoAccessorMethod]
public GLib.ByteArray reserved { owned get; set; }
}
[CCode (cheader_filename = "libgcab.h", cprefix = "GCAB_COMPRESSION_", type_id = "gcab_compression_get_type ()")]
public enum Compression {
NONE,
MSZIP,
QUANTUM,
LZX,
MASK
}
[CCode (cheader_filename = "libgcab.h", cprefix = "GCAB_FILE_ATTRIBUTE_", type_id = "gcab_file_attribute_get_type ()")]
public enum FileAttribute {
RDONLY,
HIDDEN,
SYSTEM,
ARCH,
EXEC,
NAME_IS_UTF
}
[CCode (cheader_filename = "libgcab.h", cprefix = "GCAB_ERROR_")]
public errordomain Error {
FORMAT,
FAILED;
public static GLib.Quark quark ();
}
[CCode (cheader_filename = "libgcab.h", instance_pos = 1.9)]
public delegate bool FileCallback (GCab.File file);
}
|