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_LOADER_H_ | 5 #ifndef DEVICE_UDEV_LINUX_UDEV_LOADER_H_ |
6 #define DEVICE_UDEV_LINUX_UDEV_LOADER_H_ | 6 #define DEVICE_UDEV_LINUX_UDEV_LOADER_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual const char* udev_device_get_property_value(udev_device* udev_device, | 45 virtual const char* udev_device_get_property_value(udev_device* udev_device, |
46 const char* key) = 0; | 46 const char* key) = 0; |
47 virtual const char* udev_device_get_subsystem(udev_device* udev_device) = 0; | 47 virtual const char* udev_device_get_subsystem(udev_device* udev_device) = 0; |
48 virtual const char* udev_device_get_sysattr_value(udev_device* udev_device, | 48 virtual const char* udev_device_get_sysattr_value(udev_device* udev_device, |
49 const char* sysattr) = 0; | 49 const char* sysattr) = 0; |
50 virtual const char* udev_device_get_sysname(udev_device* udev_device) = 0; | 50 virtual const char* udev_device_get_sysname(udev_device* udev_device) = 0; |
51 virtual const char* udev_device_get_syspath(udev_device* udev_device) = 0; | 51 virtual const char* udev_device_get_syspath(udev_device* udev_device) = 0; |
52 virtual udev_device* udev_device_new_from_devnum(udev* udev, | 52 virtual udev_device* udev_device_new_from_devnum(udev* udev, |
53 char type, | 53 char type, |
54 dev_t devnum) = 0; | 54 dev_t devnum) = 0; |
| 55 virtual udev_device* udev_device_new_from_subsystem_sysname( |
| 56 udev* udev, |
| 57 const char* subsystem, |
| 58 const char* sysname) = 0; |
55 virtual udev_device* udev_device_new_from_syspath(udev* udev, | 59 virtual udev_device* udev_device_new_from_syspath(udev* udev, |
56 const char* syspath) = 0; | 60 const char* syspath) = 0; |
57 virtual void udev_device_unref(udev_device* udev_device) = 0; | 61 virtual void udev_device_unref(udev_device* udev_device) = 0; |
58 virtual int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate, | 62 virtual int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate, |
59 const char* subsystem) = 0; | 63 const char* subsystem) = 0; |
60 virtual udev_list_entry* udev_enumerate_get_list_entry( | 64 virtual udev_list_entry* udev_enumerate_get_list_entry( |
61 udev_enumerate* udev_enumerate) = 0; | 65 udev_enumerate* udev_enumerate) = 0; |
62 virtual udev_enumerate* udev_enumerate_new(udev* udev) = 0; | 66 virtual udev_enumerate* udev_enumerate_new(udev* udev) = 0; |
63 virtual int udev_enumerate_scan_devices(udev_enumerate* udev_enumerate) = 0; | 67 virtual int udev_enumerate_scan_devices(udev_enumerate* udev_enumerate) = 0; |
64 virtual void udev_enumerate_unref(udev_enumerate* udev_enumerate) = 0; | 68 virtual void udev_enumerate_unref(udev_enumerate* udev_enumerate) = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
82 void (*log_fn)(struct udev* udev, int priority, | 86 void (*log_fn)(struct udev* udev, int priority, |
83 const char* file, int line, | 87 const char* file, int line, |
84 const char* fn, const char* format, va_list args)) = 0; | 88 const char* fn, const char* format, va_list args)) = 0; |
85 virtual void udev_set_log_priority(struct udev* udev, int priority) = 0; | 89 virtual void udev_set_log_priority(struct udev* udev, int priority) = 0; |
86 virtual void udev_unref(udev* udev) = 0; | 90 virtual void udev_unref(udev* udev) = 0; |
87 }; | 91 }; |
88 | 92 |
89 } // namespace device | 93 } // namespace device |
90 | 94 |
91 #endif // DEVICE_UDEV_LINUX_UDEV_LOADER_H_ | 95 #endif // DEVICE_UDEV_LINUX_UDEV_LOADER_H_ |
OLD | NEW |