Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- type C_FreeFunc = Ptr () -> IO ()
- type FreeFunc = Ptr () -> IO ()
- dynamic_FreeFunc :: (HasCallStack, MonadIO m) => FunPtr C_FreeFunc -> Ptr () -> m ()
- genClosure_FreeFunc :: MonadIO m => FreeFunc -> m (GClosure C_FreeFunc)
- mk_FreeFunc :: C_FreeFunc -> IO (FunPtr C_FreeFunc)
- noFreeFunc :: Maybe FreeFunc
- wrap_FreeFunc :: Maybe (Ptr (FunPtr C_FreeFunc)) -> FreeFunc -> C_FreeFunc
- type C_ObjectDestroyFunc = Ptr Object -> IO ()
- type ObjectDestroyFunc = Object -> IO ()
- dynamic_ObjectDestroyFunc :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ObjectDestroyFunc -> a -> m ()
- genClosure_ObjectDestroyFunc :: MonadIO m => ObjectDestroyFunc -> m (GClosure C_ObjectDestroyFunc)
- mk_ObjectDestroyFunc :: C_ObjectDestroyFunc -> IO (FunPtr C_ObjectDestroyFunc)
- noObjectDestroyFunc :: Maybe ObjectDestroyFunc
- wrap_ObjectDestroyFunc :: Maybe (Ptr (FunPtr C_ObjectDestroyFunc)) -> ObjectDestroyFunc -> C_ObjectDestroyFunc
- type C_SerializableCopyFunc = Ptr Serializable -> Ptr Serializable -> IO CInt
- type SerializableCopyFunc = Serializable -> Serializable -> IO Bool
- dynamic_SerializableCopyFunc :: (HasCallStack, MonadIO m, IsSerializable a, IsSerializable b) => FunPtr C_SerializableCopyFunc -> a -> b -> m Bool
- genClosure_SerializableCopyFunc :: MonadIO m => SerializableCopyFunc -> m (GClosure C_SerializableCopyFunc)
- mk_SerializableCopyFunc :: C_SerializableCopyFunc -> IO (FunPtr C_SerializableCopyFunc)
- noSerializableCopyFunc :: Maybe SerializableCopyFunc
- wrap_SerializableCopyFunc :: Maybe (Ptr (FunPtr C_SerializableCopyFunc)) -> SerializableCopyFunc -> C_SerializableCopyFunc
- type C_SerializableDeserializeFunc = Ptr Serializable -> Ptr GVariant -> IO Int32
- type SerializableDeserializeFunc = Serializable -> GVariant -> IO Int32
- dynamic_SerializableDeserializeFunc :: (HasCallStack, MonadIO m, IsSerializable a) => FunPtr C_SerializableDeserializeFunc -> a -> GVariant -> m Int32
- genClosure_SerializableDeserializeFunc :: MonadIO m => SerializableDeserializeFunc -> m (GClosure C_SerializableDeserializeFunc)
- mk_SerializableDeserializeFunc :: C_SerializableDeserializeFunc -> IO (FunPtr C_SerializableDeserializeFunc)
- noSerializableDeserializeFunc :: Maybe SerializableDeserializeFunc
- wrap_SerializableDeserializeFunc :: Maybe (Ptr (FunPtr C_SerializableDeserializeFunc)) -> SerializableDeserializeFunc -> C_SerializableDeserializeFunc
- type C_SerializableSerializeFunc = Ptr Serializable -> Ptr VariantBuilder -> IO CInt
- type SerializableSerializeFunc = Serializable -> VariantBuilder -> IO Bool
- dynamic_SerializableSerializeFunc :: (HasCallStack, MonadIO m, IsSerializable a) => FunPtr C_SerializableSerializeFunc -> a -> VariantBuilder -> m Bool
- genClosure_SerializableSerializeFunc :: MonadIO m => SerializableSerializeFunc -> m (GClosure C_SerializableSerializeFunc)
- mk_SerializableSerializeFunc :: C_SerializableSerializeFunc -> IO (FunPtr C_SerializableSerializeFunc)
- noSerializableSerializeFunc :: Maybe SerializableSerializeFunc
- wrap_SerializableSerializeFunc :: Maybe (Ptr (FunPtr C_SerializableSerializeFunc)) -> SerializableSerializeFunc -> C_SerializableSerializeFunc
- type C_UnicodeDataLoadAsyncFinish = Ptr (GSList (Ptr UnicodeData)) -> Ptr () -> IO ()
- type UnicodeDataLoadAsyncFinish = [UnicodeData] -> IO ()
- type UnicodeDataLoadAsyncFinish_WithClosures = [UnicodeData] -> Ptr () -> IO ()
- drop_closures_UnicodeDataLoadAsyncFinish :: UnicodeDataLoadAsyncFinish -> UnicodeDataLoadAsyncFinish_WithClosures
- dynamic_UnicodeDataLoadAsyncFinish :: (HasCallStack, MonadIO m, IsUnicodeData a) => FunPtr C_UnicodeDataLoadAsyncFinish -> [a] -> Ptr () -> m ()
- genClosure_UnicodeDataLoadAsyncFinish :: MonadIO m => UnicodeDataLoadAsyncFinish -> m (GClosure C_UnicodeDataLoadAsyncFinish)
- mk_UnicodeDataLoadAsyncFinish :: C_UnicodeDataLoadAsyncFinish -> IO (FunPtr C_UnicodeDataLoadAsyncFinish)
- noUnicodeDataLoadAsyncFinish :: Maybe UnicodeDataLoadAsyncFinish
- noUnicodeDataLoadAsyncFinish_WithClosures :: Maybe UnicodeDataLoadAsyncFinish_WithClosures
- wrap_UnicodeDataLoadAsyncFinish :: Maybe (Ptr (FunPtr C_UnicodeDataLoadAsyncFinish)) -> UnicodeDataLoadAsyncFinish_WithClosures -> C_UnicodeDataLoadAsyncFinish
Signals
FreeFunc
type C_FreeFunc = Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_FreeFunc | |
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_FreeFunc :: MonadIO m => FreeFunc -> m (GClosure C_FreeFunc) Source #
Wrap the callback into a GClosure
.
mk_FreeFunc :: C_FreeFunc -> IO (FunPtr C_FreeFunc) Source #
Generate a function pointer callable from C code, from a C_FreeFunc
.
wrap_FreeFunc :: Maybe (Ptr (FunPtr C_FreeFunc)) -> FreeFunc -> C_FreeFunc Source #
Wrap a FreeFunc
into a C_FreeFunc
.
ObjectDestroyFunc
type C_ObjectDestroyFunc = Ptr Object -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ObjectDestroyFunc = Object -> IO () Source #
No description available in the introspection data.
dynamic_ObjectDestroyFunc :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ObjectDestroyFunc -> a -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ObjectDestroyFunc :: MonadIO m => ObjectDestroyFunc -> m (GClosure C_ObjectDestroyFunc) Source #
Wrap the callback into a GClosure
.
mk_ObjectDestroyFunc :: C_ObjectDestroyFunc -> IO (FunPtr C_ObjectDestroyFunc) Source #
Generate a function pointer callable from C code, from a C_ObjectDestroyFunc
.
noObjectDestroyFunc :: Maybe ObjectDestroyFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ObjectDestroyFunc
wrap_ObjectDestroyFunc :: Maybe (Ptr (FunPtr C_ObjectDestroyFunc)) -> ObjectDestroyFunc -> C_ObjectDestroyFunc Source #
Wrap a ObjectDestroyFunc
into a C_ObjectDestroyFunc
.
SerializableCopyFunc
type C_SerializableCopyFunc = Ptr Serializable -> Ptr Serializable -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type SerializableCopyFunc Source #
= Serializable |
|
-> Serializable |
|
-> IO Bool |
Prototype of copy function.
Copy function copy from source Serializable
to the destination one.
Returns a gboolean value which indicates whether the copying is success.
dynamic_SerializableCopyFunc Source #
:: (HasCallStack, MonadIO m, IsSerializable a, IsSerializable b) | |
=> FunPtr C_SerializableCopyFunc | |
-> a |
|
-> b |
|
-> m Bool |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_SerializableCopyFunc :: MonadIO m => SerializableCopyFunc -> m (GClosure C_SerializableCopyFunc) Source #
Wrap the callback into a GClosure
.
mk_SerializableCopyFunc :: C_SerializableCopyFunc -> IO (FunPtr C_SerializableCopyFunc) Source #
Generate a function pointer callable from C code, from a C_SerializableCopyFunc
.
noSerializableCopyFunc :: Maybe SerializableCopyFunc Source #
A convenience synonym for
.Nothing
:: Maybe
SerializableCopyFunc
wrap_SerializableCopyFunc :: Maybe (Ptr (FunPtr C_SerializableCopyFunc)) -> SerializableCopyFunc -> C_SerializableCopyFunc Source #
Wrap a SerializableCopyFunc
into a C_SerializableCopyFunc
.
SerializableDeserializeFunc
type C_SerializableDeserializeFunc = Ptr Serializable -> Ptr GVariant -> IO Int32 Source #
Type for the callback on the (unwrapped) C side.
type SerializableDeserializeFunc Source #
= Serializable |
|
-> GVariant |
|
-> IO Int32 | Returns: The number of values in the variant(tuple) are consumed. |
Prototype of deserialize function.
Deserialize function convert a GVariant
to Serializable
.
Returns an integer value which indicates how many values in
the variant(tuple) are consumed.
dynamic_SerializableDeserializeFunc Source #
:: (HasCallStack, MonadIO m, IsSerializable a) | |
=> FunPtr C_SerializableDeserializeFunc | |
-> a |
|
-> GVariant |
|
-> m Int32 | Returns: The number of values in the variant(tuple) are consumed. |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_SerializableDeserializeFunc :: MonadIO m => SerializableDeserializeFunc -> m (GClosure C_SerializableDeserializeFunc) Source #
Wrap the callback into a GClosure
.
mk_SerializableDeserializeFunc :: C_SerializableDeserializeFunc -> IO (FunPtr C_SerializableDeserializeFunc) Source #
Generate a function pointer callable from C code, from a C_SerializableDeserializeFunc
.
noSerializableDeserializeFunc :: Maybe SerializableDeserializeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
SerializableDeserializeFunc
wrap_SerializableDeserializeFunc :: Maybe (Ptr (FunPtr C_SerializableDeserializeFunc)) -> SerializableDeserializeFunc -> C_SerializableDeserializeFunc Source #
Wrap a SerializableDeserializeFunc
into a C_SerializableDeserializeFunc
.
SerializableSerializeFunc
type C_SerializableSerializeFunc = Ptr Serializable -> Ptr VariantBuilder -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type SerializableSerializeFunc Source #
= Serializable |
|
-> VariantBuilder |
|
-> IO Bool |
Prototype of serialize function.
Serialize function convert an Serializable
to VariantBuilder
.
Returns a gboolean value which indicates whether the conversion is success.
Return True
if succeed.
dynamic_SerializableSerializeFunc Source #
:: (HasCallStack, MonadIO m, IsSerializable a) | |
=> FunPtr C_SerializableSerializeFunc | |
-> a |
|
-> VariantBuilder |
|
-> m Bool |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_SerializableSerializeFunc :: MonadIO m => SerializableSerializeFunc -> m (GClosure C_SerializableSerializeFunc) Source #
Wrap the callback into a GClosure
.
mk_SerializableSerializeFunc :: C_SerializableSerializeFunc -> IO (FunPtr C_SerializableSerializeFunc) Source #
Generate a function pointer callable from C code, from a C_SerializableSerializeFunc
.
noSerializableSerializeFunc :: Maybe SerializableSerializeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
SerializableSerializeFunc
wrap_SerializableSerializeFunc :: Maybe (Ptr (FunPtr C_SerializableSerializeFunc)) -> SerializableSerializeFunc -> C_SerializableSerializeFunc Source #
Wrap a SerializableSerializeFunc
into a C_SerializableSerializeFunc
.
UnicodeDataLoadAsyncFinish
type C_UnicodeDataLoadAsyncFinish = Ptr (GSList (Ptr UnicodeData)) -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type UnicodeDataLoadAsyncFinish = [UnicodeData] -> IO () Source #
This callback can receive the list of UnicodeData
.
type UnicodeDataLoadAsyncFinish_WithClosures = [UnicodeData] -> Ptr () -> IO () Source #
This callback can receive the list of UnicodeData
.
drop_closures_UnicodeDataLoadAsyncFinish :: UnicodeDataLoadAsyncFinish -> UnicodeDataLoadAsyncFinish_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_UnicodeDataLoadAsyncFinish :: (HasCallStack, MonadIO m, IsUnicodeData a) => FunPtr C_UnicodeDataLoadAsyncFinish -> [a] -> Ptr () -> m () Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_UnicodeDataLoadAsyncFinish :: MonadIO m => UnicodeDataLoadAsyncFinish -> m (GClosure C_UnicodeDataLoadAsyncFinish) Source #
Wrap the callback into a GClosure
.
mk_UnicodeDataLoadAsyncFinish :: C_UnicodeDataLoadAsyncFinish -> IO (FunPtr C_UnicodeDataLoadAsyncFinish) Source #
Generate a function pointer callable from C code, from a C_UnicodeDataLoadAsyncFinish
.
noUnicodeDataLoadAsyncFinish :: Maybe UnicodeDataLoadAsyncFinish Source #
A convenience synonym for
.Nothing
:: Maybe
UnicodeDataLoadAsyncFinish
noUnicodeDataLoadAsyncFinish_WithClosures :: Maybe UnicodeDataLoadAsyncFinish_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
UnicodeDataLoadAsyncFinish_WithClosures