| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |