libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / system / kernel / device_manager / io_resources.h
blob2091b0e17a4ad9ffde8f2e7fffe88c8f841dcb38
1 /*
2 * Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Copyright 2002-04, Thomas Kurschel. All rights reserved.
5 * Distributed under the terms of the MIT License.
6 */
7 #ifndef IO_RESOURCES_H
8 #define IO_RESOURCES_H
11 #include <device_manager.h>
13 #include <util/DoublyLinkedList.h>
16 struct io_resource_private : io_resource,
17 DoublyLinkedListLinkImpl<io_resource_private> {
18 io_resource_private();
19 ~io_resource_private();
21 status_t Acquire(const io_resource& resource);
22 void Release();
24 private:
25 void _Init();
26 static bool _IsValid(const io_resource& resource);
28 public:
29 DoublyLinkedListLink<io_resource_private> fTypeLink;
32 typedef DoublyLinkedList<io_resource_private> ResourceList;
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
39 void dm_init_io_resources(void);
41 #ifdef __cplusplus
43 #endif
45 #endif /* IO_RESOURCES_H */