axl_bool vortex_xml_rpc_method_call_is ( XmlRpcMethodCall method_call,
const char *  method_name,
int  param_num,
  ... 
)

Allows to check if the given method call meets the requirements provided.

Before executing a method call, this function could be used to peform some basic method call recognition, based on the method name, the parameter number, and tye expected type for the incoming data.

Here is an example to validate the method called "sum" with 2 integer parameters:

1 if (vortex_xml_rpc_method_call_is (method_call, "sum", 2,
2  XML_RPC_INT_VALUE,
3  XML_RPC_INT_VALUE, -1) {
4  printf ("Great, this is the method we where looking for");
5 }

Argument type validation must always finish with a -1 value. If it is only required to perform a method call recognition based on the method name and its argument number without taking into account the argument type validation, then -1 must be used as the last value.

Parameters
method_callThe method call to check.
method_nameThe method name to check. This value is optional. If it is not provided, the method name will not be checked.
param_numThe method parameter number to check. To disable method parameter number check, -1 must be used.
Returns
axl_true if method match, otherwise axl_false is returned.

References method_call_get_param_value, and method_value_get_type.