| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Soup.Structs.XMLRPCParams
Contents
Description
Opaque structure containing XML-RPC methodCall parameter values.
Can be parsed using xMLRPCParamsParse and freed with
xMLRPCParamsFree.
- newtype XMLRPCParams = XMLRPCParams (ManagedPtr XMLRPCParams)
- noXMLRPCParams :: Maybe XMLRPCParams
- data XMLRPCParamsFreeMethodInfo
- xMLRPCParamsFree :: (HasCallStack, MonadIO m) => XMLRPCParams -> m ()
- data XMLRPCParamsParseMethodInfo
- xMLRPCParamsParse :: (HasCallStack, MonadIO m) => XMLRPCParams -> Maybe Text -> m GVariant
Exported types
newtype XMLRPCParams Source #
Constructors
| XMLRPCParams (ManagedPtr XMLRPCParams) |
Instances
| WrappedPtr XMLRPCParams Source # | |
| ((~) * info (ResolveXMLRPCParamsMethod t XMLRPCParams), MethodInfo * info XMLRPCParams p) => IsLabel t (XMLRPCParams -> p) Source # | |
| ((~) * info (ResolveXMLRPCParamsMethod t XMLRPCParams), MethodInfo * info XMLRPCParams p) => IsLabelProxy t (XMLRPCParams -> p) Source # | |
| HasAttributeList * XMLRPCParams Source # | |
| ((~) * signature (Maybe Text -> m GVariant), MonadIO m) => MethodInfo * XMLRPCParamsParseMethodInfo XMLRPCParams signature Source # | |
| ((~) * signature (m ()), MonadIO m) => MethodInfo * XMLRPCParamsFreeMethodInfo XMLRPCParams signature Source # | |
| type AttributeList XMLRPCParams Source # | |
Methods
free
data XMLRPCParamsFreeMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m) => MethodInfo * XMLRPCParamsFreeMethodInfo XMLRPCParams signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m) | |
| => XMLRPCParams |
|
| -> m () |
Free a XMLRPCParams returned by xmlrpcParseRequest.
Since: 2.52
parse
data XMLRPCParamsParseMethodInfo Source #
Instances
| ((~) * signature (Maybe Text -> m GVariant), MonadIO m) => MethodInfo * XMLRPCParamsParseMethodInfo XMLRPCParams signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m) | |
| => XMLRPCParams |
|
| -> Maybe Text | |
| -> m GVariant | Returns: a new (non-floating) |
Parse method parameters returned by xmlrpcParseRequest.
Deserialization details:
- If signature is provided, <int> and <i4> can be deserialized
to byte, int16, uint16, int32, uint32, int64 or uint64. Otherwise
it will be deserialized to int32. If the value is out of range
for the target type it will return an error.
- <struct> will be deserialized to "a{sv}". signature could define
another value type (e.g. "a{ss}").
- <array> will be deserialized to "av". signature could define
another element type (e.g. "as") or could be a tuple (e.g. "(ss)").
- <base64> will be deserialized to "ay".
- <string> will be deserialized to "s".
- <dateTime.iso8601> will be deserialized to an unspecified variant
type. If signature is provided it must have the generic "v" type, which
means there is no guarantee that it's actually a datetime that has been
received. xmlrpcVariantGetDatetime must be used to parse and
type check this special variant.
- signature must not have maybes, otherwise an error is returned.
- Dictionaries must have string keys, otherwise an error is returned.
Since: 2.52