/************************************************************************* * (C) 2010 AITNET ltd - Sofia/Bulgaria - * by Michael Pounov * * $Author: misho $ * $Id: defs.h,v 1.1.1.1.2.7 2010/07/07 09:29:42 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-%0X" #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