summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-07-24 14:23:54 +0000
committerAlexander Bokovoy <ab@samba.org>2003-07-24 14:23:54 +0000
commit27db257734c35602fc34985a42335136166f20be (patch)
tree2bc3e34b1e9286b9729ffa1871cbbf78de58c812
parentae6a63fa469e77746003d7a3d2bd3df49426ffb4 (diff)
downloadsamba-27db257734c35602fc34985a42335136166f20be.tar.gz
samba-27db257734c35602fc34985a42335136166f20be.tar.bz2
samba-27db257734c35602fc34985a42335136166f20be.zip
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)
-rw-r--r--source3/include/vfs.h3
1 files changed, 3 insertions, 0 deletions
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)