Don't warn about unused internal methods which are meant to be visible on DBus
[vala-gnome.git] / vapi / gio-unix-2.0.vapi
blob5a3a6fe52546a7422e21a1a0ea1aa319e59515c9
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 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 bool get_nodisplay ();
23                 public bool get_show_in (string desktop_env);
24                 public unowned string get_startup_wm_class ();
25                 public unowned string get_string (string key);
26                 public bool has_key (string key);
27                 public void launch_action (string action_name, GLib.AppLaunchContext launch_context);
28                 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;
29                 [CCode (array_length = false, array_null_terminated = true)]
30                 public unowned string[] list_actions ();
31                 [CCode (array_length = false, array_null_terminated = true)]
32                 public static string**[] search (string search_string);
33                 public static void set_desktop_env (string desktop_env);
34                 public string filename { get; construct; }
35         }
36         [CCode (cheader_filename = "gio/gunixconnection.h")]
37         public class UnixConnection : GLib.SocketConnection {
38                 [CCode (has_construct_function = false)]
39                 protected UnixConnection ();
40                 public GLib.Credentials receive_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error;
41                 public async GLib.Credentials receive_credentials_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
42                 public int receive_fd (GLib.Cancellable? cancellable = null) throws GLib.Error;
43                 public bool send_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error;
44                 public async bool send_credentials_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
45                 public bool send_fd (int fd, GLib.Cancellable? cancellable = null) throws GLib.Error;
46         }
47         [CCode (cheader_filename = "gio/gunixcredentialsmessage.h")]
48         public class UnixCredentialsMessage : GLib.SocketControlMessage {
49                 [CCode (has_construct_function = false, type = "GSocketControlMessage*")]
50                 public UnixCredentialsMessage ();
51                 public unowned GLib.Credentials get_credentials ();
52                 public static bool is_supported ();
53                 [CCode (has_construct_function = false, type = "GSocketControlMessage*")]
54                 public UnixCredentialsMessage.with_credentials (GLib.Credentials credentials);
55                 public GLib.Credentials credentials { get; construct; }
56         }
57         [CCode (cheader_filename = "gio/gunixfdmessage.h")]
58         public class UnixFDMessage : GLib.SocketControlMessage {
59                 [CCode (has_construct_function = false, type = "GSocketControlMessage*")]
60                 public UnixFDMessage ();
61                 public bool append_fd (int fd) throws GLib.Error;
62                 public unowned GLib.UnixFDList get_fd_list ();
63                 public int steal_fds (int length);
64                 [CCode (has_construct_function = false, type = "GSocketControlMessage*")]
65                 public UnixFDMessage.with_fd_list (GLib.UnixFDList fd_list);
66                 public GLib.UnixFDList fd_list { get; construct; }
67         }
68         [CCode (cheader_filename = "gio/gunixinputstream.h")]
69         public class UnixInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.FileDescriptorBased {
70                 [CCode (has_construct_function = false, type = "GInputStream*")]
71                 public UnixInputStream (int fd, bool close_fd);
72                 public bool get_close_fd ();
73                 public void set_close_fd (bool close_fd);
74                 public bool close_fd { get; set; }
75                 public int fd { get; construct; }
76         }
77         [CCode (cheader_filename = "gio/gunixmounts.h", cname = "GUnixMountEntry", free_function = "g_unix_mount_free", lower_case_cprefix = "g_unix_mount_")]
78         [Compact]
79         public class UnixMountEntry {
80                 [CCode (cname = "g_unix_mount_at")]
81                 public UnixMountEntry (string mount_path, out uint64 time_read = null);
82                 public int compare (GLib.UnixMountEntry mount);
83                 [CCode (cname = "g_unix_mounts_for")]
84                 [Version (since = "2.52")]
85                 public static GLib.List<GLib.UnixMountEntry> @for (string file_path, out uint64 time_read = null);
86                 [CCode (cname = "g_unix_mounts_get")]
87                 public static GLib.List<GLib.UnixMountEntry> @get (out uint64 time_read = null);
88                 public unowned string get_device_path ();
89                 public unowned string get_fs_type ();
90                 public unowned string get_mount_path ();
91                 public bool guess_can_eject ();
92                 public GLib.Icon guess_icon ();
93                 public string guess_name ();
94                 public bool guess_should_display ();
95                 [Version (since = "2.34")]
96                 public GLib.Icon guess_symbolic_icon ();
97                 public bool is_readonly ();
98                 public bool is_system_internal ();
99         }
100         [CCode (cheader_filename = "gio/gunixmounts.h")]
101         public class UnixMountMonitor : GLib.Object {
102                 [CCode (has_construct_function = false)]
103                 [Version (deprecated_since = "2.44", replacement = "UnixMountMonitor.get")]
104                 public UnixMountMonitor ();
105                 public static GLib.UnixMountMonitor @get ();
106                 public void set_rate_limit (int limit_msec);
107                 public virtual signal void mountpoints_changed ();
108                 public virtual signal void mounts_changed ();
109         }
110         [CCode (cheader_filename = "gio/gunixmounts.h")]
111         [Compact]
112         public class UnixMountMonitorClass {
113         }
114         [CCode (cheader_filename = "gio/gunixmounts.h")]
115         [Compact]
116         public class UnixMountPoint {
117                 public int compare (GLib.UnixMountPoint mount2);
118                 public unowned string get_device_path ();
119                 public unowned string get_fs_type ();
120                 public unowned string get_mount_path ();
121                 public unowned string get_options ();
122                 public bool guess_can_eject ();
123                 public GLib.Icon guess_icon ();
124                 public string guess_name ();
125                 public GLib.Icon guess_symbolic_icon ();
126                 public bool is_loopback ();
127                 public bool is_readonly ();
128                 public bool is_user_mountable ();
129         }
130         [CCode (cheader_filename = "gio/gunixoutputstream.h")]
131         public class UnixOutputStream : GLib.OutputStream, GLib.PollableOutputStream, GLib.FileDescriptorBased {
132                 [CCode (has_construct_function = false, type = "GOutputStream*")]
133                 public UnixOutputStream (int fd, bool close_fd);
134                 public bool get_close_fd ();
135                 public void set_close_fd (bool close_fd);
136                 public bool close_fd { get; set; }
137                 public int fd { get; construct; }
138         }
139         [CCode (cheader_filename = "gio/gunixsocketaddress.h")]
140         public class UnixSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
141                 [CCode (has_construct_function = false, type = "GSocketAddress*")]
142                 public UnixSocketAddress (string path);
143                 public static bool abstract_names_supported ();
144                 [CCode (cname = "g_unix_socket_address_new_abstract", has_construct_function = false, type = "GSocketAddress*")]
145                 public UnixSocketAddress.as_abstract (string path, int path_len);
146                 public GLib.UnixSocketAddressType get_address_type ();
147                 public bool get_is_abstract ();
148                 public unowned string get_path ();
149                 public size_t get_path_len ();
150                 [CCode (has_construct_function = false, type = "GSocketAddress*")]
151                 public UnixSocketAddress.with_type (string path, int path_len, GLib.UnixSocketAddressType type);
152                 [NoAccessorMethod]
153                 public bool @abstract { get; construct; }
154                 public GLib.UnixSocketAddressType address_type { get; construct; }
155                 public string path { get; construct; }
156                 [NoAccessorMethod]
157                 public GLib.ByteArray path_as_array { owned get; construct; }
158         }
159         [CCode (cheader_filename = "gio/gunixmounts.h")]
160         public interface DesktopAppInfoLookup : GLib.Object {
161                 public abstract unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
162         }
163         [CCode (cheader_filename = "gio/gfiledescriptorbased.h")]
164         public interface FileDescriptorBased : GLib.Object {
165                 public abstract int get_fd ();
166         }
167         [CCode (cheader_filename = "gio/gunixmounts.h")]
168         public delegate void DesktopAppLaunchCallback (GLib.DesktopAppInfo appinfo, GLib.Pid pid);
169         [CCode (cheader_filename = "gio/gunixmounts.h")]
170         public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME;
171         [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_is_mount_path_system_internal")]
172         public static bool is_mount_path_system_internal (string mount_path);
173         [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_mount_points_changed_since")]
174         public static bool mount_points_changed_since (uint64 time);
175         [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_mounts_changed_since")]
176         public static bool mounts_changed_since (uint64 time);