Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- type C_ContentDeserializeFunc = Ptr ContentDeserializer -> IO ()
- type ContentDeserializeFunc = ContentDeserializer -> IO ()
- dynamic_ContentDeserializeFunc :: (HasCallStack, MonadIO m, IsContentDeserializer a) => FunPtr C_ContentDeserializeFunc -> a -> m ()
- genClosure_ContentDeserializeFunc :: MonadIO m => ContentDeserializeFunc -> m (GClosure C_ContentDeserializeFunc)
- mk_ContentDeserializeFunc :: C_ContentDeserializeFunc -> IO (FunPtr C_ContentDeserializeFunc)
- noContentDeserializeFunc :: Maybe ContentDeserializeFunc
- wrap_ContentDeserializeFunc :: Maybe (Ptr (FunPtr C_ContentDeserializeFunc)) -> ContentDeserializeFunc -> C_ContentDeserializeFunc
- type C_ContentSerializeFunc = Ptr ContentSerializer -> IO ()
- type ContentSerializeFunc = ContentSerializer -> IO ()
- dynamic_ContentSerializeFunc :: (HasCallStack, MonadIO m, IsContentSerializer a) => FunPtr C_ContentSerializeFunc -> a -> m ()
- genClosure_ContentSerializeFunc :: MonadIO m => ContentSerializeFunc -> m (GClosure C_ContentSerializeFunc)
- mk_ContentSerializeFunc :: C_ContentSerializeFunc -> IO (FunPtr C_ContentSerializeFunc)
- noContentSerializeFunc :: Maybe ContentSerializeFunc
- wrap_ContentSerializeFunc :: Maybe (Ptr (FunPtr C_ContentSerializeFunc)) -> ContentSerializeFunc -> C_ContentSerializeFunc
Signals
ContentDeserializeFunc
type C_ContentDeserializeFunc = Ptr ContentDeserializer -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ContentDeserializeFunc Source #
= ContentDeserializer |
|
-> IO () |
The type of a function that can be registered with contentRegisterDeserializer
.
When the function gets called to operate on content, it can call functions on the
deserializer
object to obtain the mime type, input stream, user data, etc. for its
operation.
dynamic_ContentDeserializeFunc Source #
:: (HasCallStack, MonadIO m, IsContentDeserializer a) | |
=> FunPtr C_ContentDeserializeFunc | |
-> a |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ContentDeserializeFunc :: MonadIO m => ContentDeserializeFunc -> m (GClosure C_ContentDeserializeFunc) Source #
Wrap the callback into a GClosure
.
mk_ContentDeserializeFunc :: C_ContentDeserializeFunc -> IO (FunPtr C_ContentDeserializeFunc) Source #
Generate a function pointer callable from C code, from a C_ContentDeserializeFunc
.
noContentDeserializeFunc :: Maybe ContentDeserializeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ContentDeserializeFunc
wrap_ContentDeserializeFunc :: Maybe (Ptr (FunPtr C_ContentDeserializeFunc)) -> ContentDeserializeFunc -> C_ContentDeserializeFunc Source #
Wrap a ContentDeserializeFunc
into a C_ContentDeserializeFunc
.
ContentSerializeFunc
type C_ContentSerializeFunc = Ptr ContentSerializer -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ContentSerializeFunc Source #
= ContentSerializer |
|
-> IO () |
The type of a function that can be registered with contentRegisterSerializer
.
When the function gets called to operate on content, it can call functions on the
serializer
object to obtain the mime type, output stream, user data, etc. for its
operation.
dynamic_ContentSerializeFunc Source #
:: (HasCallStack, MonadIO m, IsContentSerializer a) | |
=> FunPtr C_ContentSerializeFunc | |
-> a |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ContentSerializeFunc :: MonadIO m => ContentSerializeFunc -> m (GClosure C_ContentSerializeFunc) Source #
Wrap the callback into a GClosure
.
mk_ContentSerializeFunc :: C_ContentSerializeFunc -> IO (FunPtr C_ContentSerializeFunc) Source #
Generate a function pointer callable from C code, from a C_ContentSerializeFunc
.
noContentSerializeFunc :: Maybe ContentSerializeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ContentSerializeFunc