gi-ggit-1.0.9: libgit2-glib bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Callbacks

Description

 
Synopsis

Signals

ConfigCallback

type C_ConfigCallback = Ptr ConfigEntry -> Ptr () -> IO Int32 Source #

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

type ConfigCallback Source #

Arguments

 = ConfigEntry

entry: a ConfigEntry.

-> IO Int32

Returns: 0 to go for the next config value or a Error in case there was an error.

The type of the callback functions for retrieving values from a Config. See configForeach.

type ConfigCallback_WithClosures Source #

Arguments

 = ConfigEntry

entry: a ConfigEntry.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go for the next config value or a Error in case there was an error.

The type of the callback functions for retrieving values from a Config. See configForeach.

drop_closures_ConfigCallback :: ConfigCallback -> ConfigCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ConfigCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_ConfigCallback 
-> ConfigEntry

entry: a ConfigEntry.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go for the next config value or a Error in case there was an error.

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

genClosure_ConfigCallback :: MonadIO m => ConfigCallback -> m (GClosure C_ConfigCallback) Source #

Wrap the callback into a GClosure.

mk_ConfigCallback :: C_ConfigCallback -> IO (FunPtr C_ConfigCallback) Source #

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

noConfigCallback :: Maybe ConfigCallback Source #

A convenience synonym for Nothing :: Maybe ConfigCallback.

ConfigMatchCallback

type C_ConfigMatchCallback = Ptr MatchInfo -> CString -> Ptr () -> IO Int32 Source #

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

type ConfigMatchCallback Source #

Arguments

 = MatchInfo

matchInfo: the match

-> Text

value: the value

-> IO Int32

Returns: 0 to go for the next config value or a Error in case there was an error.

The type of the callback functions for retrieving values from a Config using a regular expression. See configMatchForeach.

type ConfigMatchCallback_WithClosures Source #

Arguments

 = MatchInfo

matchInfo: the match

-> Text

value: the value

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go for the next config value or a Error in case there was an error.

The type of the callback functions for retrieving values from a Config using a regular expression. See configMatchForeach.

drop_closures_ConfigMatchCallback :: ConfigMatchCallback -> ConfigMatchCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ConfigMatchCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_ConfigMatchCallback 
-> MatchInfo

matchInfo: the match

-> Text

value: the value

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go for the next config value or a Error in case there was an error.

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

genClosure_ConfigMatchCallback :: MonadIO m => ConfigMatchCallback -> m (GClosure C_ConfigMatchCallback) Source #

Wrap the callback into a GClosure.

mk_ConfigMatchCallback :: C_ConfigMatchCallback -> IO (FunPtr C_ConfigMatchCallback) Source #

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

noConfigMatchCallback :: Maybe ConfigMatchCallback Source #

A convenience synonym for Nothing :: Maybe ConfigMatchCallback.

CredAcquireCallback

type C_CredAcquireCallback = CString -> CString -> Word32 -> Ptr Cred -> Ptr () -> IO Int32 Source #

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

type CredAcquireCallback Source #

Arguments

 = Text

url: the resource for which we are demanding a credential.

-> Maybe Text

usernameFromUrl: The username that was embedded in a "userhost" remote url, or NULL if not included.

-> Word32

allowedTypes: a bitmask stating which cred types are OK to return.

-> Cred

cred: newly created credential object.

-> IO Int32 

Signature of a function which acquires a credential object.

type CredAcquireCallback_WithClosures Source #

Arguments

 = Text

url: the resource for which we are demanding a credential.

-> Maybe Text

usernameFromUrl: The username that was embedded in a "userhost" remote url, or NULL if not included.

-> Word32

allowedTypes: a bitmask stating which cred types are OK to return.

-> Cred

cred: newly created credential object.

-> Ptr ()

userData: user-supplied data.

-> IO Int32 

Signature of a function which acquires a credential object.

