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 |
Represents the resolve undo entries in an index object.
Synopsis
- newtype IndexEntriesResolveUndo = IndexEntriesResolveUndo (ManagedPtr IndexEntriesResolveUndo)
- indexEntriesResolveUndoGet :: (HasCallStack, MonadIO m) => IndexEntriesResolveUndo -> Word32 -> m (Maybe IndexEntryResolveUndo)
- indexEntriesResolveUndoGetByFile :: (HasCallStack, MonadIO m, IsFile a) => IndexEntriesResolveUndo -> a -> m (Maybe IndexEntryResolveUndo)
- indexEntriesResolveUndoRef :: (HasCallStack, MonadIO m) => IndexEntriesResolveUndo -> m (Maybe IndexEntriesResolveUndo)
- indexEntriesResolveUndoSize :: (HasCallStack, MonadIO m) => IndexEntriesResolveUndo -> m Word32
- indexEntriesResolveUndoUnref :: (HasCallStack, MonadIO m) => IndexEntriesResolveUndo -> m ()
Exported types
newtype IndexEntriesResolveUndo Source #
Memory-managed wrapper type.
IndexEntriesResolveUndo (ManagedPtr IndexEntriesResolveUndo) |
Instances
Eq IndexEntriesResolveUndo Source # | |
Defined in GI.Ggit.Structs.IndexEntriesResolveUndo | |
GBoxed IndexEntriesResolveUndo Source # | |
Defined in GI.Ggit.Structs.IndexEntriesResolveUndo | |
ManagedPtrNewtype IndexEntriesResolveUndo Source # | |
Defined in GI.Ggit.Structs.IndexEntriesResolveUndo toManagedPtr :: IndexEntriesResolveUndo -> ManagedPtr IndexEntriesResolveUndo | |
TypedObject IndexEntriesResolveUndo Source # | |
Defined in GI.Ggit.Structs.IndexEntriesResolveUndo | |
HasParentTypes IndexEntriesResolveUndo Source # | |
Defined in GI.Ggit.Structs.IndexEntriesResolveUndo | |
IsGValue (Maybe IndexEntriesResolveUndo) Source # | Convert |
Defined in GI.Ggit.Structs.IndexEntriesResolveUndo gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe IndexEntriesResolveUndo -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe IndexEntriesResolveUndo) | |
type ParentTypes IndexEntriesResolveUndo Source # | |
Defined in GI.Ggit.Structs.IndexEntriesResolveUndo |
Methods
Click to display all available methods, including inherited ones
get
indexEntriesResolveUndoGet Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntriesResolveUndo |
|
-> Word32 |
|
-> m (Maybe IndexEntryResolveUndo) | Returns: a |
Get a IndexEntryResolveUndo
by index. Note that the returned
IndexEntryResolveUndo
is _only_ valid as long as:
1) The associated index has been closed
2) The entry has not been removed (see indexRemove
)
3) The index has not been refreshed (see indexRead
)
getByFile
indexEntriesResolveUndoGetByFile Source #
:: (HasCallStack, MonadIO m, IsFile a) | |
=> IndexEntriesResolveUndo |
|
-> a |
|
-> m (Maybe IndexEntryResolveUndo) | Returns: a |
Get an resolve_undo entry specified by path. The returned entry is read
only and should not be modified by the caller. If the entry could not be
found, Nothing
is returned.
ref
indexEntriesResolveUndoRef Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntriesResolveUndo |
|
-> m (Maybe IndexEntriesResolveUndo) | Returns: a |
Atomically increments the reference count of entries
by one.
This function is MT-safe and may be called from any thread.
size
indexEntriesResolveUndoSize Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntriesResolveUndo |
|
-> m Word32 | Returns: the number of entries. |
Get the number of IndexEntryResolveUndo
entries.
unref
indexEntriesResolveUndoUnref Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntriesResolveUndo |
|
-> m () |
Atomically decrements the reference count of entries
by one.
If the reference count drops to 0, entries
is freed.