s3:passdb: add sid_check_object_is_for_passdb()
[kai/samba.git] / source3 / torture / vfstest.h
index 1e030fad047d408cb8ede270b8ec775afdbc6205..7bdb97d69bfa1d8cdd80acfb985c5caad8eb93cc 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    VFS module tester
 
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 struct func_entry {
@@ -30,12 +29,16 @@ struct func_entry {
 
 struct vfs_state {
        struct connection_struct *conn;
+       uint64_t mid;
        struct files_struct *files[1024];
        DIR *currentdir;
        void *data;
        size_t data_size;
 };
 
+struct smb_request *vfstest_get_smbreq(TALLOC_CTX *mem_ctx,
+                                      struct vfs_state *vfs);
+
 struct cmd_set {
        const char *name;
        NTSTATUS (*fn)(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, 
@@ -43,3 +46,6 @@ struct cmd_set {
        const char *description;
        const char *usage;
 };
+
+NTSTATUS cmd_test_chain(struct vfs_state *vfs, TALLOC_CTX *mem_ctx,
+                       int argc, const char **argv);