File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / inc / defs.h
Revision 1.1.1.1.2.7: download - view: text, annotated - select for diffs - revision graph
Tue Nov 22 15:25:19 2011 UTC (12 years, 7 months ago) by misho
Branches: mqtt1_0
Diff to: branchpoint 1.1.1.1: preferred, unified
add callback functions dispatcher

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

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