btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / system / kernel / device_manager / IOCallback.h
blob7fb1e812a39ec666603af918ecd3362b05184664
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
10 #include "IORequest.h"
13 typedef status_t (*io_callback)(void* data, io_operation* operation);
16 class IOCallback {
17 public:
18 virtual ~IOCallback();
20 virtual status_t DoIO(IOOperation* operation) = 0;
22 static status_t WrapperFunction(void* data,
23 io_operation* operation);
27 #endif // IO_CALLBACK_H