diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-04-23 18:05:10 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-04-23 18:05:10 +0200 |
commit | 19d7e87cc0ef364fb13a18411cb165b2427b3529 (patch) | |
tree | e8e12ac67450394b35329e4b3b187d04f59c5414 /udev | |
parent | 34f55e1dc7f0381229d11c4295a7289ce132d55f (diff) |
libudev: monitor - export filter_update()
Diffstat (limited to 'udev')
-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 */ |