File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / defs.h
Revision 1.1.1.1.2.13: download - view: text, annotated - select for diffs - revision graph
Thu Dec 1 00:10:18 2011 UTC (12 years, 6 months ago) by misho
Branches: mqtt1_0
Diff to: branchpoint 1.1.1.1: preferred, unified
add scheduler init and finish

    1: #ifndef __DEFS_H
    2: #define __DEFS_H
    3: 
    4: 
    5: #define STRSIZ			256
    6: #define MQTTMSG_MAX		65529
    7: #define WILDCARDS		"/#+"
    8: 
    9: #define MQTT_DATA_MAX		268435455
   10: #define MQTT_CONN_STR		"MQIsdp"
   11: #define MQTT_PROTO_VER		3
   12: #define MQTT_KEEPALIVE		10
   13: 
   14: #define DEFAULT_CONFIG		"/etc/mqtt.conf"
   15: #define MQTT_PORT		"1883"
   16: #define MQTT_HOST		"localhost"
   17: #define MQTT_USER		"mqtt"
   18: 
   19: 
   20: #define VERB(x)		if ((x) <= Verbose)
   21: #define FTRACE(x)	VERB((x)) syslog(LOG_DEBUG, "I'm in %s(%d)", __func__, __LINE__);
   22: 
   23: #define LOGERR		{ \
   24: 				mqtt_Errno = errno; \
   25: 				strlcpy(mqtt_Error, strerror(errno), sizeof mqtt_Error); \
   26: 			}
   27: 
   28: 
   29: extern int mqtt_Errno;
   30: extern char mqtt_Error[STRSIZ];
   31: extern struct tagCallbacks call;
   32: 
   33: inline void mqtt_SetErr(int eno, char *estr, ...);
   34: 
   35: extern int Verbose;
   36: extern sched_root_task_t *root;
   37: 
   38: 
   39: #endif

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