File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / mqtt.h
Revision 1.2.2.4: download - view: text, annotated - select for diffs - revision graph
Wed May 9 13:57:39 2012 UTC (12 years, 1 month ago) by misho
Branches: mqtt1_1
changed Publish

    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: 	mqtt_cli_t	*cli;
   11: 	io_sockaddr_t	addr;
   12: 	u_short		ka;
   13: 	mqtt_msg_t	*msg;
   14: 
   15: 	ait_val_t	ConnID;
   16: 	ait_val_t	User;
   17: 	ait_val_t	Pass;
   18: 
   19: 	struct {
   20: 		ait_val_t	Topic;
   21: 		ait_val_t	Msg;
   22: 	} Will;
   23: 
   24: 	u_char		Dup;
   25: 	u_char		Retain;
   26: 	u_char		QoS;
   27: 	u_char		notClear;
   28: 
   29: 	struct {
   30: 		u_char		isFile;
   31: 		ait_val_t	Value;
   32: 	};
   33: 
   34: 	ait_val_t	Publish;
   35: 
   36: 	mqtt_subscr_t	*subscr;
   37: 
   38: 	void		(*free)(struct tagArgs*);
   39: };
   40: 
   41: extern struct tagArgs *args;
   42: 
   43: 
   44: #endif

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