File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / mqtt.h
Revision 1.2.2.1: download - view: text, annotated - select for diffs - revision graph
Wed Apr 25 16:36:25 2012 UTC (12 years, 2 months ago) by misho
Branches: mqtt1_1
remove KASession func and add same function from libaitmqtt

    1: #ifndef __MQTT_H
    2: #define __MQTT_H
    3: 
    4: 
    5: #define API_CLIENT_SIDE
    6: #include <mqttapi.h>
    7: 
    8: 
    9: struct tagArgs {
   10: 	io_sockaddr_t	addr;
   11: 	u_short		ka;
   12: 	mqtt_msg_t	*msg;
   13: 
   14: 	ait_val_t	ConnID;
   15: 	ait_val_t	User;
   16: 	ait_val_t	Pass;
   17: 
   18: 	struct {
   19: 		ait_val_t	Topic;
   20: 		ait_val_t	Msg;
   21: 	} Will;
   22: 
   23: 	u_short		MsgID;
   24: 
   25: 	u_char		Dup;
   26: 	u_char		Retain;
   27: 	u_char		QoS;
   28: 	u_char		notClear;
   29: 
   30: 	struct {
   31: 		u_char		isFile;
   32: 		ait_val_t	Value;
   33: 	};
   34: 
   35: 	ait_val_t	Publish;
   36: 
   37: 	array_t		*Subscribes;
   38: 
   39: 	void		(*free)(struct tagArgs*);
   40: };
   41: 
   42: extern struct tagArgs *args;
   43: 
   44: 
   45: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>