drop_closures_CredAcquireCallback :: CredAcquireCallback -> CredAcquireCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_CredAcquireCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsCred a) 
=> FunPtr C_CredAcquireCallback 
-> Text

url: the resource for which we are demanding a credential.

-> Maybe Text

usernameFromUrl: The username that was embedded in a "userhost" remote url, or NULL if not included.

-> Word32

allowedTypes: a bitmask stating which cred types are OK to return.

-> a

cred: newly created credential object.

-> Ptr ()

userData: user-supplied data.

-> m Int32 

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

genClosure_CredAcquireCallback :: MonadIO m => CredAcquireCallback -> m (GClosure C_CredAcquireCallback) Source #

Wrap the callback into a GClosure.

mk_CredAcquireCallback :: C_CredAcquireCallback -> IO (FunPtr C_CredAcquireCallback) Source #

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

noCredAcquireCallback :: Maybe CredAcquireCallback Source #

A convenience synonym for Nothing :: Maybe CredAcquireCallback.

DiffBinaryCallback

type C_DiffBinaryCallback = Ptr DiffDelta -> Ptr DiffBinary -> Ptr () -> IO Int32 Source #

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

type DiffBinaryCallback Source #

Arguments

 = DiffDelta

delta: a DiffDelta.

-> DiffBinary

binary: a DiffBinary.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

Called for each file.

type DiffBinaryCallback_WithClosures Source #

Arguments

 = DiffDelta

delta: a DiffDelta.

-> DiffBinary

binary: a DiffBinary.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

Called for each file.

drop_closures_DiffBinaryCallback :: DiffBinaryCallback -> DiffBinaryCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DiffBinaryCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_DiffBinaryCallback 
-> DiffDelta

delta: a DiffDelta.

-> DiffBinary

binary: a DiffBinary.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go continue or a Error in case there was an error.

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

genClosure_DiffBinaryCallback :: MonadIO m => DiffBinaryCallback -> m (GClosure C_DiffBinaryCallback) Source #

Wrap the callback into a GClosure.

mk_DiffBinaryCallback :: C_DiffBinaryCallback -> IO (FunPtr C_DiffBinaryCallback) Source #

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

noDiffBinaryCallback :: Maybe DiffBinaryCallback Source #

A convenience synonym for Nothing :: Maybe DiffBinaryCallback.

DiffFileCallback

type C_DiffFileCallback = Ptr DiffDelta -> CFloat -> Ptr () -> IO Int32 Source #

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

type DiffFileCallback Source #

Arguments

 = DiffDelta

delta: a DiffDelta.

-> Float

progress: the progress.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

Called for each file.

type DiffFileCallback_WithClosures Source #

Arguments

 = DiffDelta

delta: a DiffDelta.

-> Float

progress: the progress.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

Called for each file.

drop_closures_DiffFileCallback :: DiffFileCallback -> DiffFileCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DiffFileCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_DiffFileCallback 
-> DiffDelta

delta: a DiffDelta.

-> Float

progress: the progress.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go continue or a Error in case there was an error.

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

genClosure_DiffFileCallback :: MonadIO m => DiffFileCallback -> m (GClosure C_DiffFileCallback) Source #

Wrap the callback into a GClosure.

mk_DiffFileCallback :: C_DiffFileCallback -> IO (FunPtr C_DiffFileCallback) Source #

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

noDiffFileCallback :: Maybe DiffFileCallback Source #

A convenience synonym for Nothing :: Maybe DiffFileCallback.

DiffHunkCallback

type C_DiffHunkCallback = Ptr DiffDelta -> Ptr DiffHunk -> Ptr () -> IO Int32 Source #

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

type DiffHunkCallback Source #

Arguments

 = DiffDelta

delta: a DiffDelta.

-> DiffHunk

hunk: a DiffHunk.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

Called for each hunk.

type DiffHunkCallback_WithClosures Source #

Arguments

 = DiffDelta

delta: a DiffDelta.

-> DiffHunk

hunk: a DiffHunk.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

Called for each hunk.

