| 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.DiffBinary
Description
Represents a diff binary.
Synopsis
- newtype DiffBinary = DiffBinary (ManagedPtr DiffBinary)
- diffBinaryGetNewFile :: (HasCallStack, MonadIO m) => DiffBinary -> m (Maybe DiffBinaryFile)
- diffBinaryGetOldFile :: (HasCallStack, MonadIO m) => DiffBinary -> m (Maybe DiffBinaryFile)
- diffBinaryRef :: (HasCallStack, MonadIO m) => DiffBinary -> m (Maybe DiffBinary)
- diffBinaryUnref :: (HasCallStack, MonadIO m) => DiffBinary -> m ()
Exported types
newtype DiffBinary Source #
Memory-managed wrapper type.
Constructors
| DiffBinary (ManagedPtr DiffBinary) |
Instances
| Eq DiffBinary Source # | |
Defined in GI.Ggit.Structs.DiffBinary | |
| GBoxed DiffBinary Source # | |
Defined in GI.Ggit.Structs.DiffBinary | |
| ManagedPtrNewtype DiffBinary Source # | |
Defined in GI.Ggit.Structs.DiffBinary Methods toManagedPtr :: DiffBinary -> ManagedPtr DiffBinary | |
| TypedObject DiffBinary Source # | |
Defined in GI.Ggit.Structs.DiffBinary | |
| HasParentTypes DiffBinary Source # | |
Defined in GI.Ggit.Structs.DiffBinary | |
| IsGValue (Maybe DiffBinary) Source # | Convert |
Defined in GI.Ggit.Structs.DiffBinary Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe DiffBinary -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe DiffBinary) | |
| type ParentTypes DiffBinary Source # | |
Defined in GI.Ggit.Structs.DiffBinary | |
Methods
Click to display all available methods, including inherited ones
getNewFile
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffBinary |
|
| -> m (Maybe DiffBinaryFile) | Returns: the contents of the new file or |
Gets the DiffBinaryFile new file for binary.
getOldFile
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffBinary |
|
| -> m (Maybe DiffBinaryFile) | Returns: the contents of the old file or |
Gets the DiffBinaryFile old file for binary.
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffBinary |
|
| -> m (Maybe DiffBinary) | Returns: a |
Atomically increments the reference count of binary by one.
This function is MT-safe and may be called from any thread.
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffBinary |
|
| -> m () |
Atomically decrements the reference count of binary by one.
If the reference count drops to 0, binary is freed.