gi-ggit-1.0.1: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Callbacks

Contents

Description

 

Synopsis

Signals

ConfigCallback

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.

ConfigMatchCallback

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.

CredAcquireCallback

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 

DiffBinaryCallback

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.

DiffFileCallback

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.

DiffHunkCallback

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.

DiffLineCallback

dynamic_DiffLineCallback Source #

Arguments

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

delta: a DiffDelta.

-> 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.

DiffSimilarityMetricBufferSignatureCallback

DiffSimilarityMetricFileSignatureCallback

DiffSimilarityMetricFreeSignatureCallback

DiffSimilarityMetricSimilarityCallback

NoteCallback

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.

ReferencesCallback

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.

ReferencesNameCallback

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.

RemoteListCallback

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.

StashCallback

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.

StatusCallback

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.

SubmoduleCallback

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.

TagCallback

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.

TransferProgressCallback

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.

TreeWalkCallback

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.