gudev: replace regex with sym file

This commit is contained in:
Kay Sievers 2014-06-21 15:53:58 +02:00
parent e09c69d9fd
commit 706b7936d0
2 changed files with 72 additions and 2 deletions

View File

@ -3164,6 +3164,7 @@ CLEANFILES += \
src/gudev/gudev-1.0.pc
libgudev_1_0_la_SOURCES = \
src/gudev/libgudev-1.0.sym \
src/gudev/gudevenums.h \
src/gudev/gudevenumtypes.h \
src/gudev/gudevenumtypes.h\
@ -3207,8 +3208,9 @@ libgudev_1_0_la_LIBADD = \
libgudev_1_0_la_LDFLAGS = \
$(AM_LDFLAGS) \
-version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
-export-dynamic -no-undefined \
-export-symbols-regex '^g_udev_.*'
-export-dynamic \
-no-undefined \
-Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
$(AM_V_at)$(MKDIR_P) $(dir $@)

View File

@ -0,0 +1,68 @@
/***
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.
***/
{
global:
g_udev_client_get_type;
g_udev_client_new;
g_udev_client_query_by_device_file;
g_udev_client_query_by_device_number;
g_udev_client_query_by_subsystem;
g_udev_client_query_by_subsystem_and_name;
g_udev_client_query_by_sysfs_path;
g_udev_device_get_action;
g_udev_device_get_device_file;
g_udev_device_get_device_file_symlinks;
g_udev_device_get_device_number;
g_udev_device_get_device_type;
g_udev_device_get_devtype;
g_udev_device_get_driver;
g_udev_device_get_is_initialized;
g_udev_device_get_name;
g_udev_device_get_number;
g_udev_device_get_parent;
g_udev_device_get_parent_with_subsystem;
g_udev_device_get_property;
g_udev_device_get_property_as_boolean;
g_udev_device_get_property_as_double;
g_udev_device_get_property_as_int;
g_udev_device_get_property_as_strv;
g_udev_device_get_property_as_uint64;
g_udev_device_get_property_keys;
g_udev_device_get_seqnum;
g_udev_device_get_subsystem;
g_udev_device_get_sysfs_attr;
g_udev_device_get_sysfs_attr_as_boolean;
g_udev_device_get_sysfs_attr_as_double;
g_udev_device_get_sysfs_attr_as_int;
g_udev_device_get_sysfs_attr_as_strv;
g_udev_device_get_sysfs_attr_as_uint64;
g_udev_device_get_sysfs_attr_keys;
g_udev_device_get_sysfs_path;
g_udev_device_get_tags;
g_udev_device_get_type;
g_udev_device_get_usec_since_initialized;
g_udev_device_has_property;
g_udev_device_has_sysfs_attr;
g_udev_device_type_get_type;
g_udev_enumerator_add_match_is_initialized;
g_udev_enumerator_add_match_name;
g_udev_enumerator_add_match_property;
g_udev_enumerator_add_match_subsystem;
g_udev_enumerator_add_match_sysfs_attr;
g_udev_enumerator_add_match_tag;
g_udev_enumerator_add_nomatch_subsystem;
g_udev_enumerator_add_nomatch_sysfs_attr;
g_udev_enumerator_add_sysfs_path;
g_udev_enumerator_execute;
g_udev_enumerator_get_type;
g_udev_enumerator_new;
local:
*;
};