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

Side by Side Diff: device/udev_linux/udev.h

Issue 989913002: Move UdevDecodeString from media/midi to device/udev_linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@seq3
Patch Set: Fix unit tests 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 unified diff | Download patch
« no previous file with comments | « device/device_tests.gyp ('k') | device/udev_linux/udev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_UDEV_LINUX_UDEV_H_ 5 #ifndef DEVICE_UDEV_LINUX_UDEV_H_
6 #define DEVICE_UDEV_LINUX_UDEV_H_ 6 #define DEVICE_UDEV_LINUX_UDEV_H_
7 7
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void (*log_fn)(struct udev* udev, int priority, const char* file, int line, 72 void (*log_fn)(struct udev* udev, int priority, const char* file, int line,
73 const char* fn, const char* format, va_list args)); 73 const char* fn, const char* format, va_list args));
74 void udev_set_log_priority(struct udev* udev, int priority); 74 void udev_set_log_priority(struct udev* udev, int priority);
75 void udev_unref(udev* udev); 75 void udev_unref(udev* udev);
76 76
77 // Calls udev_device_get_property_value() and replaces missing values with 77 // Calls udev_device_get_property_value() and replaces missing values with
78 // the empty string. 78 // the empty string.
79 std::string UdevDeviceGetPropertyValue(udev_device* udev_device, 79 std::string UdevDeviceGetPropertyValue(udev_device* udev_device,
80 const char* key); 80 const char* key);
81 81
82 // Decodes udev-encoded string. Useful for decoding "*_ENC" udev properties.
83 std::string UdevDecodeString(const std::string& encoded);
84
82 } // namespace device 85 } // namespace device
83 86
84 #endif // DEVICE_UDEV_LINUX_UDEV_H_ 87 #endif // DEVICE_UDEV_LINUX_UDEV_H_
OLDNEW
« no previous file with comments | « device/device_tests.gyp ('k') | device/udev_linux/udev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698