gi-ostree-1.0.13: OSTree bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.OSTree.Callbacks

Description

 
Synopsis

Signals

BootloaderInterfaceGetNameFieldCallback

type BootloaderInterfaceGetNameFieldCallback = Bootloader -> IO Text Source #

No description available in the introspection data.

type C_BootloaderInterfaceGetNameFieldCallback = Ptr Bootloader -> IO CString Source #

Type for the callback on the (unwrapped) C side.

dynamic_BootloaderInterfaceGetNameFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_BootloaderInterfaceGetNameFieldCallback -> Bootloader -> m Text Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

BootloaderInterfaceIsAtomicFieldCallback

type BootloaderInterfaceIsAtomicFieldCallback = Bootloader -> IO Bool Source #

No description available in the introspection data.

type C_BootloaderInterfaceIsAtomicFieldCallback = Ptr Bootloader -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

dynamic_BootloaderInterfaceIsAtomicFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_BootloaderInterfaceIsAtomicFieldCallback -> Bootloader -> m Bool Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

BootloaderInterfacePostBlsSyncFieldCallback

type BootloaderInterfacePostBlsSyncFieldCallback Source #

Arguments

 = Bootloader 
-> Cancellable 
-> IO ()

(Can throw GError)

No description available in the introspection data.

type C_BootloaderInterfacePostBlsSyncFieldCallback = Ptr Bootloader -> Ptr Cancellable -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

dynamic_BootloaderInterfacePostBlsSyncFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> FunPtr C_BootloaderInterfacePostBlsSyncFieldCallback 
-> Bootloader 
-> a 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

BootloaderInterfaceQueryFieldCallback

type BootloaderInterfaceQueryFieldCallback Source #

Arguments

 = Bootloader 
-> Bool 
-> Cancellable 
-> IO ()

(Can throw GError)

No description available in the introspection data.

type C_BootloaderInterfaceQueryFieldCallback = Ptr Bootloader -> CInt -> Ptr Cancellable -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

dynamic_BootloaderInterfaceQueryFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> FunPtr C_BootloaderInterfaceQueryFieldCallback 
-> Bootloader 
-> Bool 
-> a 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

CmdPrivateVTableOstreeFinalizeStagedFieldCallback

type C_CmdPrivateVTableOstreeFinalizeStagedFieldCallback = Ptr Sysroot -> Ptr Cancellable -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type CmdPrivateVTableOstreeFinalizeStagedFieldCallback Source #

Arguments

 = Sysroot 
-> Cancellable 
-> IO ()

(Can throw GError)

No description available in the introspection data.

dynamic_CmdPrivateVTableOstreeFinalizeStagedFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) 
=> FunPtr C_CmdPrivateVTableOstreeFinalizeStagedFieldCallback 
-> a 
-> b 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

CmdPrivateVTableOstreeGenerateGrub2ConfigFieldCallback

type C_CmdPrivateVTableOstreeGenerateGrub2ConfigFieldCallback = Ptr Sysroot -> Int32 -> Int32 -> Ptr Cancellable -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type CmdPrivateVTableOstreeGenerateGrub2ConfigFieldCallback Source #

Arguments

 = Sysroot 
-> Int32 
-> Int32 
-> Cancellable 
-> IO ()

(Can throw GError)

No description available in the introspection data.

dynamic_CmdPrivateVTableOstreeGenerateGrub2ConfigFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) 
=> FunPtr C_CmdPrivateVTableOstreeGenerateGrub2ConfigFieldCallback 
-> a 
-> Int32 
-> Int32 
-> b 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

CmdPrivateVTableOstreeRepoVerifyBindingsFieldCallback

type C_CmdPrivateVTableOstreeRepoVerifyBindingsFieldCallback = CString -> CString -> Ptr GVariant -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type CmdPrivateVTableOstreeRepoVerifyBindingsFieldCallback Source #

Arguments

 = Text 
-> Text 
-> GVariant 
-> IO ()

(Can throw GError)

No description available in the introspection data.

dynamic_CmdPrivateVTableOstreeRepoVerifyBindingsFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_CmdPrivateVTableOstreeRepoVerifyBindingsFieldCallback 
-> Text 
-> Text 
-> GVariant 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

CmdPrivateVTableOstreeStaticDeltaDeleteFieldCallback

type C_CmdPrivateVTableOstreeStaticDeltaDeleteFieldCallback = Ptr Repo -> CString -> Ptr Cancellable -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type CmdPrivateVTableOstreeStaticDeltaDeleteFieldCallback Source #

Arguments

 = Repo 
