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

Description

Represents a git configuration entry.

Synopsis

Exported types

newtype ConfigEntry Source #

Memory-managed wrapper type.

Constructors

ConfigEntry (ManagedPtr ConfigEntry) 

Instances

Instances details
Eq ConfigEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ConfigEntry

Methods

(==) :: ConfigEntry -> ConfigEntry -> Bool

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

GBoxed ConfigEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ConfigEntry

ManagedPtrNewtype ConfigEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ConfigEntry

Methods

toManagedPtr :: ConfigEntry -> ManagedPtr ConfigEntry

TypedObject ConfigEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ConfigEntry

Methods

glibType :: IO GType

IsGValue ConfigEntry Source #

Convert ConfigEntry to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.ConfigEntry

Methods

toGValue :: ConfigEntry -> IO GValue

fromGValue :: GValue -> IO ConfigEntry

HasParentTypes ConfigEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ConfigEntry

type ParentTypes ConfigEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ConfigEntry

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

Methods

Overloaded methods

getLevel

configEntryGetLevel Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ConfigEntry

entry: a ConfigEntry.

-> m ConfigLevel

Returns: the ConfigLevel of entry.

Gets the ConfigLevel of entry.

getName

configEntryGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ConfigEntry

entry: a ConfigEntry.

-> m (Maybe Text)

Returns: the name of entry or Nothing.

Gets the name of entry.

getValue

configEntryGetValue Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ConfigEntry

entry: a ConfigEntry.

-> m (Maybe Text)

Returns: the value of entry or Nothing.

Gets the value of entry.

ref

configEntryRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ConfigEntry

entry: a ConfigEntry.

-> m (Maybe ConfigEntry)

Returns: a ConfigEntry or Nothing.

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

unref

configEntryUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ConfigEntry

entry: a ConfigEntry.

-> m () 

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