summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+