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 |
No description available in the introspection data.
Synopsis
- newtype MimeInfo = MimeInfo (ManagedPtr MimeInfo)
- noMimeInfo :: Maybe MimeInfo
- mimeInfoGetDescription :: (HasCallStack, MonadIO m) => MimeInfo -> m Text
- mimeInfoGetExtensions :: (HasCallStack, MonadIO m) => MimeInfo -> m [Text]
- mimeInfoGetMimeType :: (HasCallStack, MonadIO m) => MimeInfo -> m Text
- mimeInfoRef :: (HasCallStack, MonadIO m) => MimeInfo -> m MimeInfo
- mimeInfoUnref :: (HasCallStack, MonadIO m) => MimeInfo -> m ()
Exported types
Memory-managed wrapper type.
Methods
getDescription
mimeInfoGetDescription Source #
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m Text | Returns: the description of the MIME type of |
No description available in the introspection data.
getExtensions
mimeInfoGetExtensions Source #
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m [Text] | Returns: a
|
Get the list of file extensions associated to the
MIME type of info
getMimeType
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m Text | Returns: the MIME type of |
No description available in the introspection data.
ref
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m MimeInfo | Returns: The passed in |
Atomically increments the reference count of info
by one. This
function is MT-safe and may be called from any thread.
unref
:: (HasCallStack, MonadIO m) | |
=> MimeInfo |
|
-> m () |
Atomically decrements the reference count of info
by one. If the
reference count drops to 0, all memory allocated by the MimeInfo
is
released. This function is MT-safe and may be called from any
thread.