summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/Makefile.am6
-rw-r--r--src/libudev/libudev-device.c36
-rw-r--r--src/libudev/libudev-monitor.c2
-rw-r--r--src/libudev/libudev.sym110
4 files changed, 4 insertions, 150 deletions
diff --git a/src/libudev/Makefile.am b/src/libudev/Makefile.am
index 6db152466b..eeed39bf11 100644
--- a/src/libudev/Makefile.am
+++ b/src/libudev/Makefile.am
@@ -28,8 +28,7 @@ libudev_la_CFLAGS = \
libudev_la_LDFLAGS = \
$(AM_LDFLAGS) \
- -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
- -Wl,--version-script=libudev.sym
+ -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE)
noinst_LTLIBRARIES = \
libudev-private.la
@@ -48,8 +47,7 @@ pkgconfiglib_DATA = \
libudev.pc
EXTRA_DIST = \
- libudev.pc.in \
- libudev.sym
+ libudev.pc.in
CLEANFILES = \
libudev.pc
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c
index acf8e24d15..6423651b35 100644
--- a/src/libudev/libudev-device.c
+++ b/src/libudev/libudev-device.c
@@ -875,42 +875,6 @@ found:
return udev_device_new_from_syspath(udev, path);
}
-/**
- * udev_device_new_from_environment
- * @udev: udev library context
- *
- * Create new udev device, and fill in information from the
- * current process environment. This only works reliable if
- * the process is called from a udev rule. It is usually used
- * for tools executed from IMPORT= rules.
- *
- * The initial refcount is 1, and needs to be decremented to
- * release the resources of the udev device.
- *
- * Returns: a new udev device, or #NULL, if it does not exist
- **/
-_public_ struct udev_device *udev_device_new_from_environment(struct udev *udev)
-{
- int i;
- struct udev_device *udev_device;
-
- udev_device = udev_device_new(udev);
- if (udev_device == NULL)
- return NULL;
- udev_device_set_info_loaded(udev_device);
-
- for (i = 0; environ[i] != NULL; i++)
- udev_device_add_property_from_string_parse(udev_device, environ[i]);
-
- if (udev_device_add_property_from_string_parse_finish(udev_device) < 0) {
- udev_dbg(udev, "missing values, invalid device\n");
- udev_device_unref(udev_device);
- udev_device = NULL;
- }
-
- return udev_device;
-}
-
static struct udev_device *device_new_from_parent(struct udev_device *udev_device)
{
struct udev_device *udev_device_parent = NULL;
diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c
index b02ea8808c..7c5d9d6e45 100644
--- a/src/libudev/libudev-monitor.c
+++ b/src/libudev/libudev-monitor.c
@@ -17,6 +17,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#define _GNU_SOURCE
+
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
diff --git a/src/libudev/libudev.sym b/src/libudev/libudev.sym
deleted file mode 100644
index df6a1aeddf..0000000000
--- a/src/libudev/libudev.sym
+++ /dev/null
@@ -1,110 +0,0 @@
-/***
- This file is part of systemd.
-
- systemd is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation; either version 2.1 of the License, or
- (at your option) any later version.
-***/
-
-LIBUDEV_183 {
-global:
- udev_device_get_action;
- udev_device_get_devlinks_list_entry;
- udev_device_get_devnode;
- udev_device_get_devnum;
- udev_device_get_devpath;
- udev_device_get_devtype;
- udev_device_get_driver;
- udev_device_get_is_initialized;
- udev_device_get_parent;
- udev_device_get_parent_with_subsystem_devtype;
- udev_device_get_properties_list_entry;
- udev_device_get_property_value;
- udev_device_get_seqnum;
- udev_device_get_subsystem;
- udev_device_get_sysattr_list_entry;
- udev_device_get_sysattr_value;
- udev_device_get_sysname;
- udev_device_get_sysnum;
- udev_device_get_syspath;
- udev_device_get_tags_list_entry;
- udev_device_get_udev;
- udev_device_get_usec_since_initialized;
- udev_device_has_tag;
- udev_device_new_from_devnum;
- udev_device_new_from_environment;
- udev_device_new_from_subsystem_sysname;
- udev_device_new_from_syspath;
- udev_device_ref;
- udev_device_unref;
- udev_enumerate_add_match_is_initialized;
- udev_enumerate_add_match_parent;
- udev_enumerate_add_match_property;
- udev_enumerate_add_match_subsystem;
- udev_enumerate_add_match_sysattr;
- udev_enumerate_add_match_sysname;
- udev_enumerate_add_match_tag;
- udev_enumerate_add_nomatch_subsystem;
- udev_enumerate_add_nomatch_sysattr;
- udev_enumerate_add_syspath;
- udev_enumerate_get_list_entry;
- udev_enumerate_get_udev;
- udev_enumerate_new;
- udev_enumerate_ref;
- udev_enumerate_scan_devices;
- udev_enumerate_scan_subsystems;
- udev_enumerate_unref;
- udev_get_log_priority;
- udev_get_userdata;
- udev_list_entry_get_by_name;
- udev_list_entry_get_name;
- udev_list_entry_get_next;
- udev_list_entry_get_value;
- udev_monitor_enable_receiving;
- udev_monitor_filter_add_match_subsystem_devtype;
- udev_monitor_filter_add_match_tag;
- udev_monitor_filter_remove;
- udev_monitor_filter_update;
- udev_monitor_get_fd;
- udev_monitor_get_udev;
- udev_monitor_new_from_netlink;
- udev_monitor_new_from_socket;
- udev_monitor_receive_device;
- udev_monitor_ref;
- udev_monitor_set_receive_buffer_size;
- udev_monitor_unref;
- udev_new;
- udev_queue_get_kernel_seqnum;
- udev_queue_get_queue_is_empty;
- udev_queue_get_queued_list_entry;
- udev_queue_get_seqnum_is_finished;
- udev_queue_get_seqnum_sequence_is_finished;
- udev_queue_get_udev;
- udev_queue_get_udev_is_active;
- udev_queue_get_udev_seqnum;
- udev_queue_new;
- udev_queue_ref;
- udev_queue_unref;
- udev_ref;
- udev_set_log_fn;
- udev_set_log_priority;
- udev_set_userdata;
- udev_unref;
- udev_util_encode_string;
-local:
- *;
-};
-
-LIBUDEV_189 {
-global:
- udev_device_new_from_device_id;
-} LIBUDEV_183;
-
-LIBUDEV_196 {
-global:
- udev_hwdb_new;
- udev_hwdb_ref;
- udev_hwdb_unref;
- udev_hwdb_get_properties_list_entry;
-} LIBUDEV_189;