diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-02-26 16:19:57 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-02-26 16:19:57 +1100 |
commit | 864328e6563621a0b4df2d49e04ff3b23b68e1ca (patch) | |
tree | 01b5af0b454d7235b5118ae53d078429dca26619 /source4/ntvfs/common/opendb.h | |
parent | 2c8415f767ca20fe90a97f8623d1617e015f183a (diff) | |
parent | 1e5ced379361fbdc0ccc48ad012f388f2e737ca7 (diff) | |
download | samba-864328e6563621a0b4df2d49e04ff3b23b68e1ca.tar.gz samba-864328e6563621a0b4df2d49e04ff3b23b68e1ca.tar.bz2 samba-864328e6563621a0b4df2d49e04ff3b23b68e1ca.zip |
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit 35f7f488d84e3ec3224f3b40ff5881e91c11764d)
Diffstat (limited to 'source4/ntvfs/common/opendb.h')
-rw-r--r-- | source4/ntvfs/common/opendb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/ntvfs/common/opendb.h b/source4/ntvfs/common/opendb.h index 231ae3d7de..c34a07d6fa 100644 --- a/source4/ntvfs/common/opendb.h +++ b/source4/ntvfs/common/opendb.h @@ -24,6 +24,7 @@ struct opendb_ops { struct ntvfs_context *ntvfs_ctx); struct odb_lock *(*odb_lock)(TALLOC_CTX *mem_ctx, struct odb_context *odb, DATA_BLOB *file_key); + DATA_BLOB (*odb_get_key)(TALLOC_CTX *mem_ctx, struct odb_lock *lck); NTSTATUS (*odb_open_file)(struct odb_lock *lck, void *file_handle, uint32_t stream_id, uint32_t share_access, uint32_t access_mask, bool delete_on_close, @@ -40,8 +41,14 @@ struct opendb_ops { NTSTATUS (*odb_can_open)(struct odb_lock *lck, uint32_t share_access, uint32_t create_options, uint32_t access_mask); + NTSTATUS (*odb_update_oplock)(struct odb_lock *lck, void *file_handle, + uint32_t oplock_level); }; +struct opendb_oplock_break { + void *file_handle; + uint8_t level; +}; void odb_set_ops(const struct opendb_ops *new_ops); void odb_tdb_init_ops(void); |