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, 1 month ago) by misho
Branches: mqtt1_1
remove KASession func and add same function from libaitmqtt

#ifndef __MQTT_H
#define __MQTT_H


#define API_CLIENT_SIDE
#include <mqttapi.h>


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;

	struct {
		ait_val_t	Topic;
		ait_val_t	Msg;
	} Will;

	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;

	array_t		*Subscribes;

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

extern struct tagArgs *args;


#endif

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