summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-18 09:46:05 +0200
committerVolker Lendecke <vl@samba.org>2009-05-18 10:42:22 +0200
commit22085c59cb31e90bd7fb555f54836f057bf4018b (patch)
tree41d4623fb0b4c0389c20b7db070a604e8b65f75a /source3/include
parent8b9c5f04831216aa3d3b89fd2a81be12ac8592dd (diff)
downloadsamba-22085c59cb31e90bd7fb555f54836f057bf4018b.tar.gz
samba-22085c59cb31e90bd7fb555f54836f057bf4018b.tar.bz2
samba-22085c59cb31e90bd7fb555f54836f057bf4018b.zip
Add "file_walk_table" to do stuff with all open files
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 81fc1c061f..5b5f9098e0 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6285,6 +6285,10 @@ void file_close_pid(uint16 smbpid, int vuid);
void file_init(void);
void file_close_user(int vuid);
void file_dump_open_table(void);
+struct files_struct *file_walk_table(
+ struct files_struct *(*fn)(struct files_struct *fsp,
+ void *private_data),
+ void *private_data);
files_struct *file_find_fd(int fd);
files_struct *file_find_dif(struct file_id id, unsigned long gen_id);
files_struct *file_find_fsp(files_struct *orig_fsp);