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 ago) by misho
Branches: rpc1_0
Diff to: branchpoint 1.1.1.1: preferred, unified
change callbacks, builtins and call structure

/*************************************************************************
* (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.2.6 2010/06/24 15:01:19 misho Exp $
*
*************************************************************************/
#ifndef __DEFS_H
#define __DEFS_H


#define DEF_RPC_TIMEOUT		3

#define BLOB_MAX		1460
#define BLOBSIZ			1024
#define STRSIZ			256


#define BLOB_FILE		"%s/BLOB-%08x"


#define LOGERR	{ \
			rpc_Errno = errno; \
			strlcpy(rpc_Error, strerror(errno), STRSIZ); \
		}


extern int rpc_Kill, blob_Kill;

extern int rpc_Errno;
extern char rpc_Error[];

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


#endif

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