-> Text 
-> Cancellable 
-> IO ()

(Can throw GError)

No description available in the introspection data.

dynamic_CmdPrivateVTableOstreeStaticDeltaDeleteFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) 
=> FunPtr C_CmdPrivateVTableOstreeStaticDeltaDeleteFieldCallback 
-> a 
-> Text 
-> b 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

CmdPrivateVTableOstreeStaticDeltaDumpFieldCallback

type C_CmdPrivateVTableOstreeStaticDeltaDumpFieldCallback = Ptr Repo -> CString -> Ptr Cancellable -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type CmdPrivateVTableOstreeStaticDeltaDumpFieldCallback Source #

Arguments

 = Repo 
-> Text 
-> Cancellable 
-> IO ()

(Can throw GError)

No description available in the introspection data.

dynamic_CmdPrivateVTableOstreeStaticDeltaDumpFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) 
=> FunPtr C_CmdPrivateVTableOstreeStaticDeltaDumpFieldCallback 
-> a 
-> Text 
-> b 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

CmdPrivateVTableOstreeStaticDeltaQueryExistsFieldCallback

type C_CmdPrivateVTableOstreeStaticDeltaQueryExistsFieldCallback = Ptr Repo -> CString -> CInt -> Ptr Cancellable -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type CmdPrivateVTableOstreeStaticDeltaQueryExistsFieldCallback Source #

Arguments

 = Repo 
-> Text 
-> Bool 
-> Cancellable 
-> IO ()

(Can throw GError)

No description available in the introspection data.

dynamic_CmdPrivateVTableOstreeStaticDeltaQueryExistsFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) 
=> FunPtr C_CmdPrivateVTableOstreeStaticDeltaQueryExistsFieldCallback 
-> a 
-> Text 
-> Bool 
-> b 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

CmdPrivateVTableOstreeSystemGeneratorFieldCallback

type C_CmdPrivateVTableOstreeSystemGeneratorFieldCallback = CString -> CString -> CString -> CString -> Ptr (Ptr GError) -> IO CInt Source #

Type for the callback on the (unwrapped) C side.

type CmdPrivateVTableOstreeSystemGeneratorFieldCallback Source #

Arguments

 = Text 
-> Text 
-> Text 
-> Text 
-> IO ()

(Can throw GError)

No description available in the introspection data.

dynamic_CmdPrivateVTableOstreeSystemGeneratorFieldCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_CmdPrivateVTableOstreeSystemGeneratorFieldCallback 
-> Text 
-> Text 
-> Text 
-> Text 
-> m ()

(Can throw GError)

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

RepoCheckoutFilter

type C_RepoCheckoutFilter = Ptr Repo -> CString -> Ptr () -> Ptr () -> IO CUInt Source #

Type for the callback on the (unwrapped) C side.

type RepoCheckoutFilter Source #

Arguments

 = Repo

repo: Repo

-> Text

path: Path to file

-> Ptr ()

stbuf: File information

-> IO RepoCheckoutFilterResult

Returns: RepoCheckoutFilterResult saying whether or not to checkout this file

No description available in the introspection data.

Since: 2018.2

type RepoCheckoutFilter_WithClosures Source #

Arguments

 = Repo

repo: Repo

-> Text

path: Path to file

-> Ptr ()

stbuf: File information

-> Ptr ()

userData: User data

-> IO RepoCheckoutFilterResult

Returns: RepoCheckoutFilterResult saying whether or not to checkout this file

No description available in the introspection data.

Since: 2018.2

drop_closures_RepoCheckoutFilter :: RepoCheckoutFilter -> RepoCheckoutFilter_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_RepoCheckoutFilter Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepo a) 
=> FunPtr C_RepoCheckoutFilter 
-> a

repo: Repo

-> Text

path: Path to file

-> Ptr ()

stbuf: File information

-> Ptr ()

userData: User data

-> m RepoCheckoutFilterResult

Returns: RepoCheckoutFilterResult saying whether or not to checkout this file

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_RepoCheckoutFilter :: MonadIO m => RepoCheckoutFilter -> m (GClosure C_RepoCheckoutFilter) Source #

Wrap the callback into a GClosure.

mk_RepoCheckoutFilter :: C_RepoCheckoutFilter -> IO (FunPtr C_RepoCheckoutFilter) Source #

Generate a function pointer callable from C code, from a C_RepoCheckoutFilter.

noRepoCheckoutFilter :: Maybe RepoCheckoutFilter Source #

A convenience synonym for Nothing :: Maybe RepoCheckoutFilter.

RepoCommitFilter

