gboolean vortex_xml_rpc_method_call_is XmlRpcMethodCall method_call,
gchar *  method_name,
gint  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 on validating the method called "sum" with integer parameters:

 if (vortex_xml_rpc_method_call_is (method_call, 2, 
                                    XML_RPC_INT_VALUE,
                                    XML_RPC_INT_VALUE, -1) {
     g_print ("Great, this is the method we where looking for");  
 }

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_call The method call to check.
method_name The method name to check. This value is optional. If it is not provided, the method name will not be checked.
param_num The method parameter number to check. To disable method parameter number check, -1 must be used.
Returns:
TRUE if method match, otherwise FALSE is returned.