From: Ole André Vadla Ravnås Date: Mon, 24 Jun 2024 12:32:03 +0000 (+0200) Subject: libusb-1.0: Fix the LibUSB.HotPlugCb declaration X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a2a52c52d8e7ee9a388edf69ed3e9931035f3fcf;p=thirdparty%2Fvala.git libusb-1.0: Fix the LibUSB.HotPlugCb declaration It returns an int used to decide whether the callback should be rearmed or deregistered. Co-authored-by: Håvard Sørbø --- diff --git a/vapi/libusb-1.0.vapi b/vapi/libusb-1.0.vapi index ff9a6408a..e91877e04 100644 --- a/vapi/libusb-1.0.vapi +++ b/vapi/libusb-1.0.vapi @@ -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]