diff options
author | Simon McVittie <smcv@debian.org> | 2020-03-04 10:21:37 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2020-03-04 11:45:07 +0000 |
commit | c4a4397a2f9d87f36e8860a8fa68bf24f1189bb6 (patch) | |
tree | 34000775d02ff95329f6a1e8bfbdbc2638d23eb8 | |
parent | 0cc44724e4eacee0b684d134a4906d4e872691cb (diff) | |
download | gusb-c4a4397a2f9d87f36e8860a8fa68bf24f1189bb6.tar.gz |
generate-version-script: Don't skip methods on plain structs
This resulted in losing g_usb_source_set_callback@LIBGUSB_0.1.0 from
the ABI in version 0.3.4.
Signed-off-by: Simon McVittie <smcv@debian.org>
-rwxr-xr-x | contrib/generate-version-script.py | 7 | ||||
-rw-r--r-- | gusb/libgusb.ver | 1 |
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: *; }; |