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

1.1       misho       1: #ifndef __DEFS_H
                      2: #define __DEFS_H
                      3: 
                      4: 
1.1.1.1.2.5  misho       5: #define STRSIZ                 256
1.1.1.1.2.17  misho       6: #define MAX_CONNID             24
                      7: #define MAX_CRED               13
1.1.1.1.2.5  misho       8: #define MQTTMSG_MAX            65529
                      9: #define WILDCARDS              "/#+"
1.1.1.1.2.15  misho      10: #define MQTT_CONNFLGS_INIT     { 1, 1, 1, 3, 1, 1, 1 }
1.1.1.1.2.5  misho      11: 
                     12: #define MQTT_DATA_MAX          268435455
                     13: #define MQTT_CONN_STR          "MQIsdp"
                     14: #define MQTT_PROTO_VER         3
                     15: #define MQTT_KEEPALIVE         10
1.1.1.1.2.21! misho      16: #define MQTT_DEFAULT_MSGID     0xDEBA
1.1.1.1.2.5  misho      17: 
1.1.1.1.2.18  misho      18: #define DEFAULT_RETRY          1
1.1.1.1.2.9  misho      19: #define DEFAULT_CONFIG         "/etc/mqtt.conf"
1.1.1.1.2.11  misho      20: #define MQTT_PORT              "1883"
                     21: #define MQTT_HOST              "localhost"
1.1.1.1.2.12  misho      22: #define MQTT_USER              "mqtt"
1.1.1.1.2.9  misho      23: 
1.1       misho      24: 
1.1.1.1.2.12  misho      25: #define LOGERR         { \
                     26:                                mqtt_Errno = errno; \
                     27:                                strlcpy(mqtt_Error, strerror(errno), sizeof mqtt_Error); \
                     28:                        }
1.1.1.1.2.1  misho      29: 
1.1       misho      30: 
1.1.1.1.2.6  misho      31: extern int mqtt_Errno;
                     32: extern char mqtt_Error[STRSIZ];
1.1.1.1.2.8  misho      33: extern struct tagCallbacks call;
                     34: 
1.1.1.1.2.19  misho      35: extern char cliCmd[], *cliStr[];
                     36: 
1.1.1.1.2.2  misho      37: inline void mqtt_SetErr(int eno, char *estr, ...);
1.1.1.1.2.16  misho      38: inline struct mqtthdr *_mqtt_readHEADER(mqtt_msg_t * __restrict, u_char, int *, int *);
1.1.1.1.2.2  misho      39: 
1.1.1.1.2.20  misho      40: extern intptr_t Kill;
1.1.1.1.2.9  misho      41: 
1.1.1.1.2.19  misho      42: extern struct tagCallbacks call;
                     43: extern sqlite3 *acc, *pub;
                     44: extern FILE *logg;
                     45: 
1.1.1.1.2.2  misho      46: 
1.1       misho      47: #endif

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