Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Represents a git configuration entry.
Synopsis
- newtype ConfigEntry = ConfigEntry (ManagedPtr ConfigEntry)
- configEntryGetLevel :: (HasCallStack, MonadIO m) => ConfigEntry -> m ConfigLevel
- configEntryGetName :: (HasCallStack, MonadIO m) => ConfigEntry -> m (Maybe Text)
- configEntryGetValue :: (HasCallStack, MonadIO m) => ConfigEntry -> m (Maybe Text)
- configEntryRef :: (HasCallStack, MonadIO m) => ConfigEntry -> m (Maybe ConfigEntry)
- configEntryUnref :: (HasCallStack, MonadIO m) => ConfigEntry -> m ()
Exported types
newtype ConfigEntry Source #
Memory-managed wrapper type.
ConfigEntry (ManagedPtr ConfigEntry) |
Instances
Eq ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry (==) :: ConfigEntry -> ConfigEntry -> Bool (/=) :: ConfigEntry -> ConfigEntry -> Bool | |
GBoxed ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry | |
ManagedPtrNewtype ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry toManagedPtr :: ConfigEntry -> ManagedPtr ConfigEntry | |
TypedObject ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry glibType :: IO GType | |
IsGValue ConfigEntry Source # | Convert |
Defined in GI.Ggit.Structs.ConfigEntry toGValue :: ConfigEntry -> IO GValue fromGValue :: GValue -> IO ConfigEntry | |
HasParentTypes ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry | |
type ParentTypes ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry type ParentTypes ConfigEntry = '[] :: [Type] |
Methods
Overloaded methods
getLevel
:: (HasCallStack, MonadIO m) | |
=> ConfigEntry |
|
-> m ConfigLevel | Returns: the |
Gets the ConfigLevel
of entry
.
getName
:: (HasCallStack, MonadIO m) | |
=> ConfigEntry |
|
-> m (Maybe Text) | Returns: the name of |
Gets the name of entry
.
getValue
:: (HasCallStack, MonadIO m) | |
=> ConfigEntry |
|
-> m (Maybe Text) | Returns: the value of |
Gets the value of entry
.
ref
:: (HasCallStack, MonadIO m) | |
=> ConfigEntry |
|
-> m (Maybe ConfigEntry) | Returns: a |
Atomically increments the reference count of entry
by one.
This function is MT-safe and may be called from any thread.
unref
:: (HasCallStack, MonadIO m) | |
=> ConfigEntry |
|
-> m () |
Atomically decrements the reference count of entry
by one.
If the reference count drops to 0, entry
is freed.