Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp276025pxb; Wed, 15 Sep 2021 01:34:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE0nx1lFGysS4FWTzd7vvFCVJPVDVDbgr3cEoM3Eh58PiGKdQXMmYli+T5BcQaWVo2QonT X-Received: by 2002:a05:6e02:1ca9:: with SMTP id x9mr15281250ill.164.1631694893727; Wed, 15 Sep 2021 01:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631694893; cv=none; d=google.com; s=arc-20160816; b=VlHZP1uWJrqyJQM+vvuIq85QMhVZ2j6Ekr9sEYarL2o+oU+UMGp8r39Pm1bM8Fkoo5 Q/+S5ZAXNXFo3NWvGGFcrSMTiJM7IYgKeK7jWtZ//tiQPFQZCEif2uXCFh5O8Z6tcrqF X3Tbjk6v0XArMy8zKs73xUNNntouSiWqjPXHfOnF5aUU66mRWNQMvglXM6XbcR2wZFb+ bP6OOFBxNycxHRvTudXJPwjkChVv4eFXeMmgVmnP0KZ4IJ4W0naLv6EYYDuT7cFLNfT+ Ae39rqg+bsjgacfgM0NeRSHnxG7uN6TMPpedlQ54hi9f4yz7FLbutUZ5r00bm2JkVQby fFxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=XTV5yvBIy7/Nqie5b5cUh0hYAvES/DVSeYmIqN6qvjQ=; b=wnONiuIk8JxpwsgQ2fcsnTto67iB0uswg2QdgKGjS7Kh2Q1nHz8MRkncpdv4Q8v4wL myfb5OyBQpn71UeJVueyaGbFg1ut5PmwZBEVHKbLDTK5QZ0utPqEqyrlM6GzJs3g6XaH ope3rZ+Nxh5ePs9FzSJgNGT4uC3ioI64kA2wXwxiqR3jGg2rnMcekKMmCZmjCSLxm4K+ zXFRaLho/f/4Roodsb9m2vZYcdvgEHcXcBvPdVOha4fcfFHACX7z81d5o1Ld1sU/1ctp Jzr51eTb+N/Kc5UV1cUsAjk3Q/0HZ3QVhnf8XxklL3f7tA6e8OQG1IxYUlRfwtKpw2gb wRmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=OiOBxQFV; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si12094324ioq.2.2021.09.15.01.34.20; Wed, 15 Sep 2021 01:34:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=OiOBxQFV; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236805AbhIOIew (ORCPT + 99 others); Wed, 15 Sep 2021 04:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236942AbhIOIer (ORCPT ); Wed, 15 Sep 2021 04:34:47 -0400 Received: from mail-qk1-x74a.google.com (mail-qk1-x74a.google.com [IPv6:2607:f8b0:4864:20::74a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 298AEC061574 for ; Wed, 15 Sep 2021 01:33:23 -0700 (PDT) Received: by mail-qk1-x74a.google.com with SMTP id d202-20020a3768d3000000b003d30722c98fso2586789qkc.10 for ; Wed, 15 Sep 2021 01:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=XTV5yvBIy7/Nqie5b5cUh0hYAvES/DVSeYmIqN6qvjQ=; b=OiOBxQFVGugQrif1PzckoCAnD7afd0QvSmo7VyyBYgaOYto84LfYjC8k2w+C1h/ibS t+CFXTwQ7rZS/npp2dMAWNXopHM/RuJleBYYInR1jpTMDotUJmH/xcm1O9j8vheEOfFm PnIEIrGXNELsEZPfuIte2IuB3qWAj9rcA6MOIuMdnrBqNNP0NZjcL+eyazvUdxxGh42g FLwkEFv5F1ojeANrcRyux1JNXDEsx6n3SeE4YvHoUV13hsMmVYcrzTt84/+KECPEqJ6T 8pOrmlbT1TCJUvScgcxrp5py/KJtHqNuPmo5M9JuljJ0QnOVN4bQGeuiona6eFcd48wn ApKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=XTV5yvBIy7/Nqie5b5cUh0hYAvES/DVSeYmIqN6qvjQ=; b=35Dnh6Jgp8Irk9HggwGjqj9hZW6P/Ek/y+/rv4PE/T/PfGj9K/FqYld2r+4WMVrIEG xL1eCE+nSuMdaWjGdNeVatFYNM5c9alEh4d8oKf1bliM8YH6rc2dLS2GfSjJNqzOBiXH ok7LK5OHKRP0gC6M4XIf6npC7kSCnf67GzzHMcFgeJRnbgyXRcBe64tqHV2bUfn0et4t BvWxMLHZHvea8PiFg2LEzVnMzgcfsSPMNMCxyGl0YN0enL/LsHMAPg/yc+VZ/qRbJbqb U1UGp8SvCAtknq1zUb0o55WTjsE20ExTjXe13SrPKvBTDDEma7+rtYrz2ecY74bjcA+E cROw== X-Gm-Message-State: AOAM530zUQwDnK0CZHjAnccwfc2ywHVRCPtmxMCTzeTI7ZcdH2mfn4Cl GV9JOe0Lg+hWfl++DDJpyOQapO5OCsdmNkyuaVS+bPo5jaJ4KDv5ZeYFZ4lpcO5G/gken2hWjJv Bkq04RLVU2B0KLWH3QMEMzk9NxyV1WgGIzT5h3Sb7MeOR4RfDg5a6d+f3VkSqtT+n3/iGumlxcg Wg X-Received: from apusaka-p920.tpe.corp.google.com ([2401:fa00:1:10:3c6b:8053:7e45:276b]) (user=apusaka job=sendgmr) by 2002:a0c:f047:: with SMTP id b7mr9632396qvl.15.1631694802284; Wed, 15 Sep 2021 01:33:22 -0700 (PDT) Date: Wed, 15 Sep 2021 16:32:04 +0800 In-Reply-To: <20210915083207.243957-1-apusaka@google.com> Message-Id: <20210915162843.Bluez.v5.8.I50be9be1265bc743325cfdb9fa0bdbce9671a304@changeid> Mime-Version: 1.0 References: <20210915083207.243957-1-apusaka@google.com> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog Subject: [Bluez PATCH v5 08/13] profiles: Inclusive language changes From: Archie Pusaka To: linux-bluetooth , Luiz Augusto von Dentz Cc: CrosBT Upstreaming , Archie Pusaka Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Archie Pusaka BT core spec 5.3 promotes the usage of inclusive languages. This CL replaces some terms with the more appropriate counterparts, such as "central" and "peripheral". --- (no changes since v4) Changes in v4: * Fix line over 80 columns Changes in v2: * Merging several patches from the same directory into one profiles/audio/avctp.c | 10 +++++----- profiles/audio/avctp.h | 2 +- profiles/health/mcap.c | 20 ++++++++++---------- profiles/health/mcap.h | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 9f717f35bb..702ded1366 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1614,7 +1614,7 @@ static void avctp_confirm_cb(GIOChannel *chan, gpointer data) return; } -static GIOChannel *avctp_server_socket(const bdaddr_t *src, gboolean master, +static GIOChannel *avctp_server_socket(const bdaddr_t *src, gboolean central, uint8_t mode, uint16_t psm) { GError *err = NULL; @@ -1625,7 +1625,7 @@ static GIOChannel *avctp_server_socket(const bdaddr_t *src, gboolean master, BT_IO_OPT_SOURCE_BDADDR, src, BT_IO_OPT_PSM, psm, BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_MEDIUM, - BT_IO_OPT_CENTRAL, master, + BT_IO_OPT_CENTRAL, central, BT_IO_OPT_MODE, mode, BT_IO_OPT_INVALID); if (!io) { @@ -1636,20 +1636,20 @@ static GIOChannel *avctp_server_socket(const bdaddr_t *src, gboolean master, return io; } -int avctp_register(struct btd_adapter *adapter, gboolean master) +int avctp_register(struct btd_adapter *adapter, gboolean central) { struct avctp_server *server; const bdaddr_t *src = btd_adapter_get_address(adapter); server = g_new0(struct avctp_server, 1); - server->control_io = avctp_server_socket(src, master, BT_IO_MODE_BASIC, + server->control_io = avctp_server_socket(src, central, BT_IO_MODE_BASIC, AVCTP_CONTROL_PSM); if (!server->control_io) { g_free(server); return -1; } - server->browsing_io = avctp_server_socket(src, master, BT_IO_MODE_ERTM, + server->browsing_io = avctp_server_socket(src, central, BT_IO_MODE_ERTM, AVCTP_BROWSING_PSM); if (!server->browsing_io) { if (server->control_io) { diff --git a/profiles/audio/avctp.h b/profiles/audio/avctp.h index 23e3732cde..ca5ff9126d 100644 --- a/profiles/audio/avctp.h +++ b/profiles/audio/avctp.h @@ -145,7 +145,7 @@ unsigned int avctp_add_state_cb(struct btd_device *dev, avctp_state_cb cb, void *user_data); gboolean avctp_remove_state_cb(unsigned int id); -int avctp_register(struct btd_adapter *adapter, gboolean master); +int avctp_register(struct btd_adapter *adapter, gboolean central); void avctp_unregister(struct btd_adapter *adapter); struct avctp *avctp_connect(struct btd_device *device); diff --git a/profiles/health/mcap.c b/profiles/health/mcap.c index be13af37a0..5161ef77c8 100644 --- a/profiles/health/mcap.c +++ b/profiles/health/mcap.c @@ -52,15 +52,15 @@ struct mcap_csp { uint64_t base_tmstamp; /* CSP base timestamp */ struct timespec base_time; /* CSP base time when timestamp set */ - guint local_caps; /* CSP-Master: have got remote caps */ - guint remote_caps; /* CSP-Slave: remote master got caps */ - guint rem_req_acc; /* CSP-Slave: accuracy required by master */ - guint ind_expected; /* CSP-Master: indication expected */ - uint8_t csp_req; /* CSP-Master: Request control flag */ - guint ind_timer; /* CSP-Slave: indication timer */ - guint set_timer; /* CSP-Slave: delayed set timer */ - void *set_data; /* CSP-Slave: delayed set data */ - void *csp_priv_data; /* CSP-Master: In-flight request data */ + guint local_caps; /* CSP-Cent.: have got remote caps */ + guint remote_caps; /* CSP-Perip: remote central got caps */ + guint rem_req_acc; /* CSP-Perip: accuracy req by central */ + guint ind_expected; /* CSP-Cent.: indication expected */ + uint8_t csp_req; /* CSP-Cent.: Request control flag */ + guint ind_timer; /* CSP-Perip: indication timer */ + guint set_timer; /* CSP-Perip: delayed set timer */ + void *set_data; /* CSP-Perip: delayed set data */ + void *csp_priv_data; /* CSP-Cent.: In-flight request data */ }; struct mcap_sync_cap_cbdata { @@ -3139,7 +3139,7 @@ void mcap_sync_set_req(struct mcap_mcl *mcl, uint8_t update, uint32_t btclock, g_set_error(err, MCAP_CSP_ERROR, MCAP_ERROR_RESOURCE_UNAVAILABLE, - "Did not get CSP caps from slave yet"); + "Did not get CSP caps from peripheral yet"); return; } diff --git a/profiles/health/mcap.h b/profiles/health/mcap.h index 5a94c8b63b..00f3fa8510 100644 --- a/profiles/health/mcap.h +++ b/profiles/health/mcap.h @@ -270,7 +270,7 @@ struct mcap_instance { mcap_mcl_event_cb mcl_reconnected_cb; /* Old MCL has been reconnected */ mcap_mcl_event_cb mcl_disconnected_cb; /* MCL disconnected */ mcap_mcl_event_cb mcl_uncached_cb; /* MCL has been removed from MCAP cache */ - mcap_info_ind_event_cb mcl_sync_infoind_cb; /* (CSP Master) Received info indication */ + mcap_info_ind_event_cb mcl_sync_infoind_cb; /* (CSP Central) Received info indication */ gpointer user_data; /* Data to be provided in callbacks */ int ref; /* Reference counter */ -- 2.33.0.464.g1972c5931b-goog