1/* gio-unix-2.0.vapi generated by vapigen, do not modify. */ 2 3[CCode (cprefix = "G", lower_case_cprefix = "g_")] 4namespace GLib { 5 [CCode (cheader_filename = "gio/gdesktopappinfo.h")] 6 public class DesktopAppInfo : GLib.Object, GLib.AppInfo { 7 [CCode (has_construct_function = false)] 8 public DesktopAppInfo (string desktop_id); 9 [CCode (has_construct_function = false)] 10 public DesktopAppInfo.from_filename (string filename); 11 [CCode (has_construct_function = false)] 12 public DesktopAppInfo.from_keyfile (GLib.KeyFile key_file); 13 public string get_action_name (string action_name); 14 public bool get_boolean (string key); 15 public unowned string get_categories (); 16 public unowned string get_filename (); 17 public unowned string get_generic_name (); 18 public static GLib.List<GLib.DesktopAppInfo> get_implementations (string @interface); 19 public bool get_is_hidden (); 20 [CCode (array_length = false, array_null_terminated = true)] 21 public unowned string[] get_keywords (); 22 public string? get_locale_string (string key); 23 public bool get_nodisplay (); 24 public bool get_show_in (string desktop_env); 25 public unowned string get_startup_wm_class (); 26 public string get_string (string key); 27 [CCode (array_length_type = "gsize")] 28 public string[] get_string_list (string key); 29 public bool has_key (string key); 30 public void launch_action (string action_name, GLib.AppLaunchContext launch_context); 31 public bool launch_uris_as_manager (GLib.List<string> uris, GLib.AppLaunchContext? launch_context, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc? user_setup = null, GLib.DesktopAppLaunchCallback? pid_callback = null) throws GLib.Error; 32 public bool launch_uris_as_manager_with_fds (GLib.List<string> uris, GLib.AppLaunchContext? launch_context, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc? user_setup = null, GLib.DesktopAppLaunchCallback? pid_callback = null, int stdin_fd = -1, int stdout_fd = -1, int stderr_fd = -1) throws GLib.Error; 33 [CCode (array_length = false, array_null_terminated = true)] 34 public unowned string[] list_actions (); 35 [CCode (array_length = false, array_null_terminated = true)] 36 public static string**[] search (string search_string); 37 public static void set_desktop_env (string desktop_env); 38 public string filename { get; construct; } 39 } 40 [CCode (cheader_filename = "gio/gunixconnection.h")] 41 public class UnixConnection : GLib.SocketConnection { 42 [CCode (has_construct_function = false)] 43 protected UnixConnection (); 44 public GLib.Credentials receive_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error; 45 public async GLib.Credentials receive_credentials_async (GLib.Cancellable? cancellable = null) throws GLib.Error; 46 public int receive_fd (GLib.Cancellable? cancellable = null) throws GLib.Error; 47 public bool send_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error; 48 public async bool send_credentials_async (GLib.Cancellable? cancellable = null) throws GLib.Error; 49 public bool send_fd (int fd, GLib.Cancellable? cancellable = null) throws GLib.Error; 50 } 51 [CCode (cheader_filename = "gio/gunixcredentialsmessage.h")] 52 public class UnixCredentialsMessage : GLib.SocketControlMessage { 53 [CCode (has_construct_function = false, type = "GSocketControlMessage*")] 54 public UnixCredentialsMessage (); 55 public unowned GLib.Credentials get_credentials (); 56 public static bool is_supported (); 57 [CCode (has_construct_function = false, type = "GSocketControlMessage*")] 58 public UnixCredentialsMessage.with_credentials (GLib.Credentials credentials); 59 public GLib.Credentials credentials { get; construct; } 60 } 61 [CCode (cheader_filename = "gio/gunixfdmessage.h")] 62 public class UnixFDMessage : GLib.SocketControlMessage { 63 [CCode (has_construct_function = false, type = "GSocketControlMessage*")] 64 public UnixFDMessage (); 65 public bool append_fd (int fd) throws GLib.Error; 66 public unowned GLib.UnixFDList get_fd_list (); 67 public int[] steal_fds (); 68 [CCode (has_construct_function = false, type = "GSocketControlMessage*")] 69 public UnixFDMessage.with_fd_list (GLib.UnixFDList fd_list); 70 public GLib.UnixFDList fd_list { get; construct; } 71 } 72 [CCode (cheader_filename = "gio/gunixinputstream.h")] 73 public class UnixInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.FileDescriptorBased { 74 [CCode (has_construct_function = false, type = "GInputStream*")] 75 public UnixInputStream (int fd, bool close_fd); 76 public bool get_close_fd (); 77 public void set_close_fd (bool close_fd); 78 public bool close_fd { get; set; } 79 public int fd { get; construct; } 80 } 81 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "GUnixMountEntry", free_function = "g_unix_mount_free", lower_case_cprefix = "g_unix_mount_")] 82 [Compact] 83 public class UnixMountEntry { 84 [CCode (cname = "g_unix_mount_at")] 85 public UnixMountEntry (string mount_path, out uint64 time_read = null); 86 public int compare (GLib.UnixMountEntry mount); 87 [CCode (cname = "g_unix_mount_for")] 88 [Version (since = "2.52")] 89 public UnixMountEntry.@for (string file_path, out uint64 time_read = null); 90 [CCode (cname = "g_unix_mounts_get")] 91 public static GLib.List<GLib.UnixMountEntry> @get (out uint64 time_read = null); 92 public unowned string get_device_path (); 93 public unowned string get_fs_type (); 94 public unowned string get_mount_path (); 95 [Version (since = "2.58")] 96 public unowned string get_options (); 97 [Version (since = "2.60")] 98 public unowned string get_root_path (); 99 public bool guess_can_eject (); 100 public GLib.Icon guess_icon (); 101 public string guess_name (); 102 public bool guess_should_display (); 103 [Version (since = "2.34")] 104 public GLib.Icon guess_symbolic_icon (); 105 public bool is_readonly (); 106 public bool is_system_internal (); 107 } 108 [CCode (cheader_filename = "gio/gunixmounts.h")] 109 public class UnixMountMonitor : GLib.Object { 110 [CCode (has_construct_function = false)] 111 [Version (deprecated_since = "2.44", replacement = "UnixMountMonitor.get")] 112 public UnixMountMonitor (); 113 public static GLib.UnixMountMonitor @get (); 114 public void set_rate_limit (int limit_msec); 115 public virtual signal void mountpoints_changed (); 116 public virtual signal void mounts_changed (); 117 } 118 [CCode (cheader_filename = "gio/gunixmounts.h")] 119 [Compact] 120 public class UnixMountMonitorClass { 121 } 122 [CCode (cheader_filename = "gio/gunixmounts.h")] 123 [Compact] 124 public class UnixMountPoint { 125 public int compare (GLib.UnixMountPoint mount2); 126 public unowned string get_device_path (); 127 public unowned string get_fs_type (); 128 public unowned string get_mount_path (); 129 public unowned string get_options (); 130 public bool guess_can_eject (); 131 public GLib.Icon guess_icon (); 132 public string guess_name (); 133 public GLib.Icon guess_symbolic_icon (); 134 public bool is_loopback (); 135 public bool is_readonly (); 136 public bool is_user_mountable (); 137 } 138 [CCode (cheader_filename = "gio/gunixoutputstream.h")] 139 public class UnixOutputStream : GLib.OutputStream, GLib.PollableOutputStream, GLib.FileDescriptorBased { 140 [CCode (has_construct_function = false, type = "GOutputStream*")] 141 public UnixOutputStream (int fd, bool close_fd); 142 public bool get_close_fd (); 143 public void set_close_fd (bool close_fd); 144 public bool close_fd { get; set; } 145 public int fd { get; construct; } 146 } 147 [CCode (cheader_filename = "gio/gunixsocketaddress.h")] 148 public class UnixSocketAddress : GLib.SocketAddress, GLib.SocketConnectable { 149 [CCode (has_construct_function = false, type = "GSocketAddress*")] 150 public UnixSocketAddress (string path); 151 public static bool abstract_names_supported (); 152 [CCode (cname = "g_unix_socket_address_new_abstract", has_construct_function = false, type = "GSocketAddress*")] 153 public UnixSocketAddress.as_abstract (string path, int path_len); 154 public GLib.UnixSocketAddressType get_address_type (); 155 public bool get_is_abstract (); 156 public unowned string get_path (); 157 public size_t get_path_len (); 158 [CCode (has_construct_function = false, type = "GSocketAddress*")] 159 public UnixSocketAddress.with_type (string path, int path_len, GLib.UnixSocketAddressType type); 160 [NoAccessorMethod] 161 public bool @abstract { get; construct; } 162 public GLib.UnixSocketAddressType address_type { get; construct; } 163 public string path { get; construct; } 164 [NoAccessorMethod] 165 public GLib.ByteArray path_as_array { owned get; construct; } 166 } 167 [CCode (cheader_filename = "gio/gdesktopappinfo.h")] 168 public interface DesktopAppInfoLookup : GLib.Object { 169 public abstract GLib.AppInfo get_default_for_uri_scheme (string uri_scheme); 170 } 171 [CCode (cheader_filename = "gio/gfiledescriptorbased.h")] 172 public interface FileDescriptorBased : GLib.Object { 173 public abstract int get_fd (); 174 } 175 [CCode (cheader_filename = "gio/gdesktopappinfo.h")] 176 public delegate void DesktopAppLaunchCallback (GLib.DesktopAppInfo appinfo, GLib.Pid pid); 177 [CCode (cheader_filename = "gio/gdesktopappinfo.h")] 178 public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME; 179 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_is_mount_path_system_internal")] 180 public static bool is_mount_path_system_internal (string mount_path); 181 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_is_system_device_path")] 182 public static bool is_system_device_path (string device_path); 183 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_is_system_fs_type")] 184 public static bool is_system_fs_type (string fs_type); 185 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_mount_points_changed_since")] 186 public static bool mount_points_changed_since (uint64 time); 187 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_mounts_changed_since")] 188 public static bool mounts_changed_since (uint64 time); 189} 190