--- libaitmqtt/inc/defs.h 2012/01/27 15:12:27 1.1.1.1.2.1 +++ libaitmqtt/inc/defs.h 2012/05/08 09:07:31 1.1.1.1.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.1.1.1.2.1 2012/01/27 15:12:27 misho Exp $ +* $Id: defs.h,v 1.1.1.1.2.4 2012/05/08 09:07:31 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -51,11 +51,7 @@ SUCH DAMAGE. #define WILDCARDS "/#+" #define MQTT_CONNFLGS_INIT { 1, 1, 1, 3, 1, 1, 1 } -#define MQTT_DATA_MAX 268435455 #define MQTT_CONN_STR "MQIsdp" -#define MQTT_PROTO_VER 3 -#define MQTT_KEEPALIVE 10 -#define MQTT_DEFAULT_MSGID 0xDEBA #define LOGERR { \ @@ -67,8 +63,10 @@ SUCH DAMAGE. extern int mqtt_Errno; extern char mqtt_Error[STRSIZ]; -inline void mqtt_SetErr(int eno, char *estr, ...); +inline void mqtt_SetErr(int, char *, ...); inline struct mqtthdr *_mqtt_readHEADER(mqtt_msg_t * __restrict, u_char, int *, int *); + +inline int mqtt_wait4data(int, u_short, short); #endif