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

Contents

Description

Represents an entry in a tree.

Synopsis

Exported types

newtype TreeEntry Source #

Memory-managed wrapper type.

Constructors

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

Defined in GI.Ggit.Structs.TreeEntry

Methods

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

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

BoxedObject TreeEntry Source # 
Instance details

Defined in GI.Ggit.Structs.TreeEntry

Methods

boxedType :: TreeEntry -> 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

noTreeEntry :: Maybe TreeEntry Source #

A convenience alias for Nothing :: Maybe TreeEntry.

Methods

Overloaded methods

getFileMode

treeEntryGetFileMode Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a tTreeEntry.

-> m FileMode

Returns: the tFileMode of a tree entry.

Gets the tFileMode of a tree entry.

getId

treeEntryGetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a tTreeEntry.

-> m (Maybe OId)

Returns: a tOId or Nothing.

Get the tOId of the entry.

getName

treeEntryGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a tTreeEntry.

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

-> m GType

Returns: a tGType.

Get the type of the tree entry object.

ref

treeEntryRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a tTreeEntry.

-> m (Maybe TreeEntry)

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

-> m () 

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