Fix bug #7781 (Samba transforms "ShareName" to lowercase when adding new share via...
[samba.git] / source3 / lib / dummysmbd.c
index 38bec5270d292adcd83403093afbb6fb92b17bbd..28c6f0effe4c9ecd0b7d336a2e4c085cbb11ba40 100644 (file)
 
 #include "includes.h"
 
-int find_service(fstring service)
+int get_client_fd(void)
 {
        return -1;
 }
 
-BOOL conn_snum_used(int snum)
+int find_service(const char *service_in, fstring service)
+{
+       return -1;
+}
+
+bool conn_snum_used(int snum)
 {
        return False;
 }
@@ -47,3 +52,36 @@ NTSTATUS can_delete_directory(struct connection_struct *conn,
        return NT_STATUS_OK;
 }
 
+bool change_to_root_user(void)
+{
+       return false;
+}
+
+struct event_context *smbd_event_context(void)
+{
+       return NULL;
+}
+
+struct messaging_context *smbd_messaging_context(void)
+{
+       return NULL;
+}
+
+/**
+ * The following two functions need to be called from inside the low-level BRL
+ * code for oplocks correctness in smbd.  Since other utility binaries also
+ * link in some of the brl code directly, these dummy functions are necessary
+ * to avoid needing to link in the oplocks code and its dependencies to all of
+ * the utility binaries.
+ */
+void contend_level2_oplocks_begin(files_struct *fsp,
+                                 enum level2_contention_type type)
+{
+       return;
+}
+
+void contend_level2_oplocks_end(files_struct *fsp,
+                               enum level2_contention_type type)
+{
+       return;
+}