--- mqtt/inc/mqtt.h 2011/12/13 09:51:35 1.1.2.5 +++ mqtt/inc/mqtt.h 2012/04/25 16:36:25 1.2.2.1 @@ -2,10 +2,16 @@ #define __MQTT_H +#define API_CLIENT_SIDE +#include + + struct tagArgs { io_sockaddr_t addr; + u_short ka; mqtt_msg_t *msg; + ait_val_t ConnID; ait_val_t User; ait_val_t Pass; @@ -14,11 +20,17 @@ struct tagArgs { ait_val_t Msg; } Will; - char Dup; - char Retain; - char QoS; - char isFile; - ait_val_t Value; + u_short MsgID; + + u_char Dup; + u_char Retain; + u_char QoS; + u_char notClear; + + struct { + u_char isFile; + ait_val_t Value; + }; ait_val_t Publish;