]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libusb-1.0: Fix the LibUSB.HotPlugCb declaration
authorOle André Vadla Ravnås <oleavr@gmail.com>
Mon, 24 Jun 2024 12:32:03 +0000 (14:32 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 24 Jun 2024 18:05:03 +0000 (20:05 +0200)
It returns an int used to decide whether the callback should be rearmed
or deregistered.

Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
vapi/libusb-1.0.vapi

index ff9a6408a13c4c50fe4d7aa7070399ec213d15fb..e91877e045b4e4adad447c4ce1f6c4cb6778e454 100644 (file)
@@ -567,7 +567,7 @@ namespace LibUSB {
        public delegate void pollfd_removed_cb (int fd, void* user_data);
 
        [CCode (cname = "libusb_hotplug_callback_fn")]
-       public delegate void HotPlugCb (Context ctx, Device device, HotPlugEvent event);
+       public delegate int HotPlugCb (Context ctx, Device device, HotPlugEvent event);
 
        [CCode (cname = "struct libusb_pollfd")]
        [Compact]