--- mqtt/inc/mqtt.h 2011/12/29 14:13:13 1.1.2.8 +++ mqtt/inc/mqtt.h 2012/05/01 22:19:29 1.2.2.3 @@ -2,7 +2,12 @@ #define __MQTT_H +#define API_CLIENT_SIDE +#include + + struct tagArgs { + mqtt_cli_t *cli; io_sockaddr_t addr; u_short ka; mqtt_msg_t *msg; @@ -16,19 +21,21 @@ struct tagArgs { ait_val_t Msg; } Will; + u_short MsgID; + u_char Dup; u_char Retain; u_char QoS; u_char notClear; struct { - FILE *isFile; + u_char isFile; ait_val_t Value; }; ait_val_t Publish; - array_t *Subscribes; + mqtt_subscr_t *subscr; void (*free)(struct tagArgs*); };