--- libaitmqtt/inc/defs.h 2012/01/27 15:16:40 1.1.1.1.2.3 +++ libaitmqtt/inc/defs.h 2012/07/22 22:02:44 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.1.1.1.2.3 2012/01/27 15:16:40 misho Exp $ +* $Id: defs.h,v 1.3 2012/07/22 22:02:44 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -47,7 +47,10 @@ SUCH DAMAGE. #define __DEFS_H +#ifndef STRSIZ #define STRSIZ 256 +#endif + #define WILDCARDS "/#+" #define MQTT_CONNFLGS_INIT { 1, 1, 1, 3, 1, 1, 1 } @@ -63,8 +66,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