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

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

HasParentTypes ConfigEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ConfigEntry

IsGValue (Maybe ConfigEntry) Source #

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

Instance details

Defined in GI.Ggit.Structs.ConfigEntry

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes ConfigEntry Source # 
Instance details

Defined in GI.Ggit.Structs.ConfigEntry

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

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getLevel, getName, getValue.

Setters

None.

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.