| 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 |
GI.Ggit.Structs.ConfigEntry
Description
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.
Constructors
| ConfigEntry (ManagedPtr ConfigEntry) |
Instances
| Eq ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry | |
| IsGValue ConfigEntry Source # | Convert |
Defined in GI.Ggit.Structs.ConfigEntry | |
| BoxedObject ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry Methods boxedType :: ConfigEntry -> IO GType # | |
noConfigEntry :: Maybe ConfigEntry Source #
A convenience alias for Nothing :: Maybe ConfigEntry.
Methods
Overloaded methods
getLevel
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ConfigEntry |
|
| -> m ConfigLevel | Returns: the |
Gets the ConfigLevel of entry.
getName
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ConfigEntry |
|
| -> m (Maybe Text) | Returns: the name of |
Gets the name of entry.
getValue
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ConfigEntry |
|
| -> m (Maybe Text) | Returns: the value of |
Gets the value of entry.
ref
Arguments
| :: (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
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.