XmlRpcMethodValue * vortex_xml_rpc_method_value_new_from_string2 ( VortexCtx ctx,
const char *  type,
const char *  string_value 

Allows to create a new method value (XmlRpcMethodValue) by providing two strings which are the type and the value representation.

The type string which have the following values according to the desired type value:

Type Enum type valueValue to be used
Integer value XML_RPC_INT_VALUE"int"
Boolean value XML_RPC_BOOLEAN_VALUE"boolean"
Double value XML_RPC_DOUBLE_VALUE"boolean"
String value XML_RPC_STRING_VALUE"string"
Base64 string value XML_RPC_BASE64_VALUE"base64"
Struct value XML_RPC_STRUCT_VALUENot supported
Array value XML_RPC_ARRAY_VALUENot supported
ctxThe context where the method value is being created.
typeAn string which specifies the method value type. See the table above.
string_valueThe string value associated to the method value, which is a proper string representation of the string value.
A newly created method value, that must be deallocated by using vortex_xml_rpc_method_value_free. This is not required if the value is set as a method parameter (for a XmlRpcMethodCall) or a method response (XmlRpcMethodResponse). The function will return NULL if some parameter received is NULL or the type specification is not properly formated.

References vortex_xml_rpc_method_value_new_from_string(), XML_RPC_BOOLEAN_VALUE, XML_RPC_INT_VALUE, and XML_RPC_STRING_VALUE.