diff options
author | Pass Automated Testing Suite <Pass-Automated-Testing-Suite@zx2c4.com> | 2015-01-13 14:58:54 +0100 |
---|---|---|
committer | Dominique Leuenberger <dimstar@opensuse.org> | 2015-01-27 13:29:27 +0100 |
commit | 9991d1c072abee5ffac4f7ff8689bd4af1719993 (patch) | |
tree | 5b10a77af0c0e83772967a8291a661f0efc05871 /gusb | |
parent | 18033158f506a91209ee69ec0199c225242cfdf7 (diff) | |
download | gusb-9991d1c072abee5ffac4f7ff8689bd4af1719993.tar.gz |
use symbol versioning
Diffstat (limited to 'gusb')
-rw-r--r-- | gusb/Makefile.am | 2 | ||||
-rw-r--r-- | gusb/libgusb.ver | 36 |
2 files changed, 37 insertions, 1 deletions
diff --git a/gusb/Makefile.am b/gusb/Makefile.am index dc6f145..13c2f07 100644 --- a/gusb/Makefile.am +++ b/gusb/Makefile.am @@ -45,7 +45,7 @@ libgusb_la_LDFLAGS = \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ -export-dynamic \ -no-undefined \ - -export-symbols-regex '^g_usb_.*' + -Wl,--version-script=$(top_srcdir)/gusb/libgusb.ver libgusb_la_CFLAGS = \ $(WARNINGFLAGS_C) diff --git a/gusb/libgusb.ver b/gusb/libgusb.ver new file mode 100644 index 0000000..e6cf69e --- /dev/null +++ b/gusb/libgusb.ver @@ -0,0 +1,36 @@ +LIBGUSB_0.1.0 { + global: + g_usb_*; + local: *; +}; + +LIBGUSB_0.1.1 { + global: + g_usb_device_get_platform_id; +} LIBGUSB_0.1.0; + +LIBGUSB_0.1.7 { + global: + g_usb_device_get_device_class; +} LIBGUSB_0.1.1; + +LIBGUSB_0.2.2 { + global: + g_usb_context_enumerate; + g_usb_context_find_by_bus_address; + g_usb_context_find_by_vid_pid; + g_usb_context_get_devices; +} LIBGUSB_0.1.7; + +LIBGUSB_0.2.4 { + global: + g_usb_device_get_parent; + g_usb_device_get_children; + g_usb_device_get_port_number; + g_usb_device_get_vid_as_str; + g_usb_device_get_pid_as_str; + g_usb_device_get_device_subclass; + g_usb_device_get_device_protocol; + g_usb_context_find_by_platform_id; +} LIBGUSB_0.2.2; + |