Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Represents a git configuration entry.
Synopsis
- newtype ConfigEntry = ConfigEntry (ManagedPtr ConfigEntry)
- noConfigEntry :: Maybe 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.
Instances
BoxedObject ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry boxedType :: ConfigEntry -> IO GType # |
noConfigEntry :: Maybe ConfigEntry Source #
A convenience alias for Nothing
:: Maybe
ConfigEntry
.
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.