svn commit: samba r14966 - in branches/SAMBA_4_0/source/ntvfs: common sysdep

metze at samba.org metze at samba.org
Fri Apr 7 14:14:28 GMT 2006


Author: metze
Date: 2006-04-07 14:14:27 +0000 (Fri, 07 Apr 2006)
New Revision: 14966

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14966

Log:
make more functions _PUBLIC_

metze
Modified:
   branches/SAMBA_4_0/source/ntvfs/common/opendb.c
   branches/SAMBA_4_0/source/ntvfs/sysdep/sys_notify.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/common/opendb.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/common/opendb.c	2006-04-07 14:13:31 UTC (rev 14965)
+++ branches/SAMBA_4_0/source/ntvfs/common/opendb.c	2006-04-07 14:14:27 UTC (rev 14966)
@@ -68,8 +68,8 @@
   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 @@
   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 @@
   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 @@
 /*
   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 @@
 /*
   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 @@
 /*
   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 @@
 /*
   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 @@
 /*
   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 @@
   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 @@
   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;

Modified: branches/SAMBA_4_0/source/ntvfs/sysdep/sys_notify.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/sysdep/sys_notify.c	2006-04-07 14:13:31 UTC (rev 14965)
+++ branches/SAMBA_4_0/source/ntvfs/sysdep/sys_notify.c	2006-04-07 14:14:27 UTC (rev 14966)
@@ -37,9 +37,9 @@
 /*
   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 @@
   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 @@
 /*
   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 @@
 	return NT_STATUS_OK;
 }
 
-NTSTATUS sys_notify_init(void)
+_PUBLIC_ NTSTATUS sys_notify_init(void)
 {
 	static BOOL initialized = False;
 



More information about the samba-cvs mailing list