gi-ggit-1.0.12: libgit2-glib bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Ggit.Structs.DiffBinary

Description

Represents a diff binary.

Synopsis

Exported types

newtype DiffBinary Source #

Memory-managed wrapper type.

Constructors

DiffBinary (ManagedPtr DiffBinary) 

Instances

Instances details
Eq DiffBinary Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinary

GBoxed DiffBinary Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinary

ManagedPtrNewtype DiffBinary Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinary

Methods

toManagedPtr :: DiffBinary -> ManagedPtr DiffBinary

TypedObject DiffBinary Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinary

Methods

glibType :: IO GType

HasParentTypes DiffBinary Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinary

IsGValue (Maybe DiffBinary) Source #

Convert DiffBinary to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.DiffBinary

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe DiffBinary -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe DiffBinary)

type ParentTypes DiffBinary Source # 
Instance details

Defined in GI.Ggit.Structs.DiffBinary

type ParentTypes DiffBinary = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getNewFile, getOldFile.

Setters

None.

getNewFile

diffBinaryGetNewFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinary

binary: a DiffBinary.

-> m (Maybe DiffBinaryFile)

Returns: the contents of the new file or Nothing.

Gets the DiffBinaryFile new file for binary.

getOldFile

diffBinaryGetOldFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinary

binary: a DiffBinary.

-> m (Maybe DiffBinaryFile)

Returns: the contents of the old file or Nothing.

Gets the DiffBinaryFile old file for binary.

ref

diffBinaryRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffBinary

binary: a DiffBinary.

-> m (Maybe DiffBinary)

Returns: a DiffBinary 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 DiffBinary.

-> m () 

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