From 19c9df44921bd4788bba608e9d0756f4fb1d5f89 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 17 Apr 2015 13:50:10 +0200 Subject: sd-device: enumerator - don't expose add_device() This is rarely, if ever, used. Drop it from the new public API and only keep it for the legacy API. Suggested by David Herrmann. --- src/libudev/libudev-enumerate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libudev/libudev-enumerate.c') diff --git a/src/libudev/libudev-enumerate.c b/src/libudev/libudev-enumerate.c index 290c3dae42..1498697d7b 100644 --- a/src/libudev/libudev-enumerate.c +++ b/src/libudev/libudev-enumerate.c @@ -351,7 +351,7 @@ _public_ int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, c if (r < 0) return r; - r = sd_device_enumerator_add_device(udev_enumerate->enumerator, device); + r = device_enumerator_add_device(udev_enumerate->enumerator, device); if (r < 0) return r; -- cgit v1.2.1