Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(847)

Unified Diff: device/udev_linux/udev.h

Issue 982883004: Move GetUdevDevicePropertyValue from components/storage_monitor to device/udev_linux and rename to … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert incorrect change in chromeos Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/storage_monitor/udev_util_linux.cc ('k') | device/udev_linux/udev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/udev_linux/udev.h
diff --git a/device/udev_linux/udev.h b/device/udev_linux/udev.h
index 2bb8df2695f1511b154b8209f474831049144052..3039aa269b1e929f44cdb6a58ce641a05d3e0a24 100644
--- a/device/udev_linux/udev.h
+++ b/device/udev_linux/udev.h
@@ -9,6 +9,8 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <string>
+
#if !defined(USE_UDEV)
#error "USE_UDEV not defined"
#endif
@@ -72,6 +74,11 @@ void udev_set_log_fn(
void udev_set_log_priority(struct udev* udev, int priority);
void udev_unref(udev* udev);
+// Calls udev_device_get_property_value() and replaces missing values with
+// the empty string.
+std::string UdevDeviceGetPropertyValue(udev_device* udev_device,
+ const char* key);
+
} // namespace device
#endif // DEVICE_UDEV_LINUX_UDEV_H_
« no previous file with comments | « components/storage_monitor/udev_util_linux.cc ('k') | device/udev_linux/udev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698