--- libaitsess/inc/defs.h 2011/09/07 13:11:55 1.3 +++ libaitsess/inc/defs.h 2012/07/22 22:13:48 1.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.3 2011/09/07 13:11:55 misho Exp $ +* $Id: defs.h,v 1.6 2012/07/22 22:13:48 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -46,10 +46,15 @@ SUCH DAMAGE. #ifndef __DEFS_H #define __DEFS_H + +#ifndef STRSIZ #define STRSIZ 256 +#endif +#define SESS_AIT_MAGIC 0x3CC3 + #define MEM_MODE 0640 -#define MEM_DELIM ":" +#define MEM_DELIM "\xFF" #define LOGERR { \ sess_Errno = errno; \ @@ -70,6 +75,11 @@ union semun { unsigned short *array; /* array for GETALL & SETALL */ }; #endif + +typedef struct _tagSessHdr { + uint16_t hdr_magic; + uint16_t hdr_argc; +} sess_hdr_t; extern int sess_Errno;