Lines Matching refs:mount
75 GUnixMount *mount; in G_DEFINE_TYPE_WITH_CODE() local
77 mount = G_UNIX_MOUNT (object); in G_DEFINE_TYPE_WITH_CODE()
79 if (mount->volume_monitor != NULL) in G_DEFINE_TYPE_WITH_CODE()
80 g_object_unref (mount->volume_monitor); in G_DEFINE_TYPE_WITH_CODE()
82 if (mount->volume) in G_DEFINE_TYPE_WITH_CODE()
83 _g_unix_volume_unset_mount (mount->volume, mount); in G_DEFINE_TYPE_WITH_CODE()
86 g_object_unref (mount->icon); in G_DEFINE_TYPE_WITH_CODE()
87 g_object_unref (mount->symbolic_icon); in G_DEFINE_TYPE_WITH_CODE()
88 g_free (mount->name); in G_DEFINE_TYPE_WITH_CODE()
89 g_free (mount->device_path); in G_DEFINE_TYPE_WITH_CODE()
90 g_free (mount->mount_path); in G_DEFINE_TYPE_WITH_CODE()
113 GUnixMount *mount; in _g_unix_mount_new() local
119 mount = g_object_new (G_TYPE_UNIX_MOUNT, NULL); in _g_unix_mount_new()
120 mount->volume_monitor = volume_monitor != NULL ? g_object_ref (volume_monitor) : NULL; in _g_unix_mount_new()
121 mount->device_path = g_strdup (g_unix_mount_get_device_path (mount_entry)); in _g_unix_mount_new()
122 mount->mount_path = g_strdup (g_unix_mount_get_mount_path (mount_entry)); in _g_unix_mount_new()
123 mount->can_eject = g_unix_mount_guess_can_eject (mount_entry); in _g_unix_mount_new()
125 mount->name = g_unix_mount_guess_name (mount_entry); in _g_unix_mount_new()
126 mount->icon = g_unix_mount_guess_icon (mount_entry); in _g_unix_mount_new()
127 mount->symbolic_icon = g_unix_mount_guess_symbolic_icon (mount_entry); in _g_unix_mount_new()
130 mount->volume = volume; in _g_unix_mount_new()
132 _g_unix_volume_set_mount (volume, mount); in _g_unix_mount_new()
134 return mount; in _g_unix_mount_new()
138 _g_unix_mount_unmounted (GUnixMount *mount) in _g_unix_mount_unmounted() argument
140 if (mount->volume != NULL) in _g_unix_mount_unmounted()
142 _g_unix_volume_unset_mount (mount->volume, mount); in _g_unix_mount_unmounted()
143 mount->volume = NULL; in _g_unix_mount_unmounted()
144 g_signal_emit_by_name (mount, "changed"); in _g_unix_mount_unmounted()
151 _g_unix_mount_unset_volume (GUnixMount *mount, in _g_unix_mount_unset_volume() argument
154 if (mount->volume == volume) in _g_unix_mount_unset_volume()
156 mount->volume = NULL; in _g_unix_mount_unset_volume()
158 g_signal_emit_by_name (mount, "changed"); in _g_unix_mount_unset_volume()
159 if (mount->volume_monitor != NULL) in _g_unix_mount_unset_volume()
160 g_signal_emit_by_name (mount->volume_monitor, "mount-changed", mount); in _g_unix_mount_unset_volume()
165 g_unix_mount_get_root (GMount *mount) in g_unix_mount_get_root() argument
167 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_get_root()
173 g_unix_mount_get_icon (GMount *mount) in g_unix_mount_get_icon() argument
175 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_get_icon()
181 g_unix_mount_get_symbolic_icon (GMount *mount) in g_unix_mount_get_symbolic_icon() argument
183 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_get_symbolic_icon()
189 g_unix_mount_get_uuid (GMount *mount) in g_unix_mount_get_uuid() argument
195 g_unix_mount_get_name (GMount *mount) in g_unix_mount_get_name() argument
197 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_get_name()
203 _g_unix_mount_has_mount_path (GUnixMount *mount, in _g_unix_mount_has_mount_path() argument
206 return strcmp (mount->mount_path, mount_path) == 0; in _g_unix_mount_has_mount_path()
210 g_unix_mount_get_drive (GMount *mount) in g_unix_mount_get_drive() argument
212 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_get_drive()
221 g_unix_mount_get_volume (GMount *mount) in g_unix_mount_get_volume() argument
223 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_get_volume()
232 g_unix_mount_can_unmount (GMount *mount) in g_unix_mount_can_unmount() argument
238 g_unix_mount_can_eject (GMount *mount) in g_unix_mount_can_eject() argument
240 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_can_eject()
301 eject_unmount_do (GMount *mount, in eject_unmount_do() argument
308 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in eject_unmount_do()
312 task = g_task_new (mount, cancellable, callback, user_data); in eject_unmount_do()
318 g_signal_emit_by_name (unix_mount->volume_monitor, "mount-pre-unmount", mount); in eject_unmount_do()
320 g_signal_emit_by_name (mount, "pre-unmount", 0); in eject_unmount_do()
328 g_unix_mount_unmount (GMount *mount, in g_unix_mount_unmount() argument
334 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_unmount()
342 eject_unmount_do (mount, cancellable, callback, user_data, argv, "[gio] unmount mount"); in g_unix_mount_unmount()
346 g_unix_mount_unmount_finish (GMount *mount, in g_unix_mount_unmount_finish() argument
354 g_unix_mount_eject (GMount *mount, in g_unix_mount_eject() argument
360 GUnixMount *unix_mount = G_UNIX_MOUNT (mount); in g_unix_mount_eject()
368 eject_unmount_do (mount, cancellable, callback, user_data, argv, "[gio] eject mount"); in g_unix_mount_eject()
372 g_unix_mount_eject_finish (GMount *mount, in g_unix_mount_eject_finish() argument