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

    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: 	int (*LoginACC)(sl_config *, void *, const char*, const char*);
   18: 
   19: 	/* mqtt_pub.so */
   20: 	void *(*OpenPUB)(sl_config *);
   21: 	void (*ClosePUB)(void *);
   22: 	int (*InitSessPUB)(sl_config *, void *, const char*, const char*, const char*, u_short, char, ...);
   23: 	int (*FiniSessPUB)(sl_config *, void *, const char*, const char*, const char*);
   24: 	int (*ChkSessPUB)(sl_config *, void *, const char*, const char*, const char*);
   25: 	int (*WritePUB)(sl_config *, void *, u_short, const char*, const char*, const char*, const char*, char);
   26: 	mqtt_subscr_t *(*ReadPUB)(sl_config *, void *, u_short, const char*, char);
   27: 	int (*DeletePUB)(sl_config *, void *, u_short, const char*, const char*, const char*, char);
   28: 
   29: 	/* mqtt_log.so */
   30: 	void *(*OpenLOG)(sl_config *);
   31: 	void (*CloseLOG)(void *);
   32: 	int (*LOG)(void *, const char *, ...);
   33: };
   34: 
   35: 
   36: #endif

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