--- mqtt/inc/mqtt.h 2012/01/27 15:05:38 1.2 +++ mqtt/inc/mqtt.h 2012/07/03 09:02:50 1.3 @@ -2,7 +2,13 @@ #define __MQTT_H +#define API_CLIENT_SIDE +#include +#include + + struct tagArgs { + mqtt_cli_t *cli; io_sockaddr_t addr; u_short ka; mqtt_msg_t *msg; @@ -16,8 +22,6 @@ struct tagArgs { ait_val_t Msg; } Will; - u_short MsgID; - u_char Dup; u_char Retain; u_char QoS; @@ -30,7 +34,7 @@ struct tagArgs { ait_val_t Publish; - array_t *Subscribes; + mqtt_subscr_t *subscr; void (*free)(struct tagArgs*); };