drop_closures_DiffHunkCallback :: DiffHunkCallback -> DiffHunkCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DiffHunkCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_DiffHunkCallback 
-> DiffDelta

delta: a DiffDelta.

-> DiffHunk

hunk: a DiffHunk.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go continue or a Error in case there was an error.

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

genClosure_DiffHunkCallback :: MonadIO m => DiffHunkCallback -> m (GClosure C_DiffHunkCallback) Source #

Wrap the callback into a GClosure.

mk_DiffHunkCallback :: C_DiffHunkCallback -> IO (FunPtr C_DiffHunkCallback) Source #

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

noDiffHunkCallback :: Maybe DiffHunkCallback Source #

A convenience synonym for Nothing :: Maybe DiffHunkCallback.

DiffLineCallback

type C_DiffLineCallback = Ptr DiffDelta -> Ptr DiffHunk -> Ptr DiffLine -> Ptr () -> IO Int32 Source #

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

type DiffLineCallback Source #

Arguments

 = DiffDelta

delta: a DiffDelta.

-> Maybe DiffHunk

hunk: a DiffHunk.

-> DiffLine

line: a DiffLine.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

Called for each line.

type DiffLineCallback_WithClosures Source #

Arguments

 = DiffDelta

delta: a DiffDelta.

-> Maybe DiffHunk

hunk: a DiffHunk.

-> DiffLine

line: a DiffLine.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

Called for each line.

drop_closures_DiffLineCallback :: DiffLineCallback -> DiffLineCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_DiffLineCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_DiffLineCallback 
-> DiffDelta

delta: a DiffDelta.

-> Maybe DiffHunk

hunk: a DiffHunk.

-> DiffLine

line: a DiffLine.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go continue or a Error in case there was an error.

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

genClosure_DiffLineCallback :: MonadIO m => DiffLineCallback -> m (GClosure C_DiffLineCallback) Source #

Wrap the callback into a GClosure.

mk_DiffLineCallback :: C_DiffLineCallback -> IO (FunPtr C_DiffLineCallback) Source #

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

noDiffLineCallback :: Maybe DiffLineCallback Source #

A convenience synonym for Nothing :: Maybe DiffLineCallback.

DiffSimilarityMetricBufferSignatureCallback

type C_DiffSimilarityMetricBufferSignatureCallback = Ptr DiffFile -> CString -> Word64 -> Ptr () -> Ptr () -> IO Int32 Source #

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

type DiffSimilarityMetricBufferSignatureCallback = DiffFile -> Text -> Word64 -> Ptr () -> IO Int32 Source #

No description available in the introspection data.

type DiffSimilarityMetricBufferSignatureCallback_WithClosures = DiffFile -> Text -> Word64 -> Ptr () -> Ptr () -> IO Int32 Source #

No description available in the introspection data.

dynamic_DiffSimilarityMetricBufferSignatureCallback :: (HasCallStack, MonadIO m) => FunPtr C_DiffSimilarityMetricBufferSignatureCallback -> DiffFile -> Text -> Word64 -> Ptr () -> Ptr () -> m Int32 Source #

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

DiffSimilarityMetricFileSignatureCallback

type C_DiffSimilarityMetricFileSignatureCallback = Ptr DiffFile -> CString -> Ptr () -> Ptr () -> IO Int32 Source #

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

type DiffSimilarityMetricFileSignatureCallback = DiffFile -> Text -> Ptr () -> IO Int32 Source #

No description available in the introspection data.

type DiffSimilarityMetricFileSignatureCallback_WithClosures = DiffFile -> Text -> Ptr () -> Ptr () -> IO Int32 Source #

No description available in the introspection data.

dynamic_DiffSimilarityMetricFileSignatureCallback :: (HasCallStack, MonadIO m) => FunPtr C_DiffSimilarityMetricFileSignatureCallback -> DiffFile -> Text -> Ptr () -> Ptr () -> m Int32 Source #

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

DiffSimilarityMetricFreeSignatureCallback

