[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / components / storage_monitor / udev_util_linux.h
1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_STORAGE_MONITOR_UDEV_UTIL_LINUX_H_
6 #define COMPONENTS_STORAGE_MONITOR_UDEV_UTIL_LINUX_H_
7
8 #include <string>
9
10 namespace base {
11 class FilePath;
12 }
13
14 namespace storage_monitor {
15
16 // Helper for udev_device_new_from_syspath()/udev_device_get_property_value()
17 // pair. |device_path| is the absolute path to the device, including /sys.
18 bool GetUdevDevicePropertyValueByPath(const base::FilePath& device_path,
19                                       const char* key,
20                                       std::string* result);
21
22 }  // namespace storage_monitor
23
24 #endif  // COMPONENTS_STORAGE_MONITOR_UDEV_UTIL_LINUX_H_