]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/DiskIO/DiskDaemon/DiskdFile.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 79 Squid-side DISKD I/O functions. */
11 #ifndef __STORE_DISKDFILE_H__
12 #define __STORE_DISKDFILE_H__
15 #include "DiskIO/DiskFile.h"
17 class DiskdIOStrategy
;
24 class DiskdFile
: public DiskFile
28 DiskdFile(char const *path
, DiskdIOStrategy
*);
30 virtual void open(int flags
, mode_t aMode
, RefCount
<IORequestor
> callback
);
31 virtual void create(int flags
, mode_t aMode
, RefCount
<IORequestor
> callback
);
32 virtual void read(ReadRequest
*);
33 virtual void write(WriteRequest
*);
35 virtual bool error() const;
36 virtual bool canRead() const;
37 virtual bool ioInProgress() const;
40 int getID() const {return id
;}
42 void completed(diomsg
*);
49 RefCount
<IORequestor
> ioRequestor
;
50 void openDone(diomsg
*);
51 void createDone (diomsg
*);
52 void readDone (diomsg
*);
53 void writeDone (diomsg
*);
54 void closeDone (diomsg
*);
57 bool canNotifyClient() const;
62 CBDATA_CLASS2(DiskdFile
);