The branch main has been updated by aokblast:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5f346dba4f7b6ca088f2a3f40c5b562ef531adda

commit 5f346dba4f7b6ca088f2a3f40c5b562ef531adda
Author:     ShengYi Hung <[email protected]>
AuthorDate: 2026-07-25 15:57:31 +0000
Commit:     ShengYi Hung <[email protected]>
CommitDate: 2026-07-25 16:05:40 +0000

    libusb: Sync interface for libusb_init_option
    
    Sponsored by:   The FreeBSD Foundation
---
 lib/libusb/libusb.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/libusb/libusb.h b/lib/libusb/libusb.h
index 006b023c65e6..08f1ab5d4d7e 100644
--- a/lib/libusb/libusb.h
+++ b/lib/libusb/libusb.h
@@ -324,16 +324,18 @@ struct libusb_version {
        const char *describe;
 };
 
+typedef struct libusb_context libusb_context;
+typedef void (*libusb_log_cb)(libusb_context *ctx, enum libusb_log_level,
+    const char *str);
+
 struct libusb_init_option {
        enum libusb_option option;
        union {
                int64_t ival;
+               libusb_log_cb log_cbval;
        } value;
 };
 
-typedef struct libusb_context libusb_context;
-typedef void (*libusb_log_cb)(libusb_context *ctx, enum libusb_log_level,
-    const char *str);
 typedef struct libusb_device libusb_device;
 typedef struct libusb_device_handle libusb_device_handle;
 typedef struct libusb_pollfd libusb_pollfd;

Reply via email to