1/*
2 * Copyright 2008-2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Copyright 2004-2008, Axel D��rfler, axeld@pinc-software.de.
4 * Distributed under the terms of the MIT License.
5 */
6#ifndef IO_CALLBACK_H
7#define IO_CALLBACK_H
8
9
10#include "IORequest.h"
11
12
13typedef status_t (*io_callback)(void* data, io_operation* operation);
14
15
16class IOCallback {
17public:
18	virtual						~IOCallback();
19
20	virtual	status_t			DoIO(IOOperation* operation) = 0;
21
22	static	status_t			WrapperFunction(void* data,
23									io_operation* operation);
24};
25
26
27#endif	// IO_CALLBACK_H
28