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

Side by Side Diff: device/udev_linux/udev.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/udev.h ('k') | device/udev_linux/udev0_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/udev.h" 5 #include "device/udev_linux/udev.h"
6 6
7 #include "device/udev_linux/udev_loader.h" 7 #include "device/udev_linux/udev_loader.h"
8 8
9 namespace device { 9 namespace device {
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 const char* udev_device_get_syspath(udev_device* udev_device) { 49 const char* udev_device_get_syspath(udev_device* udev_device) {
50 return UdevLoader::Get()->udev_device_get_syspath(udev_device); 50 return UdevLoader::Get()->udev_device_get_syspath(udev_device);
51 } 51 }
52 52
53 udev_device* udev_device_new_from_devnum(udev* udev, char type, dev_t devnum) { 53 udev_device* udev_device_new_from_devnum(udev* udev, char type, dev_t devnum) {
54 return UdevLoader::Get()->udev_device_new_from_devnum(udev, type, devnum); 54 return UdevLoader::Get()->udev_device_new_from_devnum(udev, type, devnum);
55 } 55 }
56 56
57 udev_device* udev_device_new_from_subsystem_sysname(
58 udev* udev,
59 const char* subsystem,
60 const char* sysname) {
61 return UdevLoader::Get()->udev_device_new_from_subsystem_sysname(
62 udev, subsystem, sysname);
63 }
64
57 udev_device* udev_device_new_from_syspath(udev* udev, const char* syspath) { 65 udev_device* udev_device_new_from_syspath(udev* udev, const char* syspath) {
58 return UdevLoader::Get()->udev_device_new_from_syspath(udev, syspath); 66 return UdevLoader::Get()->udev_device_new_from_syspath(udev, syspath);
59 } 67 }
60 68
61 void udev_device_unref(udev_device* udev_device) { 69 void udev_device_unref(udev_device* udev_device) {
62 UdevLoader::Get()->udev_device_unref(udev_device); 70 UdevLoader::Get()->udev_device_unref(udev_device);
63 } 71 }
64 72
65 int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate, 73 int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate,
66 const char* subsystem) { 74 const char* subsystem) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 140
133 void udev_set_log_priority(struct udev* udev, int priority) { 141 void udev_set_log_priority(struct udev* udev, int priority) {
134 return UdevLoader::Get()->udev_set_log_priority(udev, priority); 142 return UdevLoader::Get()->udev_set_log_priority(udev, priority);
135 } 143 }
136 144
137 void udev_unref(udev* udev) { 145 void udev_unref(udev* udev) {
138 UdevLoader::Get()->udev_unref(udev); 146 UdevLoader::Get()->udev_unref(udev);
139 } 147 }
140 148
141 } // namespace device 149 } // namespace device
OLDNEW
« no previous file with comments | « device/udev_linux/udev.h ('k') | device/udev_linux/udev0_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698