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>