Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Represents a diff binary.
Synopsis
- newtype DiffBinary = DiffBinary (ManagedPtr DiffBinary)
- noDiffBinary :: Maybe 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.
Instances
BoxedObject DiffBinary Source # | |
Defined in GI.Ggit.Structs.DiffBinary boxedType :: DiffBinary -> IO GType # |
noDiffBinary :: Maybe DiffBinary Source #
A convenience alias for Nothing
:: Maybe
DiffBinary
.
Methods
getNewFile
:: (HasCallStack, MonadIO m) | |
=> DiffBinary |
|
-> m (Maybe DiffBinaryFile) | Returns: the contents of the new file or |
Gets the DiffBinaryFile
new file for binary
.
getOldFile
:: (HasCallStack, MonadIO m) | |
=> DiffBinary |
|
-> m (Maybe DiffBinaryFile) | Returns: the contents of the old file or |
Gets the DiffBinaryFile
old file for binary
.
ref
:: (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
:: (HasCallStack, MonadIO m) | |
=> DiffBinary |
|
-> m () |
Atomically decrements the reference count of binary
by one.
If the reference count drops to 0, binary
is freed.