File:  [ELWIX - Embedded LightWeight unIX -] / libaitcli / inc / defs.h
Revision 1.1.1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Sat Apr 24 10:02:33 2010 UTC (14 years, 3 months ago) by misho
Branches: cli1_0
CVS tags: cli1_0_readlineNET
Diff to: branchpoint 1.1.1.1: preferred, unified
added new dependant libaittelnet and makes network socket cli feature

    1: /*************************************************************************
    2: * (C) 2010 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com>
    3: *  by Michael Pounov <misho@openbsd-bg.org>
    4: *
    5: * $Author: misho $
    6: * $Id: defs.h,v 1.1.1.1.2.1 2010/04/24 10:02:33 misho Exp $
    7: *
    8: *************************************************************************/
    9: #ifndef __DEFS_H
   10: #define __DEFS_H
   11: 
   12: 
   13: #define STRSIZ			256
   14: 
   15: #define MAX_PROMPT_ITEMS	20
   16: 
   17: #define DEFAULT_SOCK_TIMEOUT	60
   18: 
   19: #define LOGERR	{ \
   20: 			cli_Errno = errno; \
   21: 			strlcpy(cli_Error, strerror(errno), STRSIZ); \
   22: 		}
   23: 
   24: 
   25: extern int cli_Errno;
   26: extern char cli_Error[];
   27: 
   28: inline void cli_SetErr(int eno, char *estr, ...);
   29: 
   30: 
   31: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>