s4-dns: dlz_bind9: Fix ipv6 updates
[samba.git] / source3 / torture / vfstest.h
index b086faa4027d170d912f588ecef781ba96e8c141..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,16 +29,23 @@ 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 {
-       char *name;
+       const char *name;
        NTSTATUS (*fn)(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, 
-                       char **argv);
-       char *description;
-       char *usage;
+                       const char **argv);
+       const char *description;
+       const char *usage;
 };
+
+NTSTATUS cmd_test_chain(struct vfs_state *vfs, TALLOC_CTX *mem_ctx,
+                       int argc, const char **argv);