| 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 |
GI.Ggit.Structs.ConfigEntry
Description
Represents a git configuration entry.
- newtype ConfigEntry = ConfigEntry (ManagedPtr ConfigEntry)
- noConfigEntry :: Maybe ConfigEntry
- configEntryGetLevel :: (HasCallStack, MonadIO m) => ConfigEntry -> m ConfigLevel
- configEntryGetName :: (HasCallStack, MonadIO m) => ConfigEntry -> m Text
- configEntryGetValue :: (HasCallStack, MonadIO m) => ConfigEntry -> m Text
- configEntryRef :: (HasCallStack, MonadIO m) => ConfigEntry -> m ConfigEntry
- configEntryUnref :: (HasCallStack, MonadIO m) => ConfigEntry -> m ()
Exported types
Methods
getLevel
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ConfigEntry |
|
| -> m ConfigLevel | Returns: the |
Gets the ConfigLevel of entry.
getName
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ConfigEntry |
|
| -> m Text | Returns: the name of |
Gets the name of entry.
getValue
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ConfigEntry |
|
| -> m Text | Returns: the value of |
Gets the value of entry.
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ConfigEntry |
|
| -> m 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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ConfigEntry |
|
| -> m () |
Atomically decrements the reference count of entry by one.
If the reference count drops to 0, entry is freed.