From nobody Sat Jul 25 16:05:48 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h6qTT2Ky6z6lfHX for ; Sat, 25 Jul 2026 16:05:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h6qTT1hTvz4812 for ; Sat, 25 Jul 2026 16:05:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784995549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=E6qBDQaYL0FGQo1O6bCGkVr0COdIM3eQzAq+cMB3+CA=; b=FAWoza63ZYg4byN9GSAy22b4LBzg4inRf8Fu+TmfPNJ9wYGLO+LWWkyMTUyhRbnwtmJiV1 bq0LUiFeopPfBK64AC4Xfdg9VWFgNP6DAn1WOgX3xn7S7kAHc+IL/VYwxsYuAabLtatpof +7Loax5TM9fsGoNIkvWIb4t6lwUOkvm4jd3filJov0TU0HLeAxnW7Q/2JEqJBZoLftb7gB FTQ2uXXEJeNrf8xb9y7b4HQxKP+8Nuh89lDv8E8Wtf8iDDbhGNCSioWBL1aMZfj00qrzaB hIOTFubvsph/x8H0dFpGHpdoroSRy8hWMow0UHUw1pZTqQsMEk4mBYuTRaaTsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784995549; a=rsa-sha256; cv=none; b=bu1pdJJ5jkqDnVNhhbAmZCcsOKs/hVhZegZRUIHJIxHRzZiwhkMwQBna2YZpoTdvhZlIG6 RSD1hxQI0xw/x6llNw8/3Wrzq2RJo8pzclQiAQvi8iO19ENZqa7DfLtGGG33efWuhPbuxk ZLl5MXCsV4ctSip0AApQLUe6x0s+P5xos2USgPdmQC9ThhECE+okekhcALqWak1NEoD8Sg fp6q6IhQphV+oobpLpgKIzH+5tXBPnMEIiGMp7MLIsYOxUo24UNIXSe52wSUF2XdbGWLoB dRmzrCdZlQsn84yfeWHuvMpldllEEJbYbDwz0cT9JBl6Np5uLK+qiP70wan2/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784995549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=E6qBDQaYL0FGQo1O6bCGkVr0COdIM3eQzAq+cMB3+CA=; b=eFwWYj9Cuez/zohgBYGpmJOdLJIMSFzXNKmwoYYrjZGLuczuG9ejQw6GkRj4wLvmoJKNtC OrxWQGwB1R8NyNjbDlCrDZPqulkpsEEWrs5o9iHs+ddr955MvuMXtVjV7IK3eOltjxojtV ou+btMy2/zYdstB7MK1JkpQv5PM3btPR0Xb1ghjv7XItPjTCX9rGt0KpuGQEYGO04hvwMb AJ9FRoW/erbagEXAhWKg3MC2Ad1m9Yfir9CXyXGLEbZDiN/E2lePKPNI93XviXlanVqgoT Nkdn7/GbZLKYVMaRweYii3E2l+VEaHLS5oInpjbWCkox2VGrUJtj240Dz+th8Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h6qTT03HVzjVs for ; Sat, 25 Jul 2026 16:05:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3e7fd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 25 Jul 2026 16:05:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: ShengYi Hung Subject: git: 5f346dba4f7b - main - libusb: Sync interface for libusb_init_option List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: aokblast X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5f346dba4f7b6ca088f2a3f40c5b562ef531adda Auto-Submitted: auto-generated Date: Sat, 25 Jul 2026 16:05:48 +0000 Message-Id: <6a64dedc.3e7fd.19c18fd4@gitrepo.freebsd.org> The branch main has been updated by aokblast: URL: https://cgit.FreeBSD.org/src/commit/?id=5f346dba4f7b6ca088f2a3f40c5b562ef531adda commit 5f346dba4f7b6ca088f2a3f40c5b562ef531adda Author: ShengYi Hung AuthorDate: 2026-07-25 15:57:31 +0000 Commit: ShengYi Hung 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;