diff -ru vortex-1.0.2.b2607.g2608/src/vortex_handlers.h vortex-1.0.2.new/src/vortex_handlers.h --- vortex-1.0.2.b2607.g2608/src/vortex_handlers.h 2007-03-16 12:43:38.000000000 +0100 +++ vortex-1.0.2.new/src/vortex_handlers.h 2007-04-04 15:52:43.000000000 +0200 @@ -1143,12 +1143,13 @@ * bool validate_all_resources (VortexConnection * connection, * int channel_number, * char * serverName, - * char * resource_path) + * char * resource_path, + * axlPointer user_data) * { - * // Ahis is a kind of useless validation handler because + * // This is a kind of useless validation handler because * // it is doing the same like passing a NULL reference. * // - * // On this handler could be programmer any politic about + * // In this handler could be programmed any policy about * // or not a resource, maybe based on the connection source * // the number of channels that the connection have, etc. * return true; @@ -1159,13 +1160,15 @@ * @param channel_number The channel number to create requested. * @param serverName An optional serverName value to act as. * @param resource_path The resource path requested. + * @param user_data User space data. * * @return true to accept resource requested. false if not. */ typedef bool (*VortexXmlRpcValidateResource) (VortexConnection * connection, int channel_number, char * serverName, - char * resource_path); + char * resource_path, + axlPointer user_data); /** diff -ru vortex-1.0.2.b2607.g2608/src/vortex_xml_rpc.c vortex-1.0.2.new/src/vortex_xml_rpc.c --- vortex-1.0.2.b2607.g2608/src/vortex_xml_rpc.c 2007-03-15 13:13:36.000000000 +0100 +++ vortex-1.0.2.new/src/vortex_xml_rpc.c 2007-04-04 15:55:11.000000000 +0200 @@ -1896,7 +1896,7 @@ }else { /* invoke application level resource validation */ accept = __vortex_xml_rpc_validate_resource (connection, channel_num, - serverName, resource); + serverName, resource, __vortex_xml_rpc_validate_data); } /* reply with a bootrpy or an error message, accepting the channel to be created */ diff -ru vortex-1.0.2.b2607.g2608/test/vortex-xml-rpc-listener.c vortex-1.0.2.new/test/vortex-xml-rpc-listener.c --- vortex-1.0.2.b2607.g2608/test/vortex-xml-rpc-listener.c 2007-02-08 11:14:39.000000000 +0100 +++ vortex-1.0.2.new/test/vortex-xml-rpc-listener.c 2007-04-04 16:02:17.000000000 +0200 @@ -24,7 +24,8 @@ bool validate_resource (VortexConnection * connection, int channel_number, char * serverName, - char * resource_path) + char * resource_path, + axlPointer user_data) { printf ("Received request to validate resource: '%s' (virtual host: serverName='%s')\n",