type C_DiffSimilarityMetricFreeSignatureCallback = Ptr () -> Ptr () -> IO () Source #

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

type DiffSimilarityMetricFreeSignatureCallback = Ptr () -> IO () Source #

No description available in the introspection data.

type DiffSimilarityMetricFreeSignatureCallback_WithClosures = Ptr () -> Ptr () -> IO () Source #

No description available in the introspection data.

dynamic_DiffSimilarityMetricFreeSignatureCallback :: (HasCallStack, MonadIO m) => FunPtr C_DiffSimilarityMetricFreeSignatureCallback -> Ptr () -> Ptr () -> m () Source #

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

DiffSimilarityMetricSimilarityCallback

type C_DiffSimilarityMetricSimilarityCallback = Int32 -> Ptr () -> Ptr () -> Ptr () -> IO Int32 Source #

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

type DiffSimilarityMetricSimilarityCallback = Int32 -> Ptr () -> Ptr () -> IO Int32 Source #

No description available in the introspection data.

type DiffSimilarityMetricSimilarityCallback_WithClosures = Int32 -> Ptr () -> Ptr () -> Ptr () -> IO Int32 Source #

No description available in the introspection data.

dynamic_DiffSimilarityMetricSimilarityCallback :: (HasCallStack, MonadIO m) => FunPtr C_DiffSimilarityMetricSimilarityCallback -> Int32 -> Ptr () -> Ptr () -> Ptr () -> m Int32 Source #

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

NoteCallback

type C_NoteCallback = Ptr OId -> Ptr OId -> Ptr () -> IO Int32 Source #

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

type NoteCallback Source #

Arguments

 = OId

blobId: id of the blob containing the message.

-> OId

annotatedObjectId: id of the git object being annotated.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

When iterating over all the notes, callback that will be issued per note. See repositoryNoteForeach.

type NoteCallback_WithClosures Source #

Arguments

 = OId

blobId: id of the blob containing the message.

-> OId

annotatedObjectId: id of the git object being annotated.

-> Ptr ()

userData: user-suplied data.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

When iterating over all the notes, callback that will be issued per note. See repositoryNoteForeach.

drop_closures_NoteCallback :: NoteCallback -> NoteCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_NoteCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_NoteCallback 
-> OId

blobId: id of the blob containing the message.

-> OId

annotatedObjectId: id of the git object being annotated.

-> Ptr ()

userData: user-suplied data.

-> m Int32

Returns: 0 to go continue or a Error in case there was an error.

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

genClosure_NoteCallback :: MonadIO m => NoteCallback -> m (GClosure C_NoteCallback) Source #

Wrap the callback into a GClosure.

mk_NoteCallback :: C_NoteCallback -> IO (FunPtr C_NoteCallback) Source #

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

noNoteCallback :: Maybe NoteCallback Source #

A convenience synonym for Nothing :: Maybe NoteCallback.

noNoteCallback_WithClosures :: Maybe NoteCallback_WithClosures Source #

A convenience synonym for Nothing :: Maybe NoteCallback_WithClosures.

ReferencesCallback

type C_ReferencesCallback = Ptr Ref -> Ptr () -> IO Int32 Source #

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

type ReferencesCallback Source #

Arguments

 = Ref

reference: the reference.

-> IO Int32

Returns: 0 to go for the next references or a Error in case there was an error.

The type of the callback functions for retrieving the references in a Repository. See repositoryReferencesForeach.

type ReferencesCallback_WithClosures Source #

Arguments

 = Ref

reference: the reference.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go for the next references or a Error in case there was an error.

The type of the callback functions for retrieving the references in a Repository. See repositoryReferencesForeach.

drop_closures_ReferencesCallback :: ReferencesCallback -> ReferencesCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_ReferencesCallback Source #

Arguments

:: (HasCallStack, MonadIO m, IsRef a) 
=> FunPtr C_ReferencesCallback 
-> a

