2 Generic device list for use in drivers.
3 Copyright (C) 2008 Michael Lotz <mmlr@mlotz.ch>
4 Distributed under the terms of the MIT license.
6 #ifndef _DEVICE_LIST_H_
7 #define _DEVICE_LIST_H_
11 struct device_list_entry
;
18 status_t
AddDevice(const char *name
, void *device
);
19 status_t
RemoveDevice(const char *name
, void *device
= NULL
);
20 void * FindDevice(const char *name
, void *device
= NULL
);
22 int32
CountDevices(const char *baseName
= NULL
);
23 void * DeviceAt(int32 index
);
25 const char ** PublishDevices();
28 void _FreePublishList();
30 device_list_entry
* fDeviceList
;
35 #endif // _DEVICE_LIST_H_