/usr/share/vala/vapi/desktop-agnostic-vfs.vapi is in libdesktop-agnostic-dev 0.3.92+dfsg-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 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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | /* desktop-agnostic-vfs.vapi generated by valac 0.10.4, do not modify. */
[CCode (cprefix = "DesktopAgnostic", lower_case_cprefix = "desktop_agnostic_")]
namespace DesktopAgnostic {
[CCode (cprefix = "DesktopAgnosticVFS", lower_case_cprefix = "desktop_agnostic_vfs_")]
namespace VFS {
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public class Bookmark : GLib.Object {
public Bookmark ();
public string? alias { get; set; }
public DesktopAgnostic.VFS.File file { get; set; }
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public abstract class File : GLib.Object {
public File ();
public abstract bool copy (DesktopAgnostic.VFS.File destination, bool overwrite) throws GLib.Error;
public abstract GLib.SList<DesktopAgnostic.VFS.File> enumerate_children () throws GLib.Error;
public abstract bool exists ();
public abstract string[] get_icon_names () throws GLib.Error;
public abstract string get_mime_type () throws GLib.Error;
public virtual string? get_thumbnail_path ();
protected abstract void init (string uri);
public bool is_executable ();
public abstract bool is_native ();
public bool is_readable ();
public bool is_writable ();
public abstract bool launch () throws GLib.Error;
public abstract bool load_contents (out string contents, out size_t length) throws GLib.Error;
public abstract DesktopAgnostic.VFS.FileMonitor monitor ();
public abstract bool remove () throws GLib.Error;
public abstract bool replace_contents (string contents) throws GLib.Error;
public abstract DesktopAgnostic.VFS.AccessFlags access_flags { get; }
public abstract DesktopAgnostic.VFS.FileType file_type { get; }
protected abstract string? impl_path { owned get; }
protected abstract string impl_uri { owned get; }
public abstract void* implementation { get; }
public abstract DesktopAgnostic.VFS.File? parent { owned get; }
public string? path { owned get; construct; }
public string uri { owned get; construct; }
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public class Glob : GLib.Object {
public Glob ();
public void append (string pattern) throws DesktopAgnostic.VFS.GlobError;
public static DesktopAgnostic.VFS.Glob execute (string pattern) throws DesktopAgnostic.VFS.GlobError;
public static DesktopAgnostic.VFS.Glob execute_with_flags (string pattern, int flags) throws DesktopAgnostic.VFS.GlobError;
public unowned string[]? get_paths ();
public int flags { get; set; }
public size_t offset { get; }
public string pattern { get; set; }
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public class GtkBookmarks : GLib.Object {
public GtkBookmarks (DesktopAgnostic.VFS.File? file = null, bool monitor = true);
public GLib.SList<DesktopAgnostic.VFS.Bookmark>? bookmarks { get; }
public DesktopAgnostic.VFS.File? file { construct; }
public signal void changed ();
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public interface FileMonitor : GLib.Object {
public abstract bool cancel ();
public abstract void emit (DesktopAgnostic.VFS.File? other, DesktopAgnostic.VFS.FileMonitorEvent event);
public abstract bool cancelled { get; }
public signal void changed (DesktopAgnostic.VFS.File file, DesktopAgnostic.VFS.File? other, DesktopAgnostic.VFS.FileMonitorEvent event);
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public interface Implementation : GLib.Object {
public abstract GLib.SList<DesktopAgnostic.VFS.File> files_from_uri_list (string uri_list) throws GLib.Error;
public abstract void init ();
public abstract void shutdown ();
public abstract unowned DesktopAgnostic.VFS.VolumeMonitor volume_monitor_get_default ();
public abstract GLib.Type file_monitor_type { get; }
public abstract GLib.Type file_type { get; }
public abstract string name { get; }
public abstract GLib.Type trash_type { get; }
public abstract GLib.Type volume_type { get; }
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public interface Trash : GLib.Object {
public abstract void empty ();
public abstract void send_to_trash (DesktopAgnostic.VFS.File file) throws GLib.Error;
public abstract uint file_count { get; }
public signal void file_count_changed ();
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public interface Volume : GLib.Object {
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public delegate void Callback ();
public abstract bool can_eject ();
public abstract void eject (DesktopAgnostic.VFS.Volume.Callback callback);
public abstract bool eject_finish () throws DesktopAgnostic.VFS.VolumeError;
public abstract bool is_mounted ();
public abstract void mount (DesktopAgnostic.VFS.Volume.Callback callback);
public abstract bool mount_finish () throws DesktopAgnostic.VFS.VolumeError;
public abstract void unmount (DesktopAgnostic.VFS.Volume.Callback callback);
public abstract bool unmount_finish () throws DesktopAgnostic.VFS.VolumeError;
public abstract string? icon { owned get; }
public abstract string name { get; }
public abstract DesktopAgnostic.VFS.File uri { get; }
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public interface VolumeMonitor : GLib.Object {
public abstract void* implementation { get; }
public abstract GLib.List<DesktopAgnostic.VFS.Volume> volumes { owned get; }
public signal void volume_mounted (DesktopAgnostic.VFS.Volume volume);
public signal void volume_unmounted (DesktopAgnostic.VFS.Volume volume);
}
[CCode (cprefix = "DESKTOP_AGNOSTIC_VFS_ACCESS_FLAGS_", cheader_filename = "libdesktop-agnostic/vfs.h")]
public enum AccessFlags {
NONE,
READ,
WRITE,
EXECUTE
}
[CCode (cprefix = "DESKTOP_AGNOSTIC_VFS_FILE_MONITOR_EVENT_", cheader_filename = "libdesktop-agnostic/vfs.h")]
public enum FileMonitorEvent {
UNKNOWN,
CHANGED,
CREATED,
DELETED,
ATTRIBUTE_CHANGED
}
[CCode (cprefix = "DESKTOP_AGNOSTIC_VFS_FILE_TYPE_", cheader_filename = "libdesktop-agnostic/vfs.h")]
public enum FileType {
UNKNOWN,
REGULAR,
DIRECTORY,
SYMBOLIC_LINK,
SPECIAL
}
[CCode (cprefix = "DESKTOP_AGNOSTIC_VFS_FILE_ERROR_", cheader_filename = "libdesktop-agnostic/vfs.h")]
public errordomain FileError {
FILE_NOT_FOUND,
EXISTS,
INVALID_TYPE,
}
[CCode (cprefix = "DESKTOP_AGNOSTIC_VFS_GLOB_ERROR_", cheader_filename = "libdesktop-agnostic/vfs.h")]
public errordomain GlobError {
NOSPACE,
ABORTED,
NOMATCH,
BAD_PATTERN,
BAD_FLAGS,
ERRNO,
}
[CCode (cprefix = "DESKTOP_AGNOSTIC_VFS_VOLUME_ERROR_", cheader_filename = "libdesktop-agnostic/vfs.h")]
public errordomain VolumeError {
MOUNT,
UNMOUNT,
EJECT,
}
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static DesktopAgnostic.VFS.File? file_new_for_path (string path) throws GLib.Error;
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static DesktopAgnostic.VFS.File? file_new_for_uri (string uri) throws GLib.Error;
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static GLib.SList<DesktopAgnostic.VFS.File>? files_from_uri_list (string uri_list) throws GLib.Error;
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static unowned DesktopAgnostic.VFS.Implementation? get_default () throws GLib.Error;
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static string[] get_icon_names_for_mime_type (string mime_type);
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static void init () throws GLib.Error;
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static void shutdown () throws GLib.Error;
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static unowned DesktopAgnostic.VFS.Trash trash_get_default () throws GLib.Error;
[CCode (cheader_filename = "libdesktop-agnostic/vfs.h")]
public static unowned DesktopAgnostic.VFS.VolumeMonitor? volume_monitor_get_default () throws GLib.Error;
}
}
|