1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

r15768: make it possible that the caller of the ntvfs_subsystem doesn't

provide handle callbacks

metze
(This used to be commit dfd07e6f890ebe11d77d39f65c3f6850c9b9c37e)
This commit is contained in:
Stefan Metzmacher 2006-05-21 08:29:56 +00:00 committed by Gerald (Jerry) Carter
parent 017855b766
commit 8b4da058bc

View File

@ -103,6 +103,9 @@ _PUBLIC_ NTSTATUS ntvfs_handle_new(struct ntvfs_module_context *ntvfs,
struct ntvfs_request *req,
struct ntvfs_handle **h)
{
if (!ntvfs->ctx->handles.create_new) {
return NT_STATUS_NOT_IMPLEMENTED;
}
return ntvfs->ctx->handles.create_new(ntvfs->ctx->handles.private_data, req, h);
}
@ -171,6 +174,9 @@ _PUBLIC_ struct ntvfs_handle *ntvfs_handle_search_by_wire_key(struct ntvfs_modul
struct ntvfs_request *req,
const DATA_BLOB *key)
{
if (!ntvfs->ctx->handles.search_by_wire_key) {
return NULL;
}
return ntvfs->ctx->handles.search_by_wire_key(ntvfs->ctx->handles.private_data, req, key);
}