From nobody Sat Jul 25 16:05:48 2026 X-Original-To: dev-commits-src-all@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 4h6qTZ1WH9z6lf2t for ; Sat, 25 Jul 2026 16:05:54 +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 4h6qTZ0rRNz488W for ; Sat, 25 Jul 2026 16:05:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784995554; 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=fpl0rqJTW/gfkAphqI499GkrVxZa/tlWA/e1lRY0S8aPQ8jNxYcYarP7f32ZQsMbXoDHSQ 9FrcxJfY42/Qw82JrxjboKg0f+jy+tI9d7K193Anan+7NNJdk5rSS1eya25RJHyNVOE3kQ 7tN+1pyf2qsO9/QPp1ZgB9bFl6xZpDvlyiotIcppNpPa9Ey3SjnQPjyikWw3T5HfJnGwpI yw7YX0Ea9wra58aACeQp66/QfbcuTmU5kIrJCwnbCv81gz6x1WOM4i+SMq+C8/fYFw09vu wV19LXdxQ3eJC6EVrjr+6HQbu5XzP0OShL86bdWRxAPOaE0U4dBQ8MexQqJXuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784995554; a=rsa-sha256; cv=none; b=eMqa6l19MsvaNN1TAGXaaDSTLAk9lruGiHORgQpGn5c61V02YFoK8Hl4SDIHGRvFWuDKny XFvkLsD/z2H5IoHdDiJHBtXg7KFCiZgbh7vG2ZTLT0yVX3vKAEVxR/FVp/FcyCEtNVTCqT El2WuG7KGAj59oDJ+muIpcqEYIGTYmWgABi7DCFTwBJ2z4InTOMQsCIto2fxuIw9HVUMqO LW2jDfJeeUr7sDKzzyKBXhzAxLRyLZtp19LHLbsSbtFlanBjO/vuoZV9ul78dC/ADVitrl /4BK4YcbYf3ibZ3ZcCXLYm3EfGqNRkBx3hqLLllDsjHxupAMyb+LyN4BIAHcxw== 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=1784995554; 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=HLZeugIL+EKZmG6tqCX+6iUuri8K76YCjCehmMIz3Nm0ZV51Z9VoDYKSI/kWDkcfkaMYXU FxcF87l7zdfJ7LkHlOdKIizSMurg8vwnpF202zjtFl7h/vULKI9QXJ5e7V/PtmC+6cVc+/ CrT7S5eROL6mVPfPoyeg7mpxJhpUH1+pEmFiTDNb5ea41MjfXFw33D0dW1WWbnOsW1+g4K U9emCFGWSpBQ1Hp82Gp2EHbRFQbmcxK8BqTmsSvfxQyXS6Qd+ejV/MW/cYU3RjkvfmHQv5 HJ/zeLl/PCuoe91b8BkNzqTX6nEHKBXvxQlVZOKa1c7+3rtO7Btyl963oJo/+g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h6qTY6pV0zjts for ; Sat, 25 Jul 2026 16:05:53 +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 all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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;