1 /* gio-unix-2.0-custom.vala
3 * Copyright (C) 2009 Evan Nemerson
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 * Evan Nemerson <evan@polussystems.com>
25 [CCode (cname
= "GUnixMountEntry", cheader_filename
= "gio/gunixmounts.h", lower_case_prefix
= "g_unix_mount_", free_function
= "g_unix_mount_free")]
26 public class UnixMountEntry
{
27 [CCode (cname
= "g_unix_mount_at")]
28 public UnixMountEntry (string mount_path
, uint64 time_read
);
29 [CCode (cname
= "g_unix_mount_compare")]
30 public int compare (GLib
.UnixMountEntry mount
);
31 [CCode (cname
= "g_unix_mount_get_device_path")]
32 public unowned
string get_device_path ();
33 [CCode (cname
= "g_unix_mount_get_fs_type")]
34 public unowned
string get_fs_type ();
35 [CCode (cname
= "g_unix_mount_get_mount_path")]
36 public unowned
string get_mount_path ();
37 [CCode (cname
= "g_unix_mount_guess_can_eject")]
38 public bool guess_can_eject ();
39 [CCode (cname
= "g_unix_mount_guess_icon")]
40 public unowned GLib
.Icon
guess_icon ();
41 [CCode (cname
= "g_unix_mount_guess_name")]
42 public unowned
string guess_name ();
43 [CCode (cname
= "g_unix_mount_guess_should_display")]
44 public bool guess_should_display ();
45 [CCode (cname
= "g_unix_mount_is_readonly")]
46 public bool is_readonly ();
47 [CCode (cname
= "g_unix_mount_is_system_internal")]
48 public bool is_system_internal ();
50 [CCode (cname
= "g_unix_mounts_get", cheader_filename
= "gio/gunixmounts.h")]
51 public static GLib
.List
<UnixMountEntry
> @
get (out uint64 time_read
= null);