From: Alexander Bokovoy Date: Thu, 24 Jul 2003 14:23:54 +0000 (+0000) Subject: Add a macro to check whether module-specific data set already or not. Returns True... X-Git-Tag: initial-v3-0-unstable~7737 X-Git-Url: http://git.samba.org/samba.git/?p=tprouty%2Fsamba.git;a=commitdiff_plain;h=180e617f54021ced270c7c8cb86dd478d809d041 Add a macro to check whether module-specific data set already or not. Returns True or False. Should support further encapsulation of VFS-specific structs --- diff --git a/source/include/vfs.h b/source/include/vfs.h index 924d706321..452f4dc23b 100644 --- a/source/include/vfs.h +++ b/source/include/vfs.h @@ -466,6 +466,9 @@ typedef struct vfs_handle_struct { } \ } +/* Check whether module-specific data handle was already allocated or not */ +#define SMB_VFS_HANDLE_TEST_DATA(handle) ( !(handle) || !(handle)->data ? False : True ) + #define SMB_VFS_OP(x) ((void *) x)