2 * Copyright 2004-2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
10 #ifndef DEVICE_WATCHER_H
11 #define DEVICE_WATCHER_H
16 #include "HashString.h"
20 class DeviceEndpoints
;
22 class DeviceWatcher
: public BLooper
{
27 void MessageReceived(BMessage
* message
);
33 static int32
_InitialDevicesScanThread(void* data
);
34 void _ScanDevices(const char* path
);
35 void _AddDevice(const char* path
);
36 void _RemoveDevice(const char* path
);
37 void _SetIcons(BMidiEndpoint
* endp
);
39 typedef HashMap
<HashString
, DeviceEndpoints
*> DeviceEndpointsMap
;
40 DeviceEndpointsMap fDeviceEndpointsMap
;
42 uint8
* fVectorIconData
;
43 size_t fVectorIconDataSize
;
48 #endif // DEVICE_WATCHER_H