summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/generate-version-script.py7
-rw-r--r--gusb/libgusb.ver1
2 files changed, 5 insertions, 3 deletions
diff --git a/contrib/generate-version-script.py b/contrib/generate-version-script.py
index 408199f..c4ee238 100755
--- a/contrib/generate-version-script.py
+++ b/contrib/generate-version-script.py
@@ -50,9 +50,6 @@ class LdVersionScript:
# choose the lowest version method for the _get_type symbol
version_lowest = None
- if '{http://www.gtk.org/introspection/glib/1.0}get-type' not in cls.attrib:
- return
- type_name = cls.attrib['{http://www.gtk.org/introspection/glib/1.0}get-type']
# add all class methods
for node in cls.findall(XMLNS + 'method'):
@@ -68,6 +65,10 @@ class LdVersionScript:
if not version_lowest or version_tmp < version_lowest:
version_lowest = version_tmp
+ if '{http://www.gtk.org/introspection/glib/1.0}get-type' not in cls.attrib:
+ return
+ type_name = cls.attrib['{http://www.gtk.org/introspection/glib/1.0}get-type']
+
# finally add the get_type symbol
if version_lowest:
self.releases[version_lowest].append(type_name)
diff --git a/gusb/libgusb.ver b/gusb/libgusb.ver
index 4fa2141..a58a451 100644
--- a/gusb/libgusb.ver
+++ b/gusb/libgusb.ver
@@ -40,6 +40,7 @@ LIBGUSB_0.1.0 {
g_usb_device_reset;
g_usb_device_set_configuration;
g_usb_source_error_quark;
+ g_usb_source_set_callback;
g_usb_strerror;
local: *;
};