File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / rtlm.h
Revision 1.1.2.13: download - view: text, annotated - select for diffs - revision graph
Mon Dec 12 09:24:24 2011 UTC (12 years, 6 months ago) by misho
Branches: mqtt1_0
start client development

#ifndef __RTLM_H
#define __RTLM_H


void mqttLog(const char *, ...);

void *mqttLoadRTLM(sl_config*, int);
void mqttUnloadRTLM(int);

inline int mqttMkDir(sl_config *);


struct tagCallbacks {
	/* mqtt_acc.so */
	void *(*OpenACC)(sl_config *);
	void (*CloseACC)(void *);
	int (*LoginACC)(sl_config *, void *, const char*, const char*);

	/* mqtt_pub.so */
	void *(*OpenPUB)(sl_config *);
	void (*ClosePUB)(void *);
	int (*InitSessPUB)(sl_config *, void *, const char*, const char*, const char*, u_short, char, ...);
	int (*FiniSessPUB)(sl_config *, void *, const char*, const char*, const char*);
	int (*ChkSessPUB)(sl_config *, void *, const char*, const char*, const char*);
	int (*WritePUB)(sl_config *, void *, u_short, const char*, const char*, const char*, const char*, char);
	mqtt_subscr_t *(*ReadPUB)(sl_config *, void *, u_short, const char*, char);
	int (*DeletePUB)(sl_config *, void *, u_short, const char*, const char*, const char*, char);

	/* mqtt_log.so */
	void *(*OpenLOG)(sl_config *);
	void (*CloseLOG)(void *);
	int (*LOG)(void *, const char *, ...);
};


#endif

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