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-Tag: 0.56.18~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d222c6c5edab72065995d1874ccae3a0b755a214;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]