File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / defs.h
Revision 1.1.1.1.2.9: download - view: text, annotated - select for diffs - revision graph
Tue Nov 29 22:42:23 2011 UTC (12 years, 7 months ago) by misho
Branches: mqtt1_0
Diff to: branchpoint 1.1.1.1: preferred, unified
added 1st lines for mqttd

    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: 
   16: 
   17: #define LOGERR	{ \
   18: 			mqtt_Errno = errno; \
   19: 			strlcpy(mqtt_Error, strerror(errno), sizeof mqtt_Error); \
   20: 		}
   21: 
   22: 
   23: extern int mqtt_Errno;
   24: extern char mqtt_Error[STRSIZ];
   25: extern struct tagCallbacks call;
   26: 
   27: inline void mqtt_SetErr(int eno, char *estr, ...);
   28: 
   29: extern int Verbose;
   30: 
   31: 
   32: #endif

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