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

/*************************************************************************
* (C) 2010 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com>
*  by Michael Pounov <misho@openbsd-bg.org>
*
* $Author: misho $
* $Id: defs.h,v 1.1.1.1 2010/04/16 13:20:29 misho Exp $
*
*************************************************************************/
#ifndef __DEFS_H
#define __DEFS_H


#define STRSIZ			256

#define MAX_PROMPT_ITEMS	20

#define LOGERR	{ \
			cli_Errno = errno; \
			strlcpy(cli_Error, strerror(errno), STRSIZ); \
		}


extern int cli_Errno;
extern char cli_Error[];

inline void cli_SetErr(int eno, char *estr, ...);


#endif

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