Annotation of libaitcli/inc/defs.h, revision 1.2.2.1

1.1       misho       1: /*************************************************************************
                      2: * (C) 2010 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com>
                      3: *  by Michael Pounov <misho@openbsd-bg.org>
                      4: *
                      5: * $Author: misho $
1.2.2.1 ! misho       6: * $Id: defs.h,v 1.2 2010/06/04 11:32:47 misho Exp $
1.1       misho       7: *
                      8: *************************************************************************/
                      9: #ifndef __DEFS_H
                     10: #define __DEFS_H
                     11: 
                     12: 
                     13: #define STRSIZ                 256
1.2.2.1 ! misho      14: #define MAX_BINDKEY            559
1.1       misho      15: 
1.2.2.1 ! misho      16: #define HISTORY_LINES          100
        !            17: #define HISTORY_FILE           "/tmp/.aitcli.history"
        !            18: 
        !            19: #define CLI_PROMPT             "aitCLI> "
        !            20: 
        !            21: #define LINEMODE_RAW           -1
        !            22: #define LINEMODE_INS           0
        !            23: #define LINEMODE_OVER          1
        !            24: 
        !            25: #define RETCODE_ERR            -1
        !            26: #define RETCODE_OK             0
        !            27: #define RETCODE_EOL            1
        !            28: #define RETCODE_EOF            2
1.1       misho      29: 
1.2       misho      30: #define DEFAULT_SOCK_TIMEOUT   60
                     31: 
1.1       misho      32: #define LOGERR { \
                     33:                        cli_Errno = errno; \
                     34:                        strlcpy(cli_Error, strerror(errno), STRSIZ); \
                     35:                }
                     36: 
                     37: 
                     38: extern int cli_Errno;
                     39: extern char cli_Error[];
                     40: 
                     41: inline void cli_SetErr(int eno, char *estr, ...);
                     42: 
                     43: 
                     44: #endif

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