--- libaitcli/inc/aitcli.h 2013/11/20 16:26:51 1.9 +++ libaitcli/inc/aitcli.h 2013/11/22 14:25:37 1.9.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.h,v 1.9 2013/11/20 16:26:51 misho Exp $ +* $Id: aitcli.h,v 1.9.4.1 2013/11/22 14:25:37 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; @@ -562,6 +563,7 @@ int cliLoop(linebuffer_t * __restrict cli_buffer, cons */ int cliNetLoop(linebuffer_t * __restrict cli_buffer, const char *csHistFile, int sock, int timeout, const char *cmd_name); +#define cliKillLoop(_x) (assert((_x)), (_x)->line_kill = 1) #endif