File:  [ELWIX - Embedded LightWeight unIX -] / libaitcli / inc / defs.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Apr 16 13:20:29 2010 UTC (14 years, 2 months ago) by misho
Branches: start
CVS tags: misho, cli1_0
libaitcli AIT CLI API

    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 2010/04/16 13:20:29 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 LOGERR	{ \
   18: 			cli_Errno = errno; \
   19: 			strlcpy(cli_Error, strerror(errno), STRSIZ); \
   20: 		}
   21: 
   22: 
   23: extern int cli_Errno;
   24: extern char cli_Error[];
   25: 
   26: inline void cli_SetErr(int eno, char *estr, ...);
   27: 
   28: 
   29: #endif

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