diff options
-rw-r--r-- | udev/lib/exported_symbols | 1 | ||||
-rw-r--r-- | udev/lib/libudev-monitor.c | 4 | ||||
-rw-r--r-- | udev/lib/libudev.h | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/udev/lib/exported_symbols b/udev/lib/exported_symbols index 5b0d8fd011..24a6595462 100644 --- a/udev/lib/exported_symbols +++ b/udev/lib/exported_symbols @@ -57,6 +57,7 @@ udev_monitor_get_udev udev_monitor_get_fd udev_monitor_receive_device udev_monitor_filter_add_match_subsystem_devtype +udev_monitor_filter_update udev_monitor_filter_remove udev_queue_new udev_queue_ref diff --git a/udev/lib/libudev-monitor.c b/udev/lib/libudev-monitor.c index bf95657da2..c87ff7434f 100644 --- a/udev/lib/libudev-monitor.c +++ b/udev/lib/libudev-monitor.c @@ -223,7 +223,7 @@ static inline void bpf_jmp(struct sock_filter *inss, unsigned int *i, (*i)++; } -static int filter_apply(struct udev_monitor *udev_monitor) +int udev_monitor_filter_update(struct udev_monitor *udev_monitor) { static struct sock_filter ins[256]; static struct sock_fprog filter; @@ -290,7 +290,7 @@ int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor) err = bind(udev_monitor->sock, (struct sockaddr *)&udev_monitor->sun, udev_monitor->addrlen); } else if (udev_monitor->snl.nl_family != 0) { - filter_apply(udev_monitor); + udev_monitor_filter_update(udev_monitor); err = bind(udev_monitor->sock, (struct sockaddr *)&udev_monitor->snl, sizeof(struct sockaddr_nl)); } else { diff --git a/udev/lib/libudev.h b/udev/lib/libudev.h index 0b52e6e775..236e43bc3c 100644 --- a/udev/lib/libudev.h +++ b/udev/lib/libudev.h @@ -85,6 +85,7 @@ extern struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor); extern int udev_monitor_get_fd(struct udev_monitor *udev_monitor); extern struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monitor); extern int udev_monitor_filter_add_match_subsystem_devtype(struct udev_monitor *udev_monitor, const char *subsystem, const char *devtype); +extern int udev_monitor_filter_update(struct udev_monitor *udev_monitor); extern int udev_monitor_filter_remove(struct udev_monitor *udev_monitor); /* sys enumeration */ |