Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype MimeInfo = MimeInfo (ManagedPtr 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.
Instances
Eq MimeInfo Source # | |
GBoxed MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo | |
ManagedPtrNewtype MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo toManagedPtr :: MimeInfo -> ManagedPtr MimeInfo | |
TypedObject MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo | |
HasParentTypes MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo | |
IsGValue (Maybe MimeInfo) Source # | Convert |
Defined in GI.WebKit2.Structs.MimeInfo gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe MimeInfo -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe MimeInfo) | |
type ParentTypes MimeInfo Source # | |
Defined in GI.WebKit2.Structs.MimeInfo |
Methods
Click to display all available methods, including inherited ones
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.