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 12namespace 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