| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Ggit.Structs.ConfigEntry
Description
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.
Constructors
| ConfigEntry (ManagedPtr ConfigEntry) |
Instances
| Eq ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry | |
| GBoxed ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry | |
| ManagedPtrNewtype ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry Methods toManagedPtr :: ConfigEntry -> ManagedPtr ConfigEntry | |
| TypedObject ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry | |
| HasParentTypes ConfigEntry Source # | |
Defined in GI.Ggit.Structs.ConfigEntry | |
| IsGValue (Maybe ConfigEntry) Source # | Convert |
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 # | |
Defined in GI.Ggit.Structs.ConfigEntry | |
Methods
Click to display all available methods, including inherited ones
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.