File:  [ELWIX - Embedded LightWeight unIX -] / libaitrpc / inc / defs.h
Revision 1.1.1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Fri Jun 18 13:36:01 2010 UTC (14 years, 1 month ago) by misho
Branches: rpc1_0
Diff to: branchpoint 1.1.1.1: preferred, unified
added shutdown builtin
added mutex control for exit
fix client side

/*************************************************************************
* (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.1 2010/06/18 13:36:01 misho Exp $
*
*************************************************************************/
#ifndef __DEFS_H
#define __DEFS_H


#define DEF_CLI_TIMEOUT		10


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


extern pthread_mutex_t rpc_mtx;
extern int rpc_Kill;

extern int rpc_Errno;
extern char rpc_Error[];

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


#endif

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