xref: /haiku/src/servers/launch/Utility.h (revision 68ea01249e1e2088933cb12f9c28d4e5c5d1c9ef)
1 /*
2  * Copyright 2015, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef UTILITY_H
6 #define UTILITY_H
7 
8 
9 #include <String.h>
10 
11 
12 namespace Utility {
13 	bool IsReadOnlyVolume(dev_t device);
14 	bool IsReadOnlyVolume(const char* path);
15 
16 	status_t BlockMedia(const char* path, bool block);
17 	status_t EjectMedia(const char* path);
18 
19 	BString TranslatePath(const char* path);
20 }
21 
22 
23 #endif // UTILITY_H
24