File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / rtlm.h
Revision 1.1.2.4: download - view: text, annotated - select for diffs - revision graph
Thu Nov 24 00:08:55 2011 UTC (12 years, 7 months ago) by misho
Branches: mqtt1_0
again rework callbacks :) for easy init all with NULL
finish log_mqtt.so

#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 *);

	/* mqtt_pub.so */
	void *(*OpenPUB)(sl_config *);
	void (*ClosePUB)(void *);

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


#endif

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