{-# LINE 2 "./System/GIO/Volumes/Mount.chs" #-}
module System.GIO.Volumes.Mount (
Mount(..),
MountClass,
mountGetName,
mountGetUUID,
mountGetIcon,
mountGetDrive,
mountGetRoot,
mountGetVolume,
mountGetDefaultLocation,
mountCanUnmount,
mountUnmountWithOperation,
mountUnmountWithOperationFinish,
mountRemount,
mountRemountFinish,
mountCanEject,
mountEjectWithOperation,
mountEjectWithOperationFinish,
mountGuessContentType,
mountGuessContentTypeFinish,
mountGuessContentTypeSync,
mountIsShadowed,
mountShadow,
mountUnshadow,
mountChanged,
mountPreUnmount,
mountUnmounted,
) where
import Control.Monad
import Data.Maybe (fromMaybe)
import System.GIO.Enums
import System.Glib.Attributes
import System.Glib.FFI
import System.Glib.Flags
import System.Glib.GError
import System.Glib.GList
import System.Glib.GObject
import System.Glib.Properties
import System.Glib.Signals
import System.Glib.UTFString
import System.GIO.Async.AsyncResult
{-# LINE 108 "./System/GIO/Volumes/Mount.chs" #-}
import System.GIO.Signals
{-# LINE 109 "./System/GIO/Volumes/Mount.chs" #-}
import System.GIO.Types
{-# LINE 110 "./System/GIO/Volumes/Mount.chs" #-}
{-# LINE 112 "./System/GIO/Volumes/Mount.chs" #-}
mountGetName :: (MountClass mount, GlibString string) => mount
-> IO string
mountGetName :: forall mount string.
(MountClass mount, GlibString string) =>
mount -> IO string
mountGetName mount
mount =
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr Mount -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO (Ptr CChar)
g_mount_get_name Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
IO (Ptr CChar) -> (Ptr CChar -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
readUTFString
mountGetUUID :: (MountClass mount, GlibString string) => mount
-> IO (Maybe string)
mountGetUUID :: forall mount string.
(MountClass mount, GlibString string) =>
mount -> IO (Maybe string)
mountGetUUID mount
mount = do
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr CChar)) -> IO (Ptr CChar))
-> (Ptr Mount -> IO (Ptr CChar)) -> IO (Ptr CChar)
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO (Ptr CChar)
g_mount_get_uuid Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
IO (Ptr CChar)
-> (Ptr CChar -> IO (Maybe string)) -> IO (Maybe string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (Ptr CChar -> IO string) -> Ptr CChar -> IO (Maybe string)
forall a b. (Ptr a -> IO b) -> Ptr a -> IO (Maybe b)
maybePeek Ptr CChar -> IO string
forall s. GlibString s => Ptr CChar -> IO s
readUTFString
mountGetIcon :: MountClass mount => mount
-> IO Icon
mountGetIcon :: forall mount. MountClass mount => mount -> IO Icon
mountGetIcon mount
mount =
(ForeignPtr Icon -> Icon, FinalizerPtr Icon)
-> IO (Ptr Icon) -> IO Icon
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
wrapNewGObject (ForeignPtr Icon -> Icon, FinalizerPtr Icon)
forall {a}. (ForeignPtr Icon -> Icon, FinalizerPtr a)
mkIcon (IO (Ptr Icon) -> IO Icon) -> IO (Ptr Icon) -> IO Icon
forall a b. (a -> b) -> a -> b
$
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO (Ptr Icon)) -> IO (Ptr Icon)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr Icon)) -> IO (Ptr Icon))
-> (Ptr Mount -> IO (Ptr Icon)) -> IO (Ptr Icon)
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO (Ptr Icon)
g_mount_get_icon Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountGetDrive :: MountClass mount => mount
-> IO (Maybe Drive)
mountGetDrive :: forall mount. MountClass mount => mount -> IO (Maybe Drive)
mountGetDrive mount
mount =
(IO (Ptr Drive) -> IO Drive) -> IO (Ptr Drive) -> IO (Maybe Drive)
forall a. (IO (Ptr a) -> IO a) -> IO (Ptr a) -> IO (Maybe a)
maybeNull ((ForeignPtr Drive -> Drive, FinalizerPtr Drive)
-> IO (Ptr Drive) -> IO Drive
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
wrapNewGObject (ForeignPtr Drive -> Drive, FinalizerPtr Drive)
forall {a}. (ForeignPtr Drive -> Drive, FinalizerPtr a)
mkDrive) (IO (Ptr Drive) -> IO (Maybe Drive))
-> IO (Ptr Drive) -> IO (Maybe Drive)
forall a b. (a -> b) -> a -> b
$
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO (Ptr Drive)) -> IO (Ptr Drive)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr Drive)) -> IO (Ptr Drive))
-> (Ptr Mount -> IO (Ptr Drive)) -> IO (Ptr Drive)
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO (Ptr Drive)
g_mount_get_drive Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountGetRoot :: MountClass mount => mount
-> IO File
mountGetRoot :: forall mount. MountClass mount => mount -> IO File
mountGetRoot mount
mount =
(ForeignPtr File -> File, FinalizerPtr File)
-> IO (Ptr File) -> IO File
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
wrapNewGObject (ForeignPtr File -> File, FinalizerPtr File)
forall {a}. (ForeignPtr File -> File, FinalizerPtr a)
mkFile (IO (Ptr File) -> IO File) -> IO (Ptr File) -> IO File
forall a b. (a -> b) -> a -> b
$
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO (Ptr File)) -> IO (Ptr File)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr File)) -> IO (Ptr File))
-> (Ptr Mount -> IO (Ptr File)) -> IO (Ptr File)
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO (Ptr File)
g_mount_get_root Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountGetVolume :: MountClass mount => mount
-> IO (Maybe Volume)
mountGetVolume :: forall mount. MountClass mount => mount -> IO (Maybe Volume)
mountGetVolume mount
mount =
(IO (Ptr Volume) -> IO Volume)
-> IO (Ptr Volume) -> IO (Maybe Volume)
forall a. (IO (Ptr a) -> IO a) -> IO (Ptr a) -> IO (Maybe a)
maybeNull ((ForeignPtr Volume -> Volume, FinalizerPtr Volume)
-> IO (Ptr Volume) -> IO Volume
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
wrapNewGObject (ForeignPtr Volume -> Volume, FinalizerPtr Volume)
forall {a}. (ForeignPtr Volume -> Volume, FinalizerPtr a)
mkVolume) (IO (Ptr Volume) -> IO (Maybe Volume))
-> IO (Ptr Volume) -> IO (Maybe Volume)
forall a b. (a -> b) -> a -> b
$
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount
-> (Ptr Mount -> IO (Ptr Volume)) -> IO (Ptr Volume)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr Volume)) -> IO (Ptr Volume))
-> (Ptr Mount -> IO (Ptr Volume)) -> IO (Ptr Volume)
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO (Ptr Volume)
g_mount_get_volume Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountGetDefaultLocation :: MountClass mount => mount
-> IO File
mountGetDefaultLocation :: forall mount. MountClass mount => mount -> IO File
mountGetDefaultLocation mount
mount =
(ForeignPtr File -> File, FinalizerPtr File)
-> IO (Ptr File) -> IO File
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
wrapNewGObject (ForeignPtr File -> File, FinalizerPtr File)
forall {a}. (ForeignPtr File -> File, FinalizerPtr a)
mkFile (IO (Ptr File) -> IO File) -> IO (Ptr File) -> IO File
forall a b. (a -> b) -> a -> b
$
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO (Ptr File)) -> IO (Ptr File)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr File)) -> IO (Ptr File))
-> (Ptr Mount -> IO (Ptr File)) -> IO (Ptr File)
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO (Ptr File)
g_mount_get_default_location Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountCanUnmount :: MountClass mount => mount
-> IO Bool
mountCanUnmount :: forall mount. MountClass mount => mount -> IO Bool
mountCanUnmount mount
mount =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO CInt) -> IO CInt)
-> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO CInt
g_mount_can_unmount Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountUnmountWithOperation :: MountClass mount
=> mount
-> [MountUnmountFlags]
-> Maybe MountOperation
-> Maybe Cancellable
-> AsyncReadyCallback
-> IO ()
mountUnmountWithOperation :: forall mount.
MountClass mount =>
mount
-> [MountUnmountFlags]
-> Maybe MountOperation
-> Maybe Cancellable
-> AsyncReadyCallback
-> IO ()
mountUnmountWithOperation mount
mount [MountUnmountFlags]
flags Maybe MountOperation
mountOperation Maybe Cancellable
cancellable AsyncReadyCallback
callback = do
GAsyncReadyCallback
cCallback <- AsyncReadyCallback -> IO GAsyncReadyCallback
marshalAsyncReadyCallback AsyncReadyCallback
callback
(\(Mount ForeignPtr Mount
arg1) CInt
arg2 (MountOperation ForeignPtr MountOperation
arg3) (Cancellable ForeignPtr Cancellable
arg4) GAsyncReadyCallback
arg5 Ptr ()
arg6 -> ForeignPtr Mount -> (Ptr Mount -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO ()) -> IO ()) -> (Ptr Mount -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr MountOperation -> (Ptr MountOperation -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr MountOperation
arg3 ((Ptr MountOperation -> IO ()) -> IO ())
-> (Ptr MountOperation -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr MountOperation
argPtr3 ->ForeignPtr Cancellable -> (Ptr Cancellable -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Cancellable
arg4 ((Ptr Cancellable -> IO ()) -> IO ())
-> (Ptr Cancellable -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Cancellable
argPtr4 ->Ptr Mount
-> CInt
-> Ptr MountOperation
-> Ptr Cancellable
-> GAsyncReadyCallback
-> Ptr ()
-> IO ()
g_mount_unmount_with_operation Ptr Mount
argPtr1 CInt
arg2 Ptr MountOperation
argPtr3 Ptr Cancellable
argPtr4 GAsyncReadyCallback
arg5 Ptr ()
arg6)
{-# LINE 192 "./System/GIO/Volumes/Mount.chs" #-}
(mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt)
-> ([MountUnmountFlags] -> Int) -> [MountUnmountFlags] -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [MountUnmountFlags] -> Int
forall a. Flags a => [a] -> Int
fromFlags) [MountUnmountFlags]
flags)
(MountOperation -> Maybe MountOperation -> MountOperation
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr MountOperation -> MountOperation
MountOperation ForeignPtr MountOperation
forall a. ForeignPtr a
nullForeignPtr) Maybe MountOperation
mountOperation)
(Cancellable -> Maybe Cancellable -> Cancellable
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Cancellable -> Cancellable
Cancellable ForeignPtr Cancellable
forall a. ForeignPtr a
nullForeignPtr) Maybe Cancellable
cancellable)
GAsyncReadyCallback
cCallback
(GAsyncReadyCallback -> Ptr ()
forall a b. FunPtr a -> Ptr b
castFunPtrToPtr GAsyncReadyCallback
cCallback)
mountUnmountWithOperationFinish :: MountClass mount
=> mount
-> AsyncResult
-> IO ()
mountUnmountWithOperationFinish :: forall mount. MountClass mount => mount -> AsyncResult -> IO ()
mountUnmountWithOperationFinish mount
mount AsyncResult
result =
(Ptr (Ptr ()) -> IO ()) -> IO ()
forall a. (Ptr (Ptr ()) -> IO a) -> IO a
propagateGError (\Ptr (Ptr ())
gErrorPtr -> do
(\(Mount ForeignPtr Mount
arg1) (AsyncResult ForeignPtr AsyncResult
arg2) Ptr (Ptr ())
arg3 -> ForeignPtr Mount -> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO CInt) -> IO CInt)
-> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr AsyncResult -> (Ptr AsyncResult -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AsyncResult
arg2 ((Ptr AsyncResult -> IO CInt) -> IO CInt)
-> (Ptr AsyncResult -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr AsyncResult
argPtr2 ->Ptr Mount -> Ptr AsyncResult -> Ptr (Ptr ()) -> IO CInt
g_mount_unmount_with_operation_finish Ptr Mount
argPtr1 Ptr AsyncResult
argPtr2 Ptr (Ptr ())
arg3)
{-# LINE 210 "./System/GIO/Volumes/Mount.chs" #-}
(mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
AsyncResult
result
Ptr (Ptr ())
gErrorPtr
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ())
mountRemount :: MountClass mount
=> mount
-> [MountMountFlags]
-> Maybe MountOperation
-> Maybe Cancellable
-> AsyncReadyCallback
-> IO ()
mountRemount :: forall mount.
MountClass mount =>
mount
-> [MountMountFlags]
-> Maybe MountOperation
-> Maybe Cancellable
-> AsyncReadyCallback
-> IO ()
mountRemount mount
mount [MountMountFlags]
flags Maybe MountOperation
mountOperation Maybe Cancellable
cancellable AsyncReadyCallback
callback = do
GAsyncReadyCallback
cCallback <- AsyncReadyCallback -> IO GAsyncReadyCallback
marshalAsyncReadyCallback AsyncReadyCallback
callback
(\(Mount ForeignPtr Mount
arg1) CInt
arg2 (MountOperation ForeignPtr MountOperation
arg3) (Cancellable ForeignPtr Cancellable
arg4) GAsyncReadyCallback
arg5 Ptr ()
arg6 -> ForeignPtr Mount -> (Ptr Mount -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO ()) -> IO ()) -> (Ptr Mount -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr MountOperation -> (Ptr MountOperation -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr MountOperation
arg3 ((Ptr MountOperation -> IO ()) -> IO ())
-> (Ptr MountOperation -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr MountOperation
argPtr3 ->ForeignPtr Cancellable -> (Ptr Cancellable -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Cancellable
arg4 ((Ptr Cancellable -> IO ()) -> IO ())
-> (Ptr Cancellable -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Cancellable
argPtr4 ->Ptr Mount
-> CInt
-> Ptr MountOperation
-> Ptr Cancellable
-> GAsyncReadyCallback
-> Ptr ()
-> IO ()
g_mount_remount Ptr Mount
argPtr1 CInt
arg2 Ptr MountOperation
argPtr3 Ptr Cancellable
argPtr4 GAsyncReadyCallback
arg5 Ptr ()
arg6)
{-# LINE 232 "./System/GIO/Volumes/Mount.chs" #-}
(mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt)
-> ([MountMountFlags] -> Int) -> [MountMountFlags] -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [MountMountFlags] -> Int
forall a. Flags a => [a] -> Int
fromFlags) [MountMountFlags]
flags)
(MountOperation -> Maybe MountOperation -> MountOperation
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr MountOperation -> MountOperation
MountOperation ForeignPtr MountOperation
forall a. ForeignPtr a
nullForeignPtr) Maybe MountOperation
mountOperation)
(Cancellable -> Maybe Cancellable -> Cancellable
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Cancellable -> Cancellable
Cancellable ForeignPtr Cancellable
forall a. ForeignPtr a
nullForeignPtr) Maybe Cancellable
cancellable)
GAsyncReadyCallback
cCallback
(GAsyncReadyCallback -> Ptr ()
forall a b. FunPtr a -> Ptr b
castFunPtrToPtr GAsyncReadyCallback
cCallback)
mountRemountFinish :: MountClass mount
=> mount
-> AsyncResult
-> IO ()
mountRemountFinish :: forall mount. MountClass mount => mount -> AsyncResult -> IO ()
mountRemountFinish mount
mount AsyncResult
result =
(Ptr (Ptr ()) -> IO ()) -> IO ()
forall a. (Ptr (Ptr ()) -> IO a) -> IO a
propagateGError (\Ptr (Ptr ())
gErrorPtr -> do
(\(Mount ForeignPtr Mount
arg1) (AsyncResult ForeignPtr AsyncResult
arg2) Ptr (Ptr ())
arg3 -> ForeignPtr Mount -> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO CInt) -> IO CInt)
-> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr AsyncResult -> (Ptr AsyncResult -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AsyncResult
arg2 ((Ptr AsyncResult -> IO CInt) -> IO CInt)
-> (Ptr AsyncResult -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr AsyncResult
argPtr2 ->Ptr Mount -> Ptr AsyncResult -> Ptr (Ptr ()) -> IO CInt
g_mount_remount_finish Ptr Mount
argPtr1 Ptr AsyncResult
argPtr2 Ptr (Ptr ())
arg3)
{-# LINE 250 "./System/GIO/Volumes/Mount.chs" #-}
(mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
AsyncResult
result
Ptr (Ptr ())
gErrorPtr
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ())
mountCanEject :: MountClass mount => mount
-> IO Bool
mountCanEject :: forall mount. MountClass mount => mount -> IO Bool
mountCanEject mount
mount =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO CInt) -> IO CInt)
-> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO CInt
g_mount_can_eject Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountEjectWithOperation :: MountClass mount
=> mount
-> [MountUnmountFlags]
-> Maybe MountOperation
-> Maybe Cancellable
-> AsyncReadyCallback
-> IO ()
mountEjectWithOperation :: forall mount.
MountClass mount =>
mount
-> [MountUnmountFlags]
-> Maybe MountOperation
-> Maybe Cancellable
-> AsyncReadyCallback
-> IO ()
mountEjectWithOperation mount
mount [MountUnmountFlags]
flags Maybe MountOperation
mountOperation Maybe Cancellable
cancellable AsyncReadyCallback
callback = do
GAsyncReadyCallback
cCallback <- AsyncReadyCallback -> IO GAsyncReadyCallback
marshalAsyncReadyCallback AsyncReadyCallback
callback
(\(Mount ForeignPtr Mount
arg1) CInt
arg2 (MountOperation ForeignPtr MountOperation
arg3) (Cancellable ForeignPtr Cancellable
arg4) GAsyncReadyCallback
arg5 Ptr ()
arg6 -> ForeignPtr Mount -> (Ptr Mount -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO ()) -> IO ()) -> (Ptr Mount -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr MountOperation -> (Ptr MountOperation -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr MountOperation
arg3 ((Ptr MountOperation -> IO ()) -> IO ())
-> (Ptr MountOperation -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr MountOperation
argPtr3 ->ForeignPtr Cancellable -> (Ptr Cancellable -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Cancellable
arg4 ((Ptr Cancellable -> IO ()) -> IO ())
-> (Ptr Cancellable -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Cancellable
argPtr4 ->Ptr Mount
-> CInt
-> Ptr MountOperation
-> Ptr Cancellable
-> GAsyncReadyCallback
-> Ptr ()
-> IO ()
g_mount_eject_with_operation Ptr Mount
argPtr1 CInt
arg2 Ptr MountOperation
argPtr3 Ptr Cancellable
argPtr4 GAsyncReadyCallback
arg5 Ptr ()
arg6)
{-# LINE 275 "./System/GIO/Volumes/Mount.chs" #-}
(mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt)
-> ([MountUnmountFlags] -> Int) -> [MountUnmountFlags] -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [MountUnmountFlags] -> Int
forall a. Flags a => [a] -> Int
fromFlags) [MountUnmountFlags]
flags)
(MountOperation -> Maybe MountOperation -> MountOperation
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr MountOperation -> MountOperation
MountOperation ForeignPtr MountOperation
forall a. ForeignPtr a
nullForeignPtr) Maybe MountOperation
mountOperation)
(Cancellable -> Maybe Cancellable -> Cancellable
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Cancellable -> Cancellable
Cancellable ForeignPtr Cancellable
forall a. ForeignPtr a
nullForeignPtr) Maybe Cancellable
cancellable)
GAsyncReadyCallback
cCallback
(GAsyncReadyCallback -> Ptr ()
forall a b. FunPtr a -> Ptr b
castFunPtrToPtr GAsyncReadyCallback
cCallback)
mountEjectWithOperationFinish :: MountClass mount
=> mount
-> AsyncResult
-> IO ()
mountEjectWithOperationFinish :: forall mount. MountClass mount => mount -> AsyncResult -> IO ()
mountEjectWithOperationFinish mount
mount AsyncResult
result =
(Ptr (Ptr ()) -> IO ()) -> IO ()
forall a. (Ptr (Ptr ()) -> IO a) -> IO a
propagateGError (\Ptr (Ptr ())
gErrorPtr -> do
(\(Mount ForeignPtr Mount
arg1) (AsyncResult ForeignPtr AsyncResult
arg2) Ptr (Ptr ())
arg3 -> ForeignPtr Mount -> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO CInt) -> IO CInt)
-> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr AsyncResult -> (Ptr AsyncResult -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AsyncResult
arg2 ((Ptr AsyncResult -> IO CInt) -> IO CInt)
-> (Ptr AsyncResult -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr AsyncResult
argPtr2 ->Ptr Mount -> Ptr AsyncResult -> Ptr (Ptr ()) -> IO CInt
g_mount_eject_with_operation_finish Ptr Mount
argPtr1 Ptr AsyncResult
argPtr2 Ptr (Ptr ())
arg3)
{-# LINE 292 "./System/GIO/Volumes/Mount.chs" #-}
(mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
AsyncResult
result
Ptr (Ptr ())
gErrorPtr
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ())
mountGuessContentType :: MountClass mount => mount
-> Bool
-> Maybe Cancellable
-> AsyncReadyCallback
-> IO ()
mountGuessContentType :: forall mount.
MountClass mount =>
mount -> Bool -> Maybe Cancellable -> AsyncReadyCallback -> IO ()
mountGuessContentType mount
mount Bool
forceRescan Maybe Cancellable
cancellable AsyncReadyCallback
callback = do
GAsyncReadyCallback
cCallback <- AsyncReadyCallback -> IO GAsyncReadyCallback
marshalAsyncReadyCallback AsyncReadyCallback
callback
(\(Mount ForeignPtr Mount
arg1) CInt
arg2 (Cancellable ForeignPtr Cancellable
arg3) GAsyncReadyCallback
arg4 Ptr ()
arg5 -> ForeignPtr Mount -> (Ptr Mount -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO ()) -> IO ()) -> (Ptr Mount -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr Cancellable -> (Ptr Cancellable -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Cancellable
arg3 ((Ptr Cancellable -> IO ()) -> IO ())
-> (Ptr Cancellable -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Cancellable
argPtr3 ->Ptr Mount
-> CInt
-> Ptr Cancellable
-> GAsyncReadyCallback
-> Ptr ()
-> IO ()
g_mount_guess_content_type Ptr Mount
argPtr1 CInt
arg2 Ptr Cancellable
argPtr3 GAsyncReadyCallback
arg4 Ptr ()
arg5)
{-# LINE 314 "./System/GIO/Volumes/Mount.chs" #-}
(mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
forceRescan)
(Cancellable -> Maybe Cancellable -> Cancellable
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Cancellable -> Cancellable
Cancellable ForeignPtr Cancellable
forall a. ForeignPtr a
nullForeignPtr) Maybe Cancellable
cancellable)
GAsyncReadyCallback
cCallback
(GAsyncReadyCallback -> Ptr ()
forall a b. FunPtr a -> Ptr b
castFunPtrToPtr GAsyncReadyCallback
cCallback)
mountGuessContentTypeFinish :: (MountClass mount, GlibString string) => mount
-> AsyncResult
-> IO [string]
mountGuessContentTypeFinish :: forall mount string.
(MountClass mount, GlibString string) =>
mount -> AsyncResult -> IO [string]
mountGuessContentTypeFinish mount
mount AsyncResult
result =
(Ptr (Ptr ()) -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar))
forall a. (Ptr (Ptr ()) -> IO a) -> IO a
propagateGError ((\(Mount ForeignPtr Mount
arg1) (AsyncResult ForeignPtr AsyncResult
arg2) Ptr (Ptr ())
arg3 -> ForeignPtr Mount
-> (Ptr Mount -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar))
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar)))
-> (Ptr Mount -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar))
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr AsyncResult
-> (Ptr AsyncResult -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AsyncResult
arg2 ((Ptr AsyncResult -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar)))
-> (Ptr AsyncResult -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. (a -> b) -> a -> b
$ \Ptr AsyncResult
argPtr2 ->Ptr Mount
-> Ptr AsyncResult -> Ptr (Ptr ()) -> IO (Ptr (Ptr CChar))
g_mount_guess_content_type_finish Ptr Mount
argPtr1 Ptr AsyncResult
argPtr2 Ptr (Ptr ())
arg3) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount) AsyncResult
result)
IO (Ptr (Ptr CChar))
-> (Ptr (Ptr CChar) -> IO [string]) -> IO [string]
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr (Ptr CChar) -> IO [string]
forall s. GlibString s => Ptr (Ptr CChar) -> IO [s]
readUTFStringArray0
mountGuessContentTypeSync :: (MountClass mount, GlibString string) => mount
-> Bool
-> Maybe Cancellable
-> IO [string]
mountGuessContentTypeSync :: forall mount string.
(MountClass mount, GlibString string) =>
mount -> Bool -> Maybe Cancellable -> IO [string]
mountGuessContentTypeSync mount
mount Bool
forceRescan Maybe Cancellable
cancellable =
(Ptr (Ptr ()) -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar))
forall a. (Ptr (Ptr ()) -> IO a) -> IO a
propagateGError ((\(Mount ForeignPtr Mount
arg1) CInt
arg2 (Cancellable ForeignPtr Cancellable
arg3) Ptr (Ptr ())
arg4 -> ForeignPtr Mount
-> (Ptr Mount -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar))
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar)))
-> (Ptr Mount -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar))
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->ForeignPtr Cancellable
-> (Ptr Cancellable -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Cancellable
arg3 ((Ptr Cancellable -> IO (Ptr (Ptr CChar))) -> IO (Ptr (Ptr CChar)))
-> (Ptr Cancellable -> IO (Ptr (Ptr CChar)))
-> IO (Ptr (Ptr CChar))
forall a b. (a -> b) -> a -> b
$ \Ptr Cancellable
argPtr3 ->Ptr Mount
-> CInt -> Ptr Cancellable -> Ptr (Ptr ()) -> IO (Ptr (Ptr CChar))
g_mount_guess_content_type_sync Ptr Mount
argPtr1 CInt
arg2 Ptr Cancellable
argPtr3 Ptr (Ptr ())
arg4)
{-# LINE 342 "./System/GIO/Volumes/Mount.chs" #-}
(mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
forceRescan)
(Cancellable -> Maybe Cancellable -> Cancellable
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Cancellable -> Cancellable
Cancellable ForeignPtr Cancellable
forall a. ForeignPtr a
nullForeignPtr) Maybe Cancellable
cancellable)
)
IO (Ptr (Ptr CChar))
-> (Ptr (Ptr CChar) -> IO [string]) -> IO [string]
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr (Ptr CChar) -> IO [string]
forall s. GlibString s => Ptr (Ptr CChar) -> IO [s]
readUTFStringArray0
mountIsShadowed :: MountClass mount => mount
-> IO Bool
mountIsShadowed :: forall mount. MountClass mount => mount -> IO Bool
mountIsShadowed mount
mount =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO CInt) -> IO CInt)
-> (Ptr Mount -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO CInt
g_mount_is_shadowed Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountShadow :: MountClass mount => mount -> IO ()
mountShadow :: forall mount. MountClass mount => mount -> IO ()
mountShadow mount
mount =
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO ()) -> IO ()) -> (Ptr Mount -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO ()
g_mount_shadow Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountUnshadow :: MountClass mount => mount -> IO ()
mountUnshadow :: forall mount. MountClass mount => mount -> IO ()
mountUnshadow mount
mount =
(\(Mount ForeignPtr Mount
arg1) -> ForeignPtr Mount -> (Ptr Mount -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Mount
arg1 ((Ptr Mount -> IO ()) -> IO ()) -> (Ptr Mount -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Mount
argPtr1 ->Ptr Mount -> IO ()
g_mount_unshadow Ptr Mount
argPtr1) (mount -> Mount
forall o. MountClass o => o -> Mount
toMount mount
mount)
mountChanged :: MountClass mount => Signal mount (IO ())
mountChanged :: forall mount. MountClass mount => Signal mount (IO ())
mountChanged = (Bool -> mount -> IO () -> IO (ConnectId mount))
-> Signal mount (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (SignalName -> Bool -> mount -> IO () -> IO (ConnectId mount)
forall obj.
GObjectClass obj =>
SignalName -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE SignalName
"changed")
mountPreUnmount :: MountClass mount => Signal mount (IO ())
mountPreUnmount :: forall mount. MountClass mount => Signal mount (IO ())
mountPreUnmount = (Bool -> mount -> IO () -> IO (ConnectId mount))
-> Signal mount (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (SignalName -> Bool -> mount -> IO () -> IO (ConnectId mount)
forall obj.
GObjectClass obj =>
SignalName -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE SignalName
"pre-unmount")
mountUnmounted :: MountClass mount => Signal mount (IO ())
mountUnmounted :: forall mount. MountClass mount => Signal mount (IO ())
mountUnmounted = (Bool -> mount -> IO () -> IO (ConnectId mount))
-> Signal mount (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (SignalName -> Bool -> mount -> IO () -> IO (ConnectId mount)
forall obj.
GObjectClass obj =>
SignalName -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE SignalName
"unmounted")
foreign import ccall safe "g_mount_get_name"
g_mount_get_name :: ((Ptr Mount) -> (IO (Ptr CChar)))
foreign import ccall safe "g_mount_get_uuid"
g_mount_get_uuid :: ((Ptr Mount) -> (IO (Ptr CChar)))
foreign import ccall safe "g_mount_get_icon"
g_mount_get_icon :: ((Ptr Mount) -> (IO (Ptr Icon)))
foreign import ccall safe "g_mount_get_drive"
g_mount_get_drive :: ((Ptr Mount) -> (IO (Ptr Drive)))
foreign import ccall safe "g_mount_get_root"
g_mount_get_root :: ((Ptr Mount) -> (IO (Ptr File)))
foreign import ccall safe "g_mount_get_volume"
g_mount_get_volume :: ((Ptr Mount) -> (IO (Ptr Volume)))
foreign import ccall safe "g_mount_get_default_location"
g_mount_get_default_location :: ((Ptr Mount) -> (IO (Ptr File)))
foreign import ccall safe "g_mount_can_unmount"
g_mount_can_unmount :: ((Ptr Mount) -> (IO CInt))
foreign import ccall safe "g_mount_unmount_with_operation"
g_mount_unmount_with_operation :: ((Ptr Mount) -> (CInt -> ((Ptr MountOperation) -> ((Ptr Cancellable) -> ((FunPtr ((Ptr ()) -> ((Ptr AsyncResult) -> ((Ptr ()) -> (IO ()))))) -> ((Ptr ()) -> (IO ())))))))
foreign import ccall safe "g_mount_unmount_with_operation_finish"
g_mount_unmount_with_operation_finish :: ((Ptr Mount) -> ((Ptr AsyncResult) -> ((Ptr (Ptr ())) -> (IO CInt))))
foreign import ccall safe "g_mount_remount"
g_mount_remount :: ((Ptr Mount) -> (CInt -> ((Ptr MountOperation) -> ((Ptr Cancellable) -> ((FunPtr ((Ptr ()) -> ((Ptr AsyncResult) -> ((Ptr ()) -> (IO ()))))) -> ((Ptr ()) -> (IO ())))))))
foreign import ccall safe "g_mount_remount_finish"
g_mount_remount_finish :: ((Ptr Mount) -> ((Ptr AsyncResult) -> ((Ptr (Ptr ())) -> (IO CInt))))
foreign import ccall safe "g_mount_can_eject"
g_mount_can_eject :: ((Ptr Mount) -> (IO CInt))
foreign import ccall safe "g_mount_eject_with_operation"
g_mount_eject_with_operation :: ((Ptr Mount) -> (CInt -> ((Ptr MountOperation) -> ((Ptr Cancellable) -> ((FunPtr ((Ptr ()) -> ((Ptr AsyncResult) -> ((Ptr ()) -> (IO ()))))) -> ((Ptr ()) -> (IO ())))))))
foreign import ccall safe "g_mount_eject_with_operation_finish"
g_mount_eject_with_operation_finish :: ((Ptr Mount) -> ((Ptr AsyncResult) -> ((Ptr (Ptr ())) -> (IO CInt))))
foreign import ccall safe "g_mount_guess_content_type"
g_mount_guess_content_type :: ((Ptr Mount) -> (CInt -> ((Ptr Cancellable) -> ((FunPtr ((Ptr ()) -> ((Ptr AsyncResult) -> ((Ptr ()) -> (IO ()))))) -> ((Ptr ()) -> (IO ()))))))
foreign import ccall safe "g_mount_guess_content_type_finish"
g_mount_guess_content_type_finish :: ((Ptr Mount) -> ((Ptr AsyncResult) -> ((Ptr (Ptr ())) -> (IO (Ptr (Ptr CChar))))))
foreign import ccall safe "g_mount_guess_content_type_sync"
g_mount_guess_content_type_sync :: ((Ptr Mount) -> (CInt -> ((Ptr Cancellable) -> ((Ptr (Ptr ())) -> (IO (Ptr (Ptr CChar)))))))
foreign import ccall safe "g_mount_is_shadowed"
g_mount_is_shadowed :: ((Ptr Mount) -> (IO CInt))
foreign import ccall safe "g_mount_shadow"
g_mount_shadow :: ((Ptr Mount) -> (IO ()))
foreign import ccall safe "g_mount_unshadow"
g_mount_unshadow :: ((Ptr Mount) -> (IO ()))