summaryrefslogtreecommitdiff
path: root/source4/ntvfs/common/opendb.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-04-07 14:14:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:00:47 -0500
commit7672505c72c34a5e35dc05cf3fdc0d49e974a690 (patch)
tree48026cf6c9e6294e303c7790e2e7ea0fea2c4666 /source4/ntvfs/common/opendb.c
parent3c81a240c023a225b38c79208234e988be3c0081 (diff)
downloadsamba-7672505c72c34a5e35dc05cf3fdc0d49e974a690.tar.gz
samba-7672505c72c34a5e35dc05cf3fdc0d49e974a690.tar.bz2
samba-7672505c72c34a5e35dc05cf3fdc0d49e974a690.zip
r14966: make more functions _PUBLIC_
metze (This used to be commit 193f7da254cce40ab30fda9e99b8cd07e0b0a0a8)
Diffstat (limited to 'source4/ntvfs/common/opendb.c')
-rw-r--r--source4/ntvfs/common/opendb.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/source4/ntvfs/common/opendb.c b/source4/ntvfs/common/opendb.c
index 0890bb112d..81a13857ab 100644
--- a/source4/ntvfs/common/opendb.c
+++ b/source4/ntvfs/common/opendb.c
@@ -68,8 +68,8 @@ struct odb_lock {
talloc_free(). We need the messaging_ctx to allow for pending open
notifications.
*/
-struct odb_context *odb_init(TALLOC_CTX *mem_ctx, uint32_t server,
- struct messaging_context *messaging_ctx)
+_PUBLIC_ struct odb_context *odb_init(TALLOC_CTX *mem_ctx, uint32_t server,
+ struct messaging_context *messaging_ctx)
{
char *path;
struct odb_context *odb;
@@ -109,8 +109,8 @@ static int odb_lock_destructor(void *ptr)
get a lock on a entry in the odb. This call returns a lock handle,
which the caller should unlock using talloc_free().
*/
-struct odb_lock *odb_lock(TALLOC_CTX *mem_ctx,
- struct odb_context *odb, DATA_BLOB *file_key)
+_PUBLIC_ struct odb_lock *odb_lock(TALLOC_CTX *mem_ctx,
+ struct odb_context *odb, DATA_BLOB *file_key)
{
struct odb_lock *lck;
@@ -257,10 +257,10 @@ static NTSTATUS odb_push_record(struct odb_lock *lck, struct opendb_file *file)
Note that the path is only used by the delete on close logic, not
for comparing with other filenames
*/
-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,
- const char *path)
+_PUBLIC_ 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,
+ const char *path)
{
struct odb_context *odb = lck->odb;
struct opendb_entry e;
@@ -312,7 +312,7 @@ NTSTATUS odb_open_file(struct odb_lock *lck, void *file_handle,
/*
register a pending open file in the open files database
*/
-NTSTATUS odb_open_file_pending(struct odb_lock *lck, void *private)
+_PUBLIC_ NTSTATUS odb_open_file_pending(struct odb_lock *lck, void *private)
{
struct odb_context *odb = lck->odb;
struct opendb_file file;
@@ -337,7 +337,7 @@ NTSTATUS odb_open_file_pending(struct odb_lock *lck, void *private)
/*
remove a opendb entry
*/
-NTSTATUS odb_close_file(struct odb_lock *lck, void *file_handle)
+_PUBLIC_ NTSTATUS odb_close_file(struct odb_lock *lck, void *file_handle)
{
struct odb_context *odb = lck->odb;
struct opendb_file file;
@@ -384,7 +384,7 @@ NTSTATUS odb_close_file(struct odb_lock *lck, void *file_handle)
/*
remove a pending opendb entry
*/
-NTSTATUS odb_remove_pending(struct odb_lock *lck, void *private)
+_PUBLIC_ NTSTATUS odb_remove_pending(struct odb_lock *lck, void *private)
{
struct odb_context *odb = lck->odb;
int i;
@@ -420,7 +420,7 @@ NTSTATUS odb_remove_pending(struct odb_lock *lck, void *private)
/*
rename the path in a open file
*/
-NTSTATUS odb_rename(struct odb_lock *lck, const char *path)
+_PUBLIC_ NTSTATUS odb_rename(struct odb_lock *lck, const char *path)
{
struct opendb_file file;
NTSTATUS status;
@@ -439,7 +439,7 @@ NTSTATUS odb_rename(struct odb_lock *lck, const char *path)
/*
update delete on close flag on an open file
*/
-NTSTATUS odb_set_delete_on_close(struct odb_lock *lck, BOOL del_on_close)
+_PUBLIC_ NTSTATUS odb_set_delete_on_close(struct odb_lock *lck, BOOL del_on_close)
{
NTSTATUS status;
struct opendb_file file;
@@ -456,9 +456,9 @@ NTSTATUS odb_set_delete_on_close(struct odb_lock *lck, BOOL del_on_close)
return the current value of the delete_on_close bit, and how many
people still have the file open
*/
-NTSTATUS odb_get_delete_on_close(struct odb_context *odb,
- DATA_BLOB *key, BOOL *del_on_close,
- int *open_count, char **path)
+_PUBLIC_ NTSTATUS odb_get_delete_on_close(struct odb_context *odb,
+ DATA_BLOB *key, BOOL *del_on_close,
+ int *open_count, char **path)
{
NTSTATUS status;
struct opendb_file file;
@@ -500,9 +500,9 @@ NTSTATUS odb_get_delete_on_close(struct odb_context *odb,
determine if a file can be opened with the given share_access,
create_options and access_mask
*/
-NTSTATUS odb_can_open(struct odb_lock *lck,
- uint32_t share_access, uint32_t create_options,
- uint32_t access_mask)
+_PUBLIC_ NTSTATUS odb_can_open(struct odb_lock *lck,
+ uint32_t share_access, uint32_t create_options,
+ uint32_t access_mask)
{
struct odb_context *odb = lck->odb;
NTSTATUS status;