reference: the reference.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go for the next references or a Error in case there was an error.

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

genClosure_ReferencesCallback :: MonadIO m => ReferencesCallback -> m (GClosure C_ReferencesCallback) Source #

Wrap the callback into a GClosure.

mk_ReferencesCallback :: C_ReferencesCallback -> IO (FunPtr C_ReferencesCallback) Source #

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

noReferencesCallback :: Maybe ReferencesCallback Source #

A convenience synonym for Nothing :: Maybe ReferencesCallback.

ReferencesNameCallback

type C_ReferencesNameCallback = CString -> Ptr () -> IO Int32 Source #

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

type ReferencesNameCallback Source #

Arguments

 = Text

name: the name of the reference

-> IO Int32

Returns: 0 to go for the next references or a Error in case there was an error.

The type of the callback functions for retrieving the references in a Repository. See repositoryReferencesForeachName.

type ReferencesNameCallback_WithClosures Source #

Arguments

 = Text

name: the name of the reference

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go for the next references or a Error in case there was an error.

The type of the callback functions for retrieving the references in a Repository. See repositoryReferencesForeachName.

dynamic_ReferencesNameCallback Source #

Arguments

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

name: the name of the reference

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go for the next references or a Error in case there was an error.

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

genClosure_ReferencesNameCallback :: MonadIO m => ReferencesNameCallback -> m (GClosure C_ReferencesNameCallback) Source #

Wrap the callback into a GClosure.

mk_ReferencesNameCallback :: C_ReferencesNameCallback -> IO (FunPtr C_ReferencesNameCallback) Source #

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

noReferencesNameCallback :: Maybe ReferencesNameCallback Source #

A convenience synonym for Nothing :: Maybe ReferencesNameCallback.

RemoteListCallback

type C_RemoteListCallback = CString -> Ptr OId -> Ptr OId -> CInt -> Ptr () -> IO Int32 Source #

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

type RemoteListCallback Source #

Arguments

 = Text

name: the name of the reference.

-> OId

oid: the reference's oid.

-> OId

loid: the reference's loid.

-> Bool

local: if available locally.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

The type of the callback functions for listing the references of a Remote. See remoteList.

type RemoteListCallback_WithClosures Source #

Arguments

 = Text

name: the name of the reference.

-> OId

oid: the reference's oid.

-> OId

loid: the reference's loid.

-> Bool

local: if available locally.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

The type of the callback functions for listing the references of a Remote. See remoteList.

drop_closures_RemoteListCallback :: RemoteListCallback -> RemoteListCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_RemoteListCallback Source #

Arguments

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

name: the name of the reference.

-> OId

oid: the reference's oid.

-> OId

loid: the reference's loid.

-> Bool

local: if available locally.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go continue or a Error in case there was an error.

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

genClosure_RemoteListCallback :: MonadIO m => RemoteListCallback -> m (GClosure C_RemoteListCallback) Source #

Wrap the callback into a GClosure.

mk_RemoteListCallback :: C_RemoteListCallback -> IO (FunPtr C_RemoteListCallback) Source #

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

noRemoteListCallback :: Maybe RemoteListCallback Source #

A convenience synonym for Nothing :: Maybe RemoteListCallback.

StashCallback

type C_StashCallback = Word64 -> CString -> Ptr OId -> Ptr () -> IO Int32 Source #

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

type StashCallback Source #

Arguments

 = Word64

index: the position within the stash list. 0 points to the most recent stashed state.

-> Text

message: the stash message.

-> OId

stashOid: the commit oid of the stashed state.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

When iterating over all the stashed states, callback that will be issued per entry. See repositoryStashForeach.

type StashCallback_WithClosures Source #

Arguments

 = Word64

index: the position within the stash list. 0 points to the most recent stashed state.

-> Text

message: the stash message.

-> OId

stashOid: the commit oid of the stashed state.

-> Ptr ()

userData: user-suplied data.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

When iterating over all the stashed states, callback that will be issued per entry. See repositoryStashForeach.

