File:  [ELWIX - Embedded LightWeight unIX -] / libaitrpc / inc / defs.h
Revision 1.1.1.1.2.6: download - view: text, annotated - select for diffs - revision graph
Thu Jun 24 15:01:19 2010 UTC (14 years, 1 month ago) by misho
Branches: rpc1_0
Diff to: branchpoint 1.1.1.1: preferred, unified
change callbacks, builtins and call structure

    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.2.6 2010/06/24 15:01:19 misho Exp $
    7: *
    8: *************************************************************************/
    9: #ifndef __DEFS_H
   10: #define __DEFS_H
   11: 
   12: 
   13: #define DEF_RPC_TIMEOUT		3
   14: 
   15: #define BLOB_MAX		1460
   16: #define BLOBSIZ			1024
   17: #define STRSIZ			256
   18: 
   19: 
   20: #define BLOB_FILE		"%s/BLOB-%08x"
   21: 
   22: 
   23: #define LOGERR	{ \
   24: 			rpc_Errno = errno; \
   25: 			strlcpy(rpc_Error, strerror(errno), STRSIZ); \
   26: 		}
   27: 
   28: 
   29: extern int rpc_Kill, blob_Kill;
   30: 
   31: extern int rpc_Errno;
   32: extern char rpc_Error[];
   33: 
   34: inline void rpc_SetErr(int eno, char *estr, ...);
   35: 
   36: 
   37: #endif

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