libudev.h | libudev.h | |||
---|---|---|---|---|
skipping to change at line 78 | skipping to change at line 78 | |||
* | * | |||
* access to sysfs/kernel devices | * access to sysfs/kernel devices | |||
*/ | */ | |||
struct udev_device; | struct udev_device; | |||
struct udev_device *udev_device_ref(struct udev_device *udev_device); | struct udev_device *udev_device_ref(struct udev_device *udev_device); | |||
void udev_device_unref(struct udev_device *udev_device); | void udev_device_unref(struct udev_device *udev_device); | |||
struct udev *udev_device_get_udev(struct udev_device *udev_device); | struct udev *udev_device_get_udev(struct udev_device *udev_device); | |||
struct udev_device *udev_device_new_from_syspath(struct udev *udev, const c har *syspath); | struct udev_device *udev_device_new_from_syspath(struct udev *udev, const c har *syspath); | |||
struct udev_device *udev_device_new_from_devnum(struct udev *udev, char typ e, dev_t devnum); | struct udev_device *udev_device_new_from_devnum(struct udev *udev, char typ e, dev_t devnum); | |||
struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *ude v, const char *subsystem, const char *sysname); | struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *ude v, const char *subsystem, const char *sysname); | |||
struct udev_device *udev_device_new_from_environment(struct udev *udev); | ||||
/* udev_device_get_parent_*() does not take a reference on the returned dev ice, it is automatically unref'd with the parent */ | /* udev_device_get_parent_*() does not take a reference on the returned dev ice, it is automatically unref'd with the parent */ | |||
struct udev_device *udev_device_get_parent(struct udev_device *udev_device) ; | struct udev_device *udev_device_get_parent(struct udev_device *udev_device) ; | |||
struct udev_device *udev_device_get_parent_with_subsystem_devtype(struct ud ev_device *udev_device, | struct udev_device *udev_device_get_parent_with_subsystem_devtype(struct ud ev_device *udev_device, | |||
const char *subsystem, const char *devtype); | const char *subsystem, const char *devtype); | |||
/* retrieve device properties */ | /* retrieve device properties */ | |||
const char *udev_device_get_devpath(struct udev_device *udev_device); | const char *udev_device_get_devpath(struct udev_device *udev_device); | |||
const char *udev_device_get_subsystem(struct udev_device *udev_device); | const char *udev_device_get_subsystem(struct udev_device *udev_device); | |||
const char *udev_device_get_devtype(struct udev_device *udev_device); | const char *udev_device_get_devtype(struct udev_device *udev_device); | |||
const char *udev_device_get_syspath(struct udev_device *udev_device); | const char *udev_device_get_syspath(struct udev_device *udev_device); | |||
const char *udev_device_get_sysname(struct udev_device *udev_device); | const char *udev_device_get_sysname(struct udev_device *udev_device); | |||
skipping to change at line 114 | skipping to change at line 115 | |||
struct udev_monitor; | struct udev_monitor; | |||
struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_monitor); | struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_monitor); | |||
void udev_monitor_unref(struct udev_monitor *udev_monitor); | void udev_monitor_unref(struct udev_monitor *udev_monitor); | |||
struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor); | struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor); | |||
/* kernel and udev generated events over netlink */ | /* kernel and udev generated events over netlink */ | |||
struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev, const char *name); | struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev, const char *name); | |||
/* custom socket (use netlink and filters instead) */ | /* custom socket (use netlink and filters instead) */ | |||
struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path); | struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path); | |||
/* bind socket */ | /* bind socket */ | |||
int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor); | int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor); | |||
int udev_monitor_set_receive_buffer_size(struct udev_monitor *udev_monitor, int size); | ||||
int udev_monitor_get_fd(struct udev_monitor *udev_monitor); | int udev_monitor_get_fd(struct udev_monitor *udev_monitor); | |||
struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_m onitor); | struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_m onitor); | |||
/* in-kernel socket filters to select messages that get delivered to a list ener */ | /* in-kernel socket filters to select messages that get delivered to a list ener */ | |||
int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *ud ev_monitor, | int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *ud ev_monitor, | |||
const char *subsystem, c onst char *devtype); | const char *subsystem, c onst char *devtype); | |||
int udev_monitor_filter_update(struct udev_monitor *udev_monitor); | int udev_monitor_filter_update(struct udev_monitor *udev_monitor); | |||
int udev_monitor_filter_remove(struct udev_monitor *udev_monitor); | int udev_monitor_filter_remove(struct udev_monitor *udev_monitor); | |||
/* | /* | |||
* udev_enumerate | * udev_enumerate | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||