File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / mqtt.h
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Tue Jul 3 09:02:50 2012 UTC (11 years, 11 months ago) by misho
Branches: MAIN
CVS tags: mqtt1_2, MQTT1_1, HEAD
version 1.1

#ifndef __MQTT_H
#define __MQTT_H


#define API_CLIENT_SIDE
#include <aitmqtt.h>
#include <mqttapi.h>


struct tagArgs {
	mqtt_cli_t	*cli;
	io_sockaddr_t	addr;
	u_short		ka;
	mqtt_msg_t	*msg;

	ait_val_t	ConnID;
	ait_val_t	User;
	ait_val_t	Pass;

	struct {
		ait_val_t	Topic;
		ait_val_t	Msg;
	} Will;

	u_char		Dup;
	u_char		Retain;
	u_char		QoS;
	u_char		notClear;

	struct {
		u_char		isFile;
		ait_val_t	Value;
	};

	ait_val_t	Publish;

	mqtt_subscr_t	*subscr;

	void		(*free)(struct tagArgs*);
};

extern struct tagArgs *args;


#endif

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