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

Description

Represents an entry in a tree.

Synopsis

Exported types

newtype TreeEntry Source #

Memory-managed wrapper type.

Constructors

TreeEntry (ManagedPtr TreeEntry) 

Instances

Instances details
Eq TreeEntry Source # 
Instance details

Defined in GI.Ggit.Structs.TreeEntry

Methods

(==) :: TreeEntry -> TreeEntry -> Bool

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

GBoxed TreeEntry Source # 
Instance details

Defined in GI.Ggit.Structs.TreeEntry

ManagedPtrNewtype TreeEntry Source # 
Instance details

Defined in GI.Ggit.Structs.TreeEntry

Methods

toManagedPtr :: TreeEntry -> ManagedPtr TreeEntry

TypedObject TreeEntry Source # 
Instance details

Defined in GI.Ggit.Structs.TreeEntry

Methods

glibType :: IO GType

IsGValue TreeEntry Source #

Convert TreeEntry to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.TreeEntry

Methods

toGValue :: TreeEntry -> IO GValue

fromGValue :: GValue -> IO TreeEntry

HasParentTypes TreeEntry Source # 
Instance details

Defined in GI.Ggit.Structs.TreeEntry

type ParentTypes TreeEntry Source # 
Instance details

Defined in GI.Ggit.Structs.TreeEntry

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

Methods

Overloaded methods

getFileMode

treeEntryGetFileMode Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m FileMode

Returns: the FileMode of a tree entry.

Gets the FileMode of a tree entry.

getId

treeEntryGetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m (Maybe OId)

Returns: a OId or Nothing.

Get the OId of the entry.

getName

treeEntryGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m (Maybe Text)

Returns: the name of the tree entry or Nothing.

Get the name of the tree entry.

getObjectType

treeEntryGetObjectType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m GType

Returns: a GType.

Get the type of the tree entry object.

ref

treeEntryRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m (Maybe TreeEntry)

Returns: a TreeEntry or Nothing.

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

unref

treeEntryUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m () 

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