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

    1: #ifndef __RTLM_H
    2: #define __RTLM_H
    3: 
    4: 
    5: void mqttLog(const char *, ...);
    6: 
    7: void *mqttLoadRTLM(sl_config*, int);
    8: void mqttUnloadRTLM(int);
    9: 
   10: inline int mqttMkDir(sl_config *);
   11: 
   12: 
   13: struct tagCallbacks {
   14: 	/* mqtt_acc.so */
   15: 	void *(*OpenACC)(sl_config *);
   16: 	void (*CloseACC)(void *);
   17: 
   18: 	/* mqtt_pub.so */
   19: 	void *(*OpenPUB)(sl_config *);
   20: 	void (*ClosePUB)(void *);
   21: 
   22: 	/* mqtt_log.so */
   23: 	void *(*OpenLOG)(sl_config *);
   24: 	void (*CloseLOG)(void *);
   25: 	int (*LOG)(void *, const char *, ...);
   26: };
   27: 
   28: 
   29: #endif

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