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

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

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/udev0_loader.cc ('k') | device/udev_linux/udev1_loader.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_UDEV1_LOADER_H_ 5 #ifndef DEVICE_UDEV_LINUX_UDEV1_LOADER_H_
6 #define DEVICE_UDEV_LINUX_UDEV1_LOADER_H_ 6 #define DEVICE_UDEV_LINUX_UDEV1_LOADER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "device/udev_linux/udev_loader.h" 9 #include "device/udev_linux/udev_loader.h"
10 10
(...skipping 18 matching lines...) Expand all
29 const char* udev_device_get_property_value(udev_device* udev_device, 29 const char* udev_device_get_property_value(udev_device* udev_device,
30 const char* key) override; 30 const char* key) override;
31 const char* udev_device_get_subsystem(udev_device* udev_device) override; 31 const char* udev_device_get_subsystem(udev_device* udev_device) override;
32 const char* udev_device_get_sysattr_value(udev_device* udev_device, 32 const char* udev_device_get_sysattr_value(udev_device* udev_device,
33 const char* sysattr) override; 33 const char* sysattr) override;
34 const char* udev_device_get_sysname(udev_device* udev_device) override; 34 const char* udev_device_get_sysname(udev_device* udev_device) override;
35 const char* udev_device_get_syspath(udev_device* udev_device) override; 35 const char* udev_device_get_syspath(udev_device* udev_device) override;
36 udev_device* udev_device_new_from_devnum(udev* udev, 36 udev_device* udev_device_new_from_devnum(udev* udev,
37 char type, 37 char type,
38 dev_t devnum) override; 38 dev_t devnum) override;
39 udev_device* udev_device_new_from_subsystem_sysname(
40 udev* udev,
41 const char* subsystem,
42 const char* sysname) override;
39 udev_device* udev_device_new_from_syspath(udev* udev, 43 udev_device* udev_device_new_from_syspath(udev* udev,
40 const char* syspath) override; 44 const char* syspath) override;
41 void udev_device_unref(udev_device* udev_device) override; 45 void udev_device_unref(udev_device* udev_device) override;
42 int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate, 46 int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate,
43 const char* subsystem) override; 47 const char* subsystem) override;
44 udev_list_entry* udev_enumerate_get_list_entry( 48 udev_list_entry* udev_enumerate_get_list_entry(
45 udev_enumerate* udev_enumerate) override; 49 udev_enumerate* udev_enumerate) override;
46 udev_enumerate* udev_enumerate_new(udev* udev) override; 50 udev_enumerate* udev_enumerate_new(udev* udev) override;
47 int udev_enumerate_scan_devices(udev_enumerate* udev_enumerate) override; 51 int udev_enumerate_scan_devices(udev_enumerate* udev_enumerate) override;
48 void udev_enumerate_unref(udev_enumerate* udev_enumerate) override; 52 void udev_enumerate_unref(udev_enumerate* udev_enumerate) override;
(...skipping 21 matching lines...) Expand all
70 void udev_unref(udev* udev) override; 74 void udev_unref(udev* udev) override;
71 75
72 scoped_ptr<LibUdev1Loader> lib_loader_; 76 scoped_ptr<LibUdev1Loader> lib_loader_;
73 77
74 DISALLOW_COPY_AND_ASSIGN(Udev1Loader); 78 DISALLOW_COPY_AND_ASSIGN(Udev1Loader);
75 }; 79 };
76 80
77 } // namespace device 81 } // namespace device
78 82
79 #endif // DEVICE_UDEV_LINUX_UDEV1_LOADER_H_ 83 #endif // DEVICE_UDEV_LINUX_UDEV1_LOADER_H_
OLDNEW
« no previous file with comments | « device/udev_linux/udev0_loader.cc ('k') | device/udev_linux/udev1_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698