--- libaitrpc/inc/defs.h 2010/06/18 13:36:01 1.1.1.1.2.1 +++ libaitrpc/inc/defs.h 2010/06/23 16:23:31 1.1.1.1.2.4 @@ -3,23 +3,29 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.1.1.1.2.1 2010/06/18 13:36:01 misho Exp $ +* $Id: defs.h,v 1.1.1.1.2.4 2010/06/23 16:23:31 misho Exp $ * *************************************************************************/ #ifndef __DEFS_H #define __DEFS_H -#define DEF_CLI_TIMEOUT 10 +#define DEF_RPC_TIMEOUT 3 +#define BLOB_MAX 1460 +#define BLOBSIZ 1024 +#define STRSIZ 256 + +#define BLOB_FILE "%s/%08x.blob" + + #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;