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

Side by Side Diff: device/udev_linux/udev1_loader.cc

Issue 965903003: Add udev_device_new_from_subsystem_sysname to udev, for use in Web MIDI on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/udev_linux/udev1_loader.h ('k') | device/udev_linux/udev_loader.h » ('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 #include "device/udev_linux/udev1_loader.h" 5 #include "device/udev_linux/udev1_loader.h"
6 6
7 #include "library_loaders/libudev1.h" 7 #include "library_loaders/libudev1.h"
8 8
9 namespace device { 9 namespace device {
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const char* Udev1Loader::udev_device_get_syspath(udev_device* udev_device) { 63 const char* Udev1Loader::udev_device_get_syspath(udev_device* udev_device) {
64 return lib_loader_->udev_device_get_syspath(udev_device); 64 return lib_loader_->udev_device_get_syspath(udev_device);
65 } 65 }
66 66
67 udev_device* Udev1Loader::udev_device_new_from_devnum(udev* udev, 67 udev_device* Udev1Loader::udev_device_new_from_devnum(udev* udev,
68 char type, 68 char type,
69 dev_t devnum) { 69 dev_t devnum) {
70 return lib_loader_->udev_device_new_from_devnum(udev, type, devnum); 70 return lib_loader_->udev_device_new_from_devnum(udev, type, devnum);
71 } 71 }
72 72
73 udev_device* Udev1Loader::udev_device_new_from_subsystem_sysname(
74 udev* udev,
75 const char* subsystem,
76 const char* sysname) {
77 return lib_loader_->udev_device_new_from_subsystem_sysname(
78 udev, subsystem, sysname);
79 }
80
73 udev_device* Udev1Loader::udev_device_new_from_syspath(udev* udev, 81 udev_device* Udev1Loader::udev_device_new_from_syspath(udev* udev,
74 const char* syspath) { 82 const char* syspath) {
75 return lib_loader_->udev_device_new_from_syspath(udev, syspath); 83 return lib_loader_->udev_device_new_from_syspath(udev, syspath);
76 } 84 }
77 85
78 void Udev1Loader::udev_device_unref(udev_device* udev_device) { 86 void Udev1Loader::udev_device_unref(udev_device* udev_device) {
79 lib_loader_->udev_device_unref(udev_device); 87 lib_loader_->udev_device_unref(udev_device);
80 } 88 }
81 89
82 int Udev1Loader::udev_enumerate_add_match_subsystem( 90 int Udev1Loader::udev_enumerate_add_match_subsystem(
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 164
157 void Udev1Loader::udev_set_log_priority(struct udev* udev, int priority) { 165 void Udev1Loader::udev_set_log_priority(struct udev* udev, int priority) {
158 return lib_loader_->udev_set_log_priority(udev, priority); 166 return lib_loader_->udev_set_log_priority(udev, priority);
159 } 167 }
160 168
161 void Udev1Loader::udev_unref(udev* udev) { 169 void Udev1Loader::udev_unref(udev* udev) {
162 lib_loader_->udev_unref(udev); 170 lib_loader_->udev_unref(udev);
163 } 171 }
164 172
165 } // namespace device 173 } // namespace device
OLDNEW
« no previous file with comments | « device/udev_linux/udev1_loader.h ('k') | device/udev_linux/udev_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698