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

Unified Diff: device/udev_linux/udev.h

Issue 1018593002: Introduce UdevDeviceGetSysattrValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Omit device:: in udev.cc for local functions Created 5 years, 9 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/storage_monitor_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 d62db6b5aaf329907f08be568191eb7c8c1e42de..c40603d3beafe959583b03c55d228fd3a13a9921 100644
--- a/device/udev_linux/udev.h
+++ b/device/udev_linux/udev.h
@@ -79,6 +79,11 @@ void udev_unref(udev* udev);
std::string UdevDeviceGetPropertyValue(udev_device* udev_device,
const char* key);
+// Calls udev_device_get_sysattr_value() and replaces missing values with
+// the empty string.
+std::string UdevDeviceGetSysattrValue(udev_device* udev_device,
+ const char* key);
+
// Decodes udev-encoded string. Useful for decoding "*_ENC" udev properties.
std::string UdevDecodeString(const std::string& encoded);
« no previous file with comments | « components/storage_monitor/storage_monitor_linux.cc ('k') | device/udev_linux/udev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698