type C_RepoCommitFilter = Ptr Repo -> CString -> Ptr FileInfo -> Ptr () -> IO CUInt Source #

Type for the callback on the (unwrapped) C side.

type RepoCommitFilter Source #

Arguments

 = Repo

repo: Repo

-> Text

path: Path to file

-> FileInfo

fileInfo: File information

-> IO RepoCommitFilterResult

Returns: RepoCommitFilterResult saying whether or not to commit this file

No description available in the introspection data.

type RepoCommitFilter_WithClosures Source #

Arguments

 = Repo

repo: Repo

-> Text

path: Path to file

-> FileInfo

fileInfo: File information

-> Ptr ()

userData: User data

-> IO RepoCommitFilterResult

Returns: RepoCommitFilterResult saying whether or not to commit this file

No description available in the introspection data.

drop_closures_RepoCommitFilter :: RepoCommitFilter -> RepoCommitFilter_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_RepoCommitFilter Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepo a, IsFileInfo b) 
=> FunPtr C_RepoCommitFilter 
-> a

repo: Repo

-> Text

path: Path to file

-> b

fileInfo: File information

-> Ptr ()

userData: User data

-> m RepoCommitFilterResult

Returns: RepoCommitFilterResult saying whether or not to commit this file

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

genClosure_RepoCommitFilter :: MonadIO m => RepoCommitFilter -> m (GClosure C_RepoCommitFilter) Source #

Wrap the callback into a GClosure.

mk_RepoCommitFilter :: C_RepoCommitFilter -> IO (FunPtr C_RepoCommitFilter) Source #

Generate a function pointer callable from C code, from a C_RepoCommitFilter.

noRepoCommitFilter :: Maybe RepoCommitFilter Source #

A convenience synonym for Nothing :: Maybe RepoCommitFilter.

RepoCommitModifierXattrCallback

type C_RepoCommitModifierXattrCallback = Ptr Repo -> CString -> Ptr FileInfo -> Ptr () -> IO (Ptr GVariant) Source #

Type for the callback on the (unwrapped) C side.

type RepoCommitModifierXattrCallback = Repo -> Text -> FileInfo -> IO GVariant Source #

No description available in the introspection data.

type RepoCommitModifierXattrCallback_WithClosures = Repo -> Text -> FileInfo -> Ptr () -> IO GVariant Source #

No description available in the introspection data.

dynamic_RepoCommitModifierXattrCallback :: (HasCallStack, MonadIO m, IsRepo a, IsFileInfo b) => FunPtr C_RepoCommitModifierXattrCallback -> a -> Text -> b -> Ptr () -> m GVariant Source #

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.

RepoImportArchiveTranslatePathname

type C_RepoImportArchiveTranslatePathname = Ptr Repo -> Ptr () -> CString -> Ptr () -> IO CString Source #

Type for the callback on the (unwrapped) C side.

type RepoImportArchiveTranslatePathname Source #

Arguments

 = Repo

repo: Repo

-> Ptr ()

stbuf: Stat buffer

-> Text

srcPath: Path in the archive

-> IO Text 

Possibly change a pathname while importing an archive. If Nothing is returned, then srcPath will be used unchanged. Otherwise, return a new pathname which will be freed via g_free().

This pathname translation will be performed *before* any processing from an active OstreeRepoCommitModifier. Will be invoked for all directory and file types, first with outer directories, then their sub-files and directories.

Note that enabling pathname translation will always override the setting for use_ostree_convention.

Since: 2017.11

type RepoImportArchiveTranslatePathname_WithClosures Source #

Arguments

 = Repo

repo: Repo

-> Ptr ()

stbuf: Stat buffer

-> Text

srcPath: Path in the archive

-> Ptr ()

userData: User data

-> IO Text 

Possibly change a pathname while importing an archive. If Nothing is returned, then srcPath will be used unchanged. Otherwise, return a new pathname which will be freed via g_free().

This pathname translation will be performed *before* any processing from an active OstreeRepoCommitModifier. Will be invoked for all directory and file types, first with outer directories, then their sub-files and directories.

Note that enabling pathname translation will always override the setting for use_ostree_convention.

Since: 2017.11

dynamic_RepoImportArchiveTranslatePathname Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepo a) 
=> FunPtr C_RepoImportArchiveTranslatePathname 
-> a

repo: Repo

-> Ptr ()

stbuf: Stat buffer

-> Text

srcPath: Path in the archive

-> Ptr ()

userData: User data

-> m Text 

Given a pointer to a foreign C function, wrap it into a function callable from Haskell.