Annotation of mqtt/inc/defs.h, revision 1.1.1.1.2.11

1.1       misho       1: #ifndef __DEFS_H
                      2: #define __DEFS_H
                      3: 
                      4: 
1.1.1.1.2.5  misho       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: 
1.1.1.1.2.9  misho      14: #define DEFAULT_CONFIG         "/etc/mqtt.conf"
1.1.1.1.2.11! misho      15: #define MQTT_PORT              "1883"
        !            16: #define MQTT_HOST              "localhost"
1.1.1.1.2.9  misho      17: 
1.1       misho      18: 
1.1.1.1.2.10  misho      19: #define VERB(x)        if ((x) <= Verbose)
                     20: 
1.1.1.1.2.1  misho      21: #define LOGERR { \
                     22:                        mqtt_Errno = errno; \
                     23:                        strlcpy(mqtt_Error, strerror(errno), sizeof mqtt_Error); \
                     24:                }
                     25: 
1.1       misho      26: 
1.1.1.1.2.6  misho      27: extern int mqtt_Errno;
                     28: extern char mqtt_Error[STRSIZ];
1.1.1.1.2.8  misho      29: extern struct tagCallbacks call;
                     30: 
1.1.1.1.2.2  misho      31: inline void mqtt_SetErr(int eno, char *estr, ...);
                     32: 
1.1.1.1.2.9  misho      33: extern int Verbose;
                     34: 
1.1.1.1.2.2  misho      35: 
1.1       misho      36: #endif

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