File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / defs.h
Revision 1.2.2.1: download - view: text, annotated - select for diffs - revision graph
Fri Jan 27 15:18:12 2012 UTC (12 years, 5 months ago) by misho
Branches: mqtt1_1
remove mqtt library code from project
dont want to duplicate code and depend library strictly from this project

    1: #ifndef __DEFS_H
    2: #define __DEFS_H
    3: 
    4: 
    5: #define STRSIZ			256
    6: #if 0
    7: #define WILDCARDS		"/#+"
    8: #define MQTT_CONNFLGS_INIT	{ 1, 1, 1, 3, 1, 1, 1 }
    9: 
   10: #define MQTT_DATA_MAX		268435455
   11: #define MQTT_CONN_STR		"MQIsdp"
   12: #define MQTT_PROTO_VER		3
   13: #define MQTT_KEEPALIVE		10
   14: #define MQTT_DEFAULT_MSGID	0xDEBA
   15: #endif
   16: 
   17: #define DEFAULT_RETRY		1
   18: #define DEFAULT_CONFIG		"/etc/mqtt.conf"
   19: #define MQTT_PORT		"1883"
   20: #define MQTT_HOST		"localhost"
   21: #define MQTT_USER		"mqtt"
   22: 
   23: 
   24: extern char cliCmd[], *cliStr[];
   25: 
   26: extern intptr_t Kill;
   27: 
   28: extern struct tagCallbacks call;
   29: extern sqlite3 *acc, *pub;
   30: extern FILE *logg;
   31: 
   32: 
   33: #endif

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