gi-ggit-1.0.8: 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.Structs.DiffBinary

Contents

Description

Represents a diff binary.

Synopsis

Exported types

newtype DiffBinary Source #

Memory-managed wrapper type.

Constructors

DiffBinary (ManagedPtr DiffBinary) 
Instances
Eq DiffBinary Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinary

Methods

(==) :: DiffBinary -> DiffBinary -> Bool

(/=) :: DiffBinary -> DiffBinary -> Bool

BoxedObject DiffBinary Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinary

Methods

boxedType :: DiffBinary -> IO GType

IsGValue DiffBinary Source #

Convert DiffBinary to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.DiffBinary

Methods

toGValue :: DiffBinary -> IO GValue

fromGValue :: GValue -> IO DiffBinary

noDiffBinary :: Maybe DiffBinary Source #

A convenience alias for Nothing :: Maybe DiffBinary.

Methods

Overloaded methods

getNewFile

diffBinaryGetNewFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinary

binary: a tDiffBinary.

-> m (Maybe DiffBinaryFile)

Returns: the contents of the new file or Nothing.

Gets the tDiffBinaryFile new file for binary.

getOldFile

diffBinaryGetOldFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinary

binary: a tDiffBinary.

-> m (Maybe DiffBinaryFile)

Returns: the contents of the old file or Nothing.

Gets the tDiffBinaryFile old file for binary.

ref

diffBinaryRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinary

binary: a tDiffBinary.

-> m (Maybe DiffBinary)

Returns: a tDiffBinary or Nothing.

Atomically increments the reference count of binary by one. This function is MT-safe and may be called from any thread.

unref

diffBinaryUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinary

binary: a tDiffBinary.

-> m () 

Atomically decrements the reference count of binary by one. If the reference count drops to 0, binary is freed.