diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-04-07 14:14:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:47 -0500 |
commit | 7672505c72c34a5e35dc05cf3fdc0d49e974a690 (patch) | |
tree | 48026cf6c9e6294e303c7790e2e7ea0fea2c4666 /source4/ntvfs | |
parent | 3c81a240c023a225b38c79208234e988be3c0081 (diff) | |
download | samba-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')
-rw-r--r-- | source4/ntvfs/common/opendb.c | 38 | ||||
-rw-r--r-- | source4/ntvfs/sysdep/sys_notify.c | 14 |
2 files changed, 26 insertions, 26 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; diff --git a/source4/ntvfs/sysdep/sys_notify.c b/source4/ntvfs/sysdep/sys_notify.c index a74312f32b..c4fa4647d1 100644 --- a/source4/ntvfs/sysdep/sys_notify.c +++ b/source4/ntvfs/sysdep/sys_notify.c @@ -37,9 +37,9 @@ static uint32_t num_backends; /* initialise a system change notify backend */ -struct sys_notify_context *sys_notify_context_create(int snum, - TALLOC_CTX *mem_ctx, - struct event_context *ev) +_PUBLIC_ struct sys_notify_context *sys_notify_context_create(int snum, + TALLOC_CTX *mem_ctx, + struct event_context *ev) { struct sys_notify_context *ctx; const char *bname; @@ -93,8 +93,8 @@ struct sys_notify_context *sys_notify_context_create(int snum, bits to remove ones handled by this backend. Any remaining bits will be handled by the generic notify layer */ -NTSTATUS sys_notify_watch(struct sys_notify_context *ctx, struct notify_entry *e, - sys_notify_callback_t callback, void *private, void **handle) +_PUBLIC_ NTSTATUS sys_notify_watch(struct sys_notify_context *ctx, struct notify_entry *e, + sys_notify_callback_t callback, void *private, void **handle) { if (!ctx->notify_watch) { return NT_STATUS_INVALID_SYSTEM_SERVICE; @@ -105,7 +105,7 @@ NTSTATUS sys_notify_watch(struct sys_notify_context *ctx, struct notify_entry *e /* register a notify backend */ -NTSTATUS sys_notify_register(struct sys_notify_backend *backend) +_PUBLIC_ NTSTATUS sys_notify_register(struct sys_notify_backend *backend) { struct sys_notify_backend *b; b = talloc_realloc(talloc_autofree_context(), backends, @@ -117,7 +117,7 @@ NTSTATUS sys_notify_register(struct sys_notify_backend *backend) return NT_STATUS_OK; } -NTSTATUS sys_notify_init(void) +_PUBLIC_ NTSTATUS sys_notify_init(void) { static BOOL initialized = False; |