* fhandler.h (class fhandler_netdrive): Add method rewinddir.

* fhandler_netdrive.cc (struct netdriveinf): New structure to
	store thread arguments.
	(thread_netdrive): Thread handling all potentially blocking
	WNet... calls.
	(create_thread_and_wait): Start and wait for above thread.
	(fhandler_netdrive::exists): Change to call create_thread_and_wait
	instead of calling WNet... function.
	(fhandler_netdrive::readdir): Ditto.  Fix error handling.
	(fhandler_netdrive::rewinddir): New method.
This commit is contained in:
Corinna Vinschen
2005-05-17 20:34:15 +00:00
parent 0d5ba26ccd
commit 5b59a2cc0d
3 changed files with 116 additions and 36 deletions

View File

@ -1222,6 +1222,7 @@ class fhandler_netdrive: public fhandler_virtual
struct dirent *readdir (DIR *);
_off64_t telldir (DIR *);
void seekdir (DIR *, _off64_t);
void rewinddir (DIR *);
int closedir (DIR *);
int open (int flags, mode_t mode = 0);
int __stdcall fstat (struct __stat64 *buf) __attribute__ ((regparm (2)));