summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-06-29 14:32:47 -0700
committerJeremy Allison <jra@samba.org>2017-07-01 03:07:11 +0200
commitbd9285b19741128bae501b721d9e63dd9a9bd833 (patch)
tree7fd477f84fc8d1e072e3acb550157ab2da68b597 /examples/VFS
parent6acb0d6ca08d72f776d3ba9dc934261a481aa737 (diff)
downloadsamba-bd9285b19741128bae501b721d9e63dd9a9bd833.tar.gz
s3: VFS: Change SMB_VFS_GETWD to return struct smb_filename * instead of char *.
We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_opaque.c3
-rw-r--r--examples/VFS/skel_transparent.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index fd81ca03561..8bfc520c8eb 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -419,7 +419,8 @@ static int skel_chdir(vfs_handle_struct *handle,
return -1;
}
-static char *skel_getwd(vfs_handle_struct *handle)
+static struct smb_filename *skel_getwd(vfs_handle_struct *handle,
+ TALLOC_CTX *ctx)
{
errno = ENOSYS;
return NULL;
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 4c061ca329e..a5ba6a9c4d8 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -521,9 +521,10 @@ static int skel_chdir(vfs_handle_struct *handle,
return SMB_VFS_NEXT_CHDIR(handle, smb_fname);
}
-static char *skel_getwd(vfs_handle_struct *handle)
+static struct smb_filename *skel_getwd(vfs_handle_struct *handle,
+ TALLOC_CTX *ctx)
{
- return SMB_VFS_NEXT_GETWD(handle);
+ return SMB_VFS_NEXT_GETWD(handle, ctx);
}
static int skel_ntimes(vfs_handle_struct *handle,