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 |
No description available in the introspection data.
Synopsis
- newtype UserContentFilter = UserContentFilter (ManagedPtr UserContentFilter)
- userContentFilterGetIdentifier :: (HasCallStack, MonadIO m) => UserContentFilter -> m Text
- userContentFilterRef :: (HasCallStack, MonadIO m) => UserContentFilter -> m UserContentFilter
- userContentFilterUnref :: (HasCallStack, MonadIO m) => UserContentFilter -> m ()
Exported types
newtype UserContentFilter Source #
Memory-managed wrapper type.
UserContentFilter (ManagedPtr UserContentFilter) |
Instances
Methods
Overloaded methods
getIdentifier
userContentFilterGetIdentifier Source #
:: (HasCallStack, MonadIO m) | |
=> UserContentFilter |
|
-> m Text | Returns: the identifier for the filter |
Obtain the identifier previously used to save the userContentFilter
in the
UserContentFilterStore
.
Since: 2.24
ref
:: (HasCallStack, MonadIO m) | |
=> UserContentFilter |
|
-> m UserContentFilter |
Atomically increments the reference count of userContentFilter
by one.
This function is MT-safe and may be called from any thread.
Since: 2.24
unref
userContentFilterUnref Source #
:: (HasCallStack, MonadIO m) | |
=> UserContentFilter |
|
-> m () |
Atomically decrements the reference count of userContentFilter
by one.
If the reference count drops to 0, all the memory allocated by the
UserContentFilter
is released. This function is MT-safe and may
be called from any thread.
Since: 2.24