From nobody Sun Jan 15 02:35:17 2023 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 4NvfQF6Z6Xz2sXDw; Sun, 15 Jan 2023 02:35:17 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NvfQF60QKz3mCD; Sun, 15 Jan 2023 02:35:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673750117; 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=jp0J5rAJxZVVClyF5qZ/ZhH7GGoyeq2UQL7gALnKWKE=; b=gIc3ssM99thZRQIfXJWBN9+IZWfQtK4hU3Dl81fYta+2os4MKLlpkxPStAD0B0YdB+gaWG bSBsB+IBoilhdJv2NTus9ZXGEndApapg6IUCIVq3xd0JDldLt3jyOFCWrXjDHVyVR6atbR O+B/+JJ6rB/UtTFHVwgYhg+eBrCpPpzPtAYpiwG3yEsXgTGkzRcp6tnRp7rJUQcQyNzsVD w/uLJ55dhGdoWTb+O5jRGUnmvWGZM+Qt85dAlPAutkieHnFPSjFF/NvP813GBck3EPlCfN DrzUp/cfuWYxwH72nKdrwMCMC/y4AqZ4UPXBfswYkFze+ELxClrJhsA00jrYqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673750117; 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=jp0J5rAJxZVVClyF5qZ/ZhH7GGoyeq2UQL7gALnKWKE=; b=oP3CHGEICYrQwy0TN7ATQgLvjuLmpfvABS4PMEzGI5SCQ//hArAfdvqK5oYm9NNmZGNhGn KA+xsiABBExCKVFnBMGOQb5cRd6xHQjz1o0FclKlYxnTRIYNKBfwl2GKSRKCLCHVdzvrsq fOAdWQaZD5erkb1HXvbts4Frxo1qvYGb7OWV4QcESPaVKSznzS8AHcsaHk7u67vQWBT4NC 4wHU5XRVDh89XAS6cYtXXRtj6BEbwi049nzN5TZ/w1qbCnO6m0V8zOmcq4rTEwJ65nZaQu iFOPKeTEINuMy/rLa/CRypjfWEmn+/fE0+rW6GlbHg5EaMvaWNad0S+LA9MTcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673750117; a=rsa-sha256; cv=none; b=IridqKThnLRCHDFlD0ytDo6asvKoXSwtiQvtuFf8h4o/0Tz2QSpt8djtCiOdL+rybCzQ5t BFgVpHA48N3w4ZYw/FlmbQdClETrWH/JcivaoYenNmQgFzIRNNS9pN5vu2i3VdnHwZ+lDO ckY9CSFIX0eHKnlISo7kOL6ZWJcWyaCRIBbElYuOFuJMi8+yIT12DbGc/M8dOskFtUkyJD BHIrVpVTpqSKPbOZjdofS/90df8NC8RyNHjWqNTWxwBhlqd0SkiAVfDlkNLVXyiUbTh6Dv rem7xOqpbQ1+YqVnWDbSl9cDjkJTDJO+9tQK7Vl0k9JLiDjxSSNCNL99bjAVmg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NvfQF53Y5z19XH; Sun, 15 Jan 2023 02:35:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30F2ZHSj056268; Sun, 15 Jan 2023 02:35:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30F2ZHDb056267; Sun, 15 Jan 2023 02:35:17 GMT (envelope-from git) Date: Sun, 15 Jan 2023 02:35:17 GMT Message-Id: <202301150235.30F2ZHDb056267@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 249526dace5d - main - mixer(3): Add HEADNAME to TAILQ_HEAD declarations 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 249526dace5d6f2696ed786f5a72a04a97b40252 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=249526dace5d6f2696ed786f5a72a04a97b40252 commit 249526dace5d6f2696ed786f5a72a04a97b40252 Author: Christos Margiolis AuthorDate: 2023-01-15 02:33:58 +0000 Commit: Mark Johnston CommitDate: 2023-01-15 02:33:58 +0000 mixer(3): Add HEADNAME to TAILQ_HEAD declarations This allows us to use the TAILQ_PREV and TAILQ_FOREACH_REVERSE_* macros, useful for an out-of-tree consumer. Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38055 --- lib/libmixer/mixer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libmixer/mixer.h b/lib/libmixer/mixer.h index 6e77fdec421f..b47f3c68ff40 100644 --- a/lib/libmixer/mixer.h +++ b/lib/libmixer/mixer.h @@ -67,12 +67,12 @@ struct mix_dev { float right; /* right volume */ } vol; int nctl; /* number of controls */ - TAILQ_HEAD(, mix_ctl) ctls; /* control list */ + TAILQ_HEAD(mix_ctlhead, mix_ctl) ctls; /* control list */ TAILQ_ENTRY(mix_dev) devs; }; struct mixer { - TAILQ_HEAD(, mix_dev) devs; /* device list */ + TAILQ_HEAD(mix_devhead, mix_dev) devs; /* device list */ struct mix_dev *dev; /* selected device */ oss_mixerinfo mi; /* mixer info */ oss_card_info ci; /* audio card info */