drop_closures_StashCallback :: StashCallback -> StashCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_StashCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_StashCallback 
-> Word64

index: the position within the stash list. 0 points to the most recent stashed state.

-> Text

message: the stash message.

-> OId

stashOid: the commit oid of the stashed state.

-> Ptr ()

userData: user-suplied data.

-> m Int32

Returns: 0 to go continue or a Error in case there was an error.

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

genClosure_StashCallback :: MonadIO m => StashCallback -> m (GClosure C_StashCallback) Source #

Wrap the callback into a GClosure.

mk_StashCallback :: C_StashCallback -> IO (FunPtr C_StashCallback) Source #

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

noStashCallback :: Maybe StashCallback Source #

A convenience synonym for Nothing :: Maybe StashCallback.

StatusCallback

type C_StatusCallback = CString -> CUInt -> Ptr () -> IO Int32 Source #

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

type StatusCallback Source #

Arguments

 = Text

path: the file to retrieve status for, rooted at the repository working dir.

-> [StatusFlags]

statusFlags: the status value.

-> IO Int32

Returns: 0 to go for the next file or a Error in case there was an error.

The type of the callback functions for retrieving the status of the files in a Repository. See repositoryFileStatusForeach.

type StatusCallback_WithClosures Source #

Arguments

 = Text

path: the file to retrieve status for, rooted at the repository working dir.

-> [StatusFlags]

statusFlags: the status value.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go for the next file or a Error in case there was an error.

The type of the callback functions for retrieving the status of the files in a Repository. See repositoryFileStatusForeach.

drop_closures_StatusCallback :: StatusCallback -> StatusCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_StatusCallback Source #

Arguments

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

path: the file to retrieve status for, rooted at the repository working dir.

-> [StatusFlags]

statusFlags: the status value.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go for the next file or a Error in case there was an error.

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

genClosure_StatusCallback :: MonadIO m => StatusCallback -> m (GClosure C_StatusCallback) Source #

Wrap the callback into a GClosure.

mk_StatusCallback :: C_StatusCallback -> IO (FunPtr C_StatusCallback) Source #

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

noStatusCallback :: Maybe StatusCallback Source #

A convenience synonym for Nothing :: Maybe StatusCallback.

SubmoduleCallback

type C_SubmoduleCallback = Ptr Submodule -> CString -> Ptr () -> IO Int32 Source #

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

type SubmoduleCallback Source #

Arguments

 = Submodule

submodule: a Submodule.

-> Text

name: the name of the submodule.

-> IO Int32

Returns: 0 to go for the next submodule or a Error in case there was an error.

The type of the callback functions for retrieving the submodules in a Repository. See repositorySubmoduleForeach.

type SubmoduleCallback_WithClosures Source #

Arguments

 = Submodule

submodule: a Submodule.

-> Text

name: the name of the submodule.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go for the next submodule or a Error in case there was an error.

The type of the callback functions for retrieving the submodules in a Repository. See repositorySubmoduleForeach.

drop_closures_SubmoduleCallback :: SubmoduleCallback -> SubmoduleCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_SubmoduleCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_SubmoduleCallback 
-> Submodule

submodule: a Submodule.

-> Text

name: the name of the submodule.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go for the next submodule or a Error in case there was an error.

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

genClosure_SubmoduleCallback :: MonadIO m => SubmoduleCallback -> m (GClosure C_SubmoduleCallback) Source #

Wrap the callback into a GClosure.

mk_SubmoduleCallback :: C_SubmoduleCallback -> IO (FunPtr C_SubmoduleCallback) Source #

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

noSubmoduleCallback :: Maybe SubmoduleCallback Source #

A convenience synonym for Nothing :: Maybe SubmoduleCallback.

TagCallback

type C_TagCallback = CString -> Ptr OId -> Ptr () -> IO Int32 Source #

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

type TagCallback Source #

Arguments

 = Text

name: the tag name.

-> OId

tagOid: the tag oid.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

When iterating over all the tags, callback that will be issued per entry. See repositoryTagForeach.

type TagCallback_WithClosures Source #

Arguments

 = Text

name: the tag name.

-> OId

tagOid: the tag oid.

-> Ptr ()

userData: user-suplied data.

-> IO Int32

Returns: 0 to go continue or a Error in case there was an error.

When iterating over all the tags, callback that will be issued per entry. See repositoryTagForeach.

drop_closures_TagCallback :: TagCallback -> TagCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_TagCallback Source #

Arguments

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

name: the tag name.

-> OId

tagOid: the tag oid.

-> Ptr ()

userData: user-suplied data.

-> m Int32

Returns: 0 to go continue or a Error in case there was an error.

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

genClosure_TagCallback :: MonadIO m => TagCallback -> m (GClosure C_TagCallback) Source #

Wrap the callback into a GClosure.

mk_TagCallback :: C_TagCallback -> IO (FunPtr C_TagCallback) Source #

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

noTagCallback :: Maybe TagCallback Source #

A convenience synonym for Nothing :: Maybe TagCallback.

noTagCallback_WithClosures :: Maybe TagCallback_WithClosures Source #

A convenience synonym for Nothing :: Maybe TagCallback_WithClosures.

TransferProgressCallback

type C_TransferProgressCallback = Ptr TransferProgress -> Ptr () -> IO Int32 Source #

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

type TransferProgressCallback Source #

Arguments

 = TransferProgress

stats: a TransferProgress.

-> IO Int32

Returns: a value less than zero to cancel the transfer.

Progress callbacks during indexing.

type TransferProgressCallback_WithClosures Source #

Arguments

 = TransferProgress

stats: a TransferProgress.

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: a value less than zero to cancel the transfer.

Progress callbacks during indexing.

dynamic_TransferProgressCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FunPtr C_TransferProgressCallback 
-> TransferProgress

stats: a TransferProgress.

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: a value less than zero to cancel the transfer.

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

mk_TransferProgressCallback :: C_TransferProgressCallback -> IO (FunPtr C_TransferProgressCallback) Source #

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

noTransferProgressCallback :: Maybe TransferProgressCallback Source #

A convenience synonym for Nothing :: Maybe TransferProgressCallback.

TreeWalkCallback

type C_TreeWalkCallback = CString -> Ptr TreeEntry -> Ptr () -> IO Int32 Source #

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

type TreeWalkCallback Source #

Arguments

 = Text

root: the current (relative) root of the entry

-> TreeEntry

entry: the tree entry

-> IO Int32

Returns: 0 to go for the next entry or a Error in case there was an error.

The type of the callback functions for walking a tree. See treeWalk.

type TreeWalkCallback_WithClosures Source #

Arguments

 = Text

root: the current (relative) root of the entry

-> TreeEntry

entry: the tree entry

-> Ptr ()

userData: user-supplied data.

-> IO Int32

Returns: 0 to go for the next entry or a Error in case there was an error.

The type of the callback functions for walking a tree. See treeWalk.

drop_closures_TreeWalkCallback :: TreeWalkCallback -> TreeWalkCallback_WithClosures Source #

A simple wrapper that ignores the closure arguments.

dynamic_TreeWalkCallback Source #

Arguments

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

root: the current (relative) root of the entry

-> TreeEntry

entry: the tree entry

-> Ptr ()

userData: user-supplied data.

-> m Int32

Returns: 0 to go for the next entry or a Error in case there was an error.

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

genClosure_TreeWalkCallback :: MonadIO m => TreeWalkCallback -> m (GClosure C_TreeWalkCallback) Source #

Wrap the callback into a GClosure.

mk_TreeWalkCallback :: C_TreeWalkCallback -> IO (FunPtr C_TreeWalkCallback) Source #

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

noTreeWalkCallback :: Maybe TreeWalkCallback Source #

A convenience synonym for Nothing :: Maybe TreeWalkCallback.