Skip to content

Commit

Permalink
libusb-1.0: Fix the LibUSB.HotPlugCb declaration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
oleavr and hsorbo committed Jun 24, 2024
1 parent eb4a076 commit 2c7a02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vapi/libusb-1.0.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2c7a02d

Please sign in to comment.