Samba 3: added Samba 3.0.24 sources
[tomato.git] / release / src / router / samba3 / source / torture / vfstest.h
blob1e030fad047d408cb8ede270b8ec775afdbc6205
1 /*
2 Unix SMB/CIFS implementation.
3 VFS module tester
5 Copyright (C) Simo Sorce 2002
6 Copyright (C) Eric Lorimer 2002
8 Most of this code was ripped off of rpcclient.
9 Copyright (C) Tim Potter 2000-2001
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 struct func_entry {
27 char *name;
28 int (*fn)(struct connection_struct *conn, const char *path);
31 struct vfs_state {
32 struct connection_struct *conn;
33 struct files_struct *files[1024];
34 DIR *currentdir;
35 void *data;
36 size_t data_size;
39 struct cmd_set {
40 const char *name;
41 NTSTATUS (*fn)(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc,
42 const char **argv);
43 const char *description;
44 const char *usage;