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