From 27db257734c35602fc34985a42335136166f20be Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 24 Jul 2003 14:23:54 +0000 Subject: 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 (This used to be commit 180e617f54021ced270c7c8cb86dd478d809d041) --- source3/include/vfs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/include/vfs.h') diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 924d706321..452f4dc23b 100644 --- a/source3/include/vfs.h +++ b/source3/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) -- cgit