girparser: Support async constructors.
[vala-lang.git] / vapi / gio-unix-2.0.vapi
blob24e698e6a9f2900679b2d861e2b0f26334443bda
1 /* gio-unix-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "G", lower_case_cprefix = "g_")]
4 namespace 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 unowned string get_filename ();
14                 public bool get_is_hidden ();
15                 public bool launch_uris_as_manager (GLib.List uris, GLib.AppLaunchContext launch_context, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc user_setup, void* user_setup_data, GLib.DesktopAppLaunchCallback pid_callback, void* pid_callback_data) throws GLib.Error;
16                 public static void set_desktop_env (string desktop_env);
17         }
18         [CCode (cheader_filename = "gio/gunixconnection.h")]
19         public class UnixConnection : GLib.SocketConnection {
20                 [CCode (has_construct_function = false)]
21                 protected UnixConnection ();
22                 public unowned GLib.Credentials receive_credentials (GLib.Cancellable cancellable) throws GLib.Error;
23                 public int receive_fd (GLib.Cancellable cancellable) throws GLib.Error;
24                 public bool send_credentials (GLib.Cancellable cancellable) throws GLib.Error;
25                 public bool send_fd (int fd, GLib.Cancellable cancellable) throws GLib.Error;
26         }
27         [CCode (cheader_filename = "gio/gunixfdmessage.h")]
28         public class UnixFDMessage : GLib.SocketControlMessage {
29                 [CCode (type = "GSocketControlMessage*", has_construct_function = false)]
30                 public UnixFDMessage ();
31                 public bool append_fd (int fd) throws GLib.Error;
32                 public unowned GLib.UnixFDList get_fd_list ();
33                 public int steal_fds (int length);
34                 [CCode (type = "GSocketControlMessage*", has_construct_function = false)]
35                 public UnixFDMessage.with_fd_list (GLib.UnixFDList fd_list);
36                 public GLib.UnixFDList fd_list { get; construct; }
37         }
38         [CCode (cheader_filename = "gio/gunixinputstream.h")]
39         public class UnixInputStream : GLib.InputStream, GLib.PollableInputStream {
40                 [CCode (type = "GInputStream*", has_construct_function = false)]
41                 public UnixInputStream (int fd, bool close_fd);
42                 public bool get_close_fd ();
43                 public int get_fd ();
44                 public void set_close_fd (bool close_fd);
45                 public bool close_fd { get; set; }
46                 public int fd { get; construct; }
47         }
48         [Compact]
49         [CCode (free_function = "g_unix_mount_free", cheader_filename = "gio/gunixmounts.h")]
50         public class UnixMountEntry {
51                 [CCode (cname = "g_unix_mount_at")]
52                 public UnixMountEntry (string mount_path, uint64 time_read);
53                 [CCode (cname = "g_unix_mount_compare")]
54                 public int compare (GLib.UnixMountEntry mount);
55                 [CCode (cname = "g_unix_mounts_get")]
56                 public static GLib.List<GLib.UnixMountEntry> @get (out uint64 time_read = null);
57                 [CCode (cname = "g_unix_mount_get_device_path")]
58                 public unowned string get_device_path ();
59                 [CCode (cname = "g_unix_mount_get_fs_type")]
60                 public unowned string get_fs_type ();
61                 [CCode (cname = "g_unix_mount_get_mount_path")]
62                 public unowned string get_mount_path ();
63                 [CCode (cname = "g_unix_mount_guess_can_eject")]
64                 public bool guess_can_eject ();
65                 [CCode (cname = "g_unix_mount_guess_icon")]
66                 public unowned GLib.Icon guess_icon ();
67                 [CCode (cname = "g_unix_mount_guess_name")]
68                 public unowned string guess_name ();
69                 [CCode (cname = "g_unix_mount_guess_should_display")]
70                 public bool guess_should_display ();
71                 [CCode (cname = "g_unix_mount_is_readonly")]
72                 public bool is_readonly ();
73                 [CCode (cname = "g_unix_mount_is_system_internal")]
74                 public bool is_system_internal ();
75         }
76         [CCode (cheader_filename = "gio/gunixmounts.h")]
77         public class UnixMountMonitor : GLib.Object {
78                 [CCode (has_construct_function = false)]
79                 public UnixMountMonitor ();
80                 public void set_rate_limit (int limit_msec);
81                 public virtual signal void mountpoints_changed ();
82                 public virtual signal void mounts_changed ();
83         }
84         [Compact]
85         [CCode (cheader_filename = "gio/gunixmounts.h")]
86         public class UnixMountMonitorClass {
87         }
88         [Compact]
89         [CCode (cheader_filename = "gio/gunixmounts.h")]
90         public class UnixMountPoint {
91                 public int compare (GLib.UnixMountPoint mount2);
92                 public unowned string get_device_path ();
93                 public unowned string get_fs_type ();
94                 public unowned string get_mount_path ();
95                 public bool guess_can_eject ();
96                 public unowned GLib.Icon guess_icon ();
97                 public unowned string guess_name ();
98                 public bool is_loopback ();
99                 public bool is_readonly ();
100                 public bool is_user_mountable ();
101         }
102         [CCode (cheader_filename = "gio/gunixoutputstream.h")]
103         public class UnixOutputStream : GLib.OutputStream, GLib.PollableOutputStream {
104                 [CCode (type = "GOutputStream*", has_construct_function = false)]
105                 public UnixOutputStream (int fd, bool close_fd);
106                 public bool get_close_fd ();
107                 public int get_fd ();
108                 public void set_close_fd (bool close_fd);
109                 public bool close_fd { get; set; }
110                 public int fd { get; construct; }
111         }
112         [CCode (cheader_filename = "gio/gunixsocketaddress.h")]
113         public class UnixSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
114                 [CCode (type = "GSocketAddress*", has_construct_function = false)]
115                 public UnixSocketAddress (string path);
116                 public static bool abstract_names_supported ();
117                 [CCode (cname = "g_unix_socket_address_new_abstract", type = "GSocketAddress*", has_construct_function = false)]
118                 public UnixSocketAddress.as_abstract (string path, int path_len);
119                 public GLib.UnixSocketAddressType get_address_type ();
120                 public bool get_is_abstract ();
121                 public unowned string get_path ();
122                 public size_t get_path_len ();
123                 [CCode (type = "GSocketAddress*", has_construct_function = false)]
124                 public UnixSocketAddress.with_type (string path, int path_len, GLib.UnixSocketAddressType type);
125                 [NoAccessorMethod]
126                 public bool @abstract { get; construct; }
127                 public GLib.UnixSocketAddressType address_type { get; construct; }
128                 public string path { get; construct; }
129                 [NoAccessorMethod]
130                 public GLib.ByteArray path_as_array { owned get; construct; }
131         }
132         [CCode (cheader_filename = "gio/gunixmounts.h")]
133         public interface DesktopAppInfoLookup : GLib.Object {
134                 public abstract unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
135         }
136         [CCode (cheader_filename = "gio/gfiledescriptorbased.h")]
137         public interface FileDescriptorBased : GLib.Object {
138                 public abstract int get_fd ();
139         }
140         [CCode (cheader_filename = "gio/gunixmounts.h")]
141         public delegate void DesktopAppLaunchCallback (GLib.DesktopAppInfo appinfo, GLib.Pid pid);
142         [CCode (cheader_filename = "gio/gunixmounts.h")]
143         public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME;
144         [CCode (cname = "g_unix_is_mount_path_system_internal", cheader_filename = "gio/gunixmounts.h")]
145         public static bool is_mount_path_system_internal (string mount_path);
146         [CCode (cname = "g_unix_mount_points_changed_since", cheader_filename = "gio/gunixmounts.h")]
147         public static bool mount_points_changed_since (uint64 time);
148         [CCode (cname = "g_unix_mounts_changed_since", cheader_filename = "gio/gunixmounts.h")]
149         public static bool mounts_changed_since (uint64 time);