gio-unix-2.0-custom.vala 1.96 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/* gio-unix-2.0-custom.vala
 *
 * Copyright (C) 2009  Evan Nemerson
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Author:
 * 	Evan Nemerson <evan@polussystems.com>
 */

namespace GLib {
	[Compact]
25
	[CCode (cname = "GUnixMountEntry", cheader_filename = "gio/gunixmounts.h", lower_case_cprefix = "g_unix_mount_", free_function = "g_unix_mount_free")]
26 27
	public class UnixMountEntry {
		[CCode (cname = "g_unix_mount_at")]
28
		public UnixMountEntry (string mount_path, out uint64 time_read = null);
29 30 31 32
		public int compare (GLib.UnixMountEntry mount);
		public unowned string get_device_path ();
		public unowned string get_fs_type ();
		public unowned string get_mount_path ();
33 34
		[Version (since = "2.58")]
		public unowned string get_options ();
35
		public bool guess_can_eject ();
36 37
		public GLib.Icon guess_icon ();
		public string guess_name ();
38
		public bool guess_should_display ();
39
		[Version (since = "2.34")]
40
		public GLib.Icon guess_symbolic_icon ();
41 42 43
		public bool is_readonly ();
		public bool is_system_internal ();

44 45 46
		[CCode (cname = "g_unix_mounts_for")]
		[Version (since = "2.52")]
		public static GLib.List<UnixMountEntry> @for (string file_path, out uint64 time_read = null);
47
		[CCode (cname = "g_unix_mounts_get")]
48
		public static GLib.List<UnixMountEntry> @get (out uint64 time_read = null);
49 50
	}
}