--- libaitcli/inc/aitcli.h 2013/11/20 16:04:42 1.8.2.1 +++ libaitcli/inc/aitcli.h 2013/11/22 15:17:22 1.10 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.h,v 1.8.2.1 2013/11/20 16:04:42 misho Exp $ +* $Id: aitcli.h,v 1.10 2013/11/22 15:17:22 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -226,6 +226,7 @@ typedef SLIST_HEAD(slCommandHead, tagCommand) commands /* Main structure, Buffer for CLI work with thread models ;-) special designed by M.Punov */ typedef struct { + int line_kill; char line_mode; char *line_prompt; @@ -558,6 +559,7 @@ int cliLoop(linebuffer_t * __restrict cli_buffer, cons */ int cliNetLoop(linebuffer_t * __restrict cli_buffer, const char *csHistFile, int sock, int timeout); +#define cliKillLoop(_x) (assert((_x)), (_x)->line_kill = 1) #endif