From d222c6c5edab72065995d1874ccae3a0b755a214 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Mon, 24 Jun 2024 14:32:03 +0200 Subject: [PATCH] libusb-1.0: Fix the LibUSB.HotPlugCb declaration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It returns an int used to decide whether the callback should be rearmed or deregistered. Co-authored-by: Håvard Sørbø --- vapi/libusb-1.0.vapi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.47.2