--- libaitmqtt/inc/mqttapi.h 2012/05/05 13:10:24 1.1.2.6 +++ libaitmqtt/inc/mqttapi.h 2012/05/05 13:31:48 1.1.2.7 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: mqttapi.h,v 1.1.2.6 2012/05/05 13:10:24 misho Exp $ +* $Id: mqttapi.h,v 1.1.2.7 2012/05/05 13:31:48 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -84,11 +84,11 @@ void mqtt_srv_Fini(mqtt_srv_t ** __restrict psrv); * mqtt_srv_Dispatch() MQTT server dispatcher * * @srv = Server handle - * @arg = Argument pass to command callback * @rlen = Ready bytes to parse + * @arg = Argument pass to command callback * return: -1 error or 0 ok */ -int mqtt_srv_Dispatch(mqtt_srv_t * __restrict srv, void *arg, int rlen); +int mqtt_srv_Dispatch(mqtt_srv_t * __restrict srv, int rlen, void *arg); #endif /*