summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-01-27 12:36:07 +0000
committerRichard Hughes <richard@hughsie.com>2015-01-27 12:36:07 +0000
commit0d27ed093cb3de84f7fdf66ada6d6089720c08fe (patch)
tree5b10a77af0c0e83772967a8291a661f0efc05871
parent18033158f506a91209ee69ec0199c225242cfdf7 (diff)
parent9991d1c072abee5ffac4f7ff8689bd4af1719993 (diff)
downloadgusb-0d27ed093cb3de84f7fdf66ada6d6089720c08fe.tar.gz
Merge pull request #2 from DimStar77/master
Use symbol versioning
-rw-r--r--gusb/Makefile.am2
-rw-r--r--gusb/libgusb.ver36
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;
+