--- libaitio/src/aitio.c 2012/05/23 11:49:35 1.10.6.1 +++ libaitio/src/aitio.c 2012/05/23 12:16:13 1.10.6.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.c,v 1.10.6.1 2012/05/23 11:49:35 misho Exp $ +* $Id: aitio.c,v 1.10.6.3 2012/05/23 12:16:13 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -51,6 +51,8 @@ int io_Debug; #pragma GCC visibility push(hidden) +int io_mpool; + int io_Errno; char io_Error[STRSIZ]; @@ -82,6 +84,31 @@ io_SetErr(int eno, char *estr, ...) va_start(lst, estr); vsnprintf(io_Error, STRSIZ, estr, lst); va_end(lst); +} + +// mpool_inuse() Check for mpool usage +inline int +mpool_inuse() +{ + return io_mpool; +} + + +// init libaitio routine +void +_init() +{ +#ifdef USE_MPOOL + io_mpool = 42; +#else + io_mpool = 0; +#endif +} + +// fini libaitio routine +void +_fini() +{ }