File:  [ELWIX - Embedded LightWeight unIX -] / ansh / inc / proto.h
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Oct 4 22:37:46 2011 UTC (12 years, 8 months ago) by misho
Branches: MAIN
CVS tags: HEAD
Initial revision

    1: /*************************************************************************
    2:  * (C) 2011 AITNET - Sofia/Bulgaria - <office@aitnet.org>
    3:  *  by Michael Pounov <misho@elwix.org>
    4:  *
    5:  * $Author: misho $
    6:  * $Id: proto.h,v 1.1 2011/10/04 22:37:46 misho Exp $
    7:  *
    8:  *************************************************************************/
    9: #ifndef __PROTO_H
   10: #define __PROTO_H
   11: 
   12: 
   13: #define ANSH_CODE		42
   14: #define ANSH_VERSION		1
   15: #define ANSH_ID			0x4224
   16: 
   17: #define ANSH_FLG_ERR		-1
   18: #define ANSH_FLG_OK		0
   19: #define ANSH_FLG_EOF		1
   20: #define ANSH_FLG_CPOUT		2
   21: #define ANSH_FLG_WINZ		3
   22: 
   23: #define ANSH_FLG_GET(x)		((x) & 0xf)
   24: 
   25: 
   26: struct ansh_hdr {
   27: 	uint8_t		ansh_ver;
   28: 	int8_t		ansh_flg;
   29: 	uint16_t	ansh_len;
   30: 	uint32_t	ansh_crc;
   31: } __attribute__((packed));
   32: 
   33: 
   34: #endif

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