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 |
Synopsis
- type C_URISchemeRequestCallback = Ptr URISchemeRequest -> Ptr () -> IO ()
- type URISchemeRequestCallback = URISchemeRequest -> IO ()
- type URISchemeRequestCallback_WithClosures = URISchemeRequest -> Ptr () -> IO ()
- drop_closures_URISchemeRequestCallback :: URISchemeRequestCallback -> URISchemeRequestCallback_WithClosures
- dynamic_URISchemeRequestCallback :: (HasCallStack, MonadIO m, IsURISchemeRequest a) => FunPtr C_URISchemeRequestCallback -> a -> Ptr () -> m ()
- genClosure_URISchemeRequestCallback :: MonadIO m => URISchemeRequestCallback -> m (GClosure C_URISchemeRequestCallback)
- mk_URISchemeRequestCallback :: C_URISchemeRequestCallback -> IO (FunPtr C_URISchemeRequestCallback)
- noURISchemeRequestCallback :: Maybe URISchemeRequestCallback
- noURISchemeRequestCallback_WithClosures :: Maybe URISchemeRequestCallback_WithClosures
- wrap_URISchemeRequestCallback :: Maybe (Ptr (FunPtr C_URISchemeRequestCallback)) -> URISchemeRequestCallback_WithClosures -> C_URISchemeRequestCallback
Signals
URISchemeRequestCallback
type C_URISchemeRequestCallback = Ptr URISchemeRequest -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type URISchemeRequestCallback Source #
= URISchemeRequest |
|
-> IO () |
Type definition for a function that will be called back when an URI request is made for a user registered URI scheme.
type URISchemeRequestCallback_WithClosures Source #
= URISchemeRequest |
|
-> Ptr () |
|
-> IO () |
Type definition for a function that will be called back when an URI request is made for a user registered URI scheme.
drop_closures_URISchemeRequestCallback :: URISchemeRequestCallback -> URISchemeRequestCallback_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_URISchemeRequestCallback Source #
:: (HasCallStack, MonadIO m, IsURISchemeRequest a) | |
=> FunPtr C_URISchemeRequestCallback | |
-> a |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_URISchemeRequestCallback :: MonadIO m => URISchemeRequestCallback -> m (GClosure C_URISchemeRequestCallback) Source #
Wrap the callback into a GClosure
.
mk_URISchemeRequestCallback :: C_URISchemeRequestCallback -> IO (FunPtr C_URISchemeRequestCallback) Source #
Generate a function pointer callable from C code, from a C_URISchemeRequestCallback
.
noURISchemeRequestCallback :: Maybe URISchemeRequestCallback Source #
A convenience synonym for
.Nothing
:: Maybe
URISchemeRequestCallback
noURISchemeRequestCallback_WithClosures :: Maybe URISchemeRequestCallback_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
URISchemeRequestCallback_WithClosures