static void g_unix_volume_volume_iface_init (GVolumeIface *iface);
+#define g_unix_volume_get_type _g_unix_volume_get_type
G_DEFINE_TYPE_WITH_CODE (GUnixVolume, g_unix_volume, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (G_TYPE_VOLUME,
g_unix_volume_volume_iface_init))
volume = G_UNIX_VOLUME (object);
if (volume->drive)
- g_unix_drive_unset_volume (volume->drive, volume);
+ _g_unix_drive_unset_volume (volume->drive, volume);
g_assert (volume->drive == NULL);
g_free (volume->name);
*
**/
GUnixVolume *
-g_unix_volume_new (GUnixMount *mount,
- GUnixDrive *drive)
+_g_unix_volume_new (GUnixMount *mount,
+ GUnixDrive *drive)
{
GUnixVolume *volume;
GUnixMountType type;
volume = g_object_new (G_TYPE_UNIX_VOLUME, NULL);
volume->drive = drive;
if (drive)
- g_unix_drive_set_volume (drive, volume);
+ _g_unix_drive_set_volume (drive, volume);
volume->mountpoint = g_strdup (mount_path);
type = g_unix_mount_guess_type (mount);
*
**/
void
-g_unix_volume_unmounted (GUnixVolume *volume)
+_g_unix_volume_unmounted (GUnixVolume *volume)
{
if (volume->drive)
{
- g_unix_drive_unset_volume (volume->drive, volume);
+ _g_unix_drive_unset_volume (volume->drive, volume);
volume->drive = NULL;
g_signal_emit_by_name (volume, "changed");
}
*
**/
void
-g_unix_volume_unset_drive (GUnixVolume *volume,
- GUnixDrive *drive)
+_g_unix_volume_unset_drive (GUnixVolume *volume,
+ GUnixDrive *drive)
{
if (volume->drive == drive)
{
* Returns:
**/
gboolean
-g_unix_volume_has_mountpoint (GUnixVolume *volume,
- const char *mountpoint)
+_g_unix_volume_has_mountpoint (GUnixVolume *volume,
+ const char *mountpoint)
{
return strcmp (volume->mountpoint, mountpoint) == 0;
}
static void
g_unix_volume_unmount (GVolume *volume,
+ GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
static void
g_unix_volume_eject (GVolume *volume,
+ GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{