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 24 matching lines...) Expand all Loading... |
35 const char* subsystem, | 35 const char* subsystem, |
36 const char* devtype); | 36 const char* devtype); |
37 const char* udev_device_get_property_value(udev_device* udev_device, | 37 const char* udev_device_get_property_value(udev_device* udev_device, |
38 const char* key); | 38 const char* key); |
39 const char* udev_device_get_subsystem(udev_device* udev_device); | 39 const char* udev_device_get_subsystem(udev_device* udev_device); |
40 const char* udev_device_get_sysattr_value(udev_device* udev_device, | 40 const char* udev_device_get_sysattr_value(udev_device* udev_device, |
41 const char* sysattr); | 41 const char* sysattr); |
42 const char* udev_device_get_sysname(udev_device* udev_device); | 42 const char* udev_device_get_sysname(udev_device* udev_device); |
43 const char* udev_device_get_syspath(udev_device* udev_device); | 43 const char* udev_device_get_syspath(udev_device* udev_device); |
44 udev_device* udev_device_new_from_devnum(udev* udev, char type, dev_t devnum); | 44 udev_device* udev_device_new_from_devnum(udev* udev, char type, dev_t devnum); |
| 45 udev_device* udev_device_new_from_subsystem_sysname( |
| 46 udev* udev, |
| 47 const char* subsystem, |
| 48 const char* sysname); |
45 udev_device* udev_device_new_from_syspath(udev* udev, const char* syspath); | 49 udev_device* udev_device_new_from_syspath(udev* udev, const char* syspath); |
46 void udev_device_unref(udev_device* udev_device); | 50 void udev_device_unref(udev_device* udev_device); |
47 int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate, | 51 int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate, |
48 const char* subsystem); | 52 const char* subsystem); |
49 udev_list_entry* udev_enumerate_get_list_entry(udev_enumerate* udev_enumerate); | 53 udev_list_entry* udev_enumerate_get_list_entry(udev_enumerate* udev_enumerate); |
50 udev_enumerate* udev_enumerate_new(udev* udev); | 54 udev_enumerate* udev_enumerate_new(udev* udev); |
51 int udev_enumerate_scan_devices(udev_enumerate* udev_enumerate); | 55 int udev_enumerate_scan_devices(udev_enumerate* udev_enumerate); |
52 void udev_enumerate_unref(udev_enumerate* udev_enumerate); | 56 void udev_enumerate_unref(udev_enumerate* udev_enumerate); |
53 udev_list_entry* udev_list_entry_get_next(udev_list_entry* list_entry); | 57 udev_list_entry* udev_list_entry_get_next(udev_list_entry* list_entry); |
54 const char* udev_list_entry_get_name(udev_list_entry* list_entry); | 58 const char* udev_list_entry_get_name(udev_list_entry* list_entry); |
55 int udev_monitor_enable_receiving(udev_monitor* udev_monitor); | 59 int udev_monitor_enable_receiving(udev_monitor* udev_monitor); |
56 int udev_monitor_filter_add_match_subsystem_devtype(udev_monitor* udev_monitor, | 60 int udev_monitor_filter_add_match_subsystem_devtype(udev_monitor* udev_monitor, |
57 const char* subsystem, | 61 const char* subsystem, |
58 const char* devtype); | 62 const char* devtype); |
59 int udev_monitor_get_fd(udev_monitor* udev_monitor); | 63 int udev_monitor_get_fd(udev_monitor* udev_monitor); |
60 udev_monitor* udev_monitor_new_from_netlink(udev* udev, const char* name); | 64 udev_monitor* udev_monitor_new_from_netlink(udev* udev, const char* name); |
61 udev_device* udev_monitor_receive_device(udev_monitor* udev_monitor); | 65 udev_device* udev_monitor_receive_device(udev_monitor* udev_monitor); |
62 void udev_monitor_unref(udev_monitor* udev_monitor); | 66 void udev_monitor_unref(udev_monitor* udev_monitor); |
63 udev* udev_new(); | 67 udev* udev_new(); |
64 void udev_set_log_fn( | 68 void udev_set_log_fn( |
65 struct udev* udev, | 69 struct udev* udev, |
66 void (*log_fn)(struct udev* udev, int priority, const char* file, int line, | 70 void (*log_fn)(struct udev* udev, int priority, const char* file, int line, |
67 const char* fn, const char* format, va_list args)); | 71 const char* fn, const char* format, va_list args)); |
68 void udev_set_log_priority(struct udev* udev, int priority); | 72 void udev_set_log_priority(struct udev* udev, int priority); |
69 void udev_unref(udev* udev); | 73 void udev_unref(udev* udev); |
70 | 74 |
71 } // namespace device | 75 } // namespace device |
72 | 76 |
73 #endif // DEVICE_UDEV_LINUX_UDEV_H_ | 77 #endif // DEVICE_UDEV_LINUX_UDEV_H_ |
OLD | NEW |