From: Christian Eggers <ceggers@arri.de>
To: <linux-bluetooth@vger.kernel.org>
Cc: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>,
Christian Eggers <ceggers@arri.de>
Subject: [PATCH] client/advertising: Fix typos: *_exits --> *_exists
Date: Thu, 25 Aug 2022 22:38:28 +0200 [thread overview]
Message-ID: <20220825203828.3380-1-ceggers@arri.de> (raw)
Fixes: bd0808bf01eb ("client: Add advertise.secondary command")
Fixes: 4e7780d0eb94 ("client/advertising: Add support for setting min/max intervals")
Fixes: 068e0ba214b9 ("client: Add set-advertise-{duration, timeout}")
Fixes: 5c3a39e642d5 ("client: Enable set-advertise-appearance to set Appearance")
Fixes: 177eccc14523 ("client: Enable set-advertise-name to set LocalName")
Fixes: 806276fe54fa ("client: Add advertise.discoverable-timeout command")
Signed-off-by: Christian Eggers <ceggers@arri.de>
---
client/advertising.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/client/advertising.c b/client/advertising.c
index 5c9e3eeb3315..837cf817e871 100644
--- a/client/advertising.c
+++ b/client/advertising.c
@@ -329,7 +329,7 @@ static gboolean get_includes(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean local_name_exits(const GDBusPropertyTable *property, void *data)
+static gboolean local_name_exists(const GDBusPropertyTable *property, void *data)
{
return ad.local_name ? TRUE : FALSE;
}
@@ -342,7 +342,7 @@ static gboolean get_local_name(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean appearance_exits(const GDBusPropertyTable *property, void *data)
+static gboolean appearance_exists(const GDBusPropertyTable *property, void *data)
{
return ad.local_appearance != UINT16_MAX ? TRUE : FALSE;
}
@@ -356,7 +356,7 @@ static gboolean get_appearance(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean duration_exits(const GDBusPropertyTable *property, void *data)
+static gboolean duration_exists(const GDBusPropertyTable *property, void *data)
{
return ad.duration;
}
@@ -369,7 +369,7 @@ static gboolean get_duration(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean timeout_exits(const GDBusPropertyTable *property, void *data)
+static gboolean timeout_exists(const GDBusPropertyTable *property, void *data)
{
return ad.timeout;
}
@@ -420,7 +420,7 @@ static gboolean get_discoverable(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean discoverable_timeout_exits(const GDBusPropertyTable *property,
+static gboolean discoverable_timeout_exists(const GDBusPropertyTable *property,
void *data)
{
return ad.discoverable_to;
@@ -435,7 +435,7 @@ static gboolean get_discoverable_timeout(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean secondary_exits(const GDBusPropertyTable *property, void *data)
+static gboolean secondary_exists(const GDBusPropertyTable *property, void *data)
{
return ad.secondary ? TRUE : FALSE;
}
@@ -449,7 +449,7 @@ static gboolean get_secondary(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean min_interval_exits(const GDBusPropertyTable *property,
+static gboolean min_interval_exists(const GDBusPropertyTable *property,
void *data)
{
return ad.min_interval;
@@ -464,7 +464,7 @@ static gboolean get_min_interval(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean max_interval_exits(const GDBusPropertyTable *property,
+static gboolean max_interval_exists(const GDBusPropertyTable *property,
void *data)
{
return ad.max_interval;
@@ -488,15 +488,15 @@ static const GDBusPropertyTable ad_props[] = {
{ "Data", "a{yv}", get_data, NULL, data_exists },
{ "Discoverable", "b", get_discoverable, NULL, discoverable_exists },
{ "DiscoverableTimeout", "q", get_discoverable_timeout, NULL,
- discoverable_timeout_exits },
+ discoverable_timeout_exists },
{ "Includes", "as", get_includes, NULL, includes_exists },
- { "LocalName", "s", get_local_name, NULL, local_name_exits },
- { "Appearance", "q", get_appearance, NULL, appearance_exits },
- { "Duration", "q", get_duration, NULL, duration_exits },
- { "Timeout", "q", get_timeout, NULL, timeout_exits },
- { "MinInterval", "u", get_min_interval, NULL, min_interval_exits },
- { "MaxInterval", "u", get_max_interval, NULL, max_interval_exits },
- { "SecondaryChannel", "s", get_secondary, NULL, secondary_exits },
+ { "LocalName", "s", get_local_name, NULL, local_name_exists },
+ { "Appearance", "q", get_appearance, NULL, appearance_exists },
+ { "Duration", "q", get_duration, NULL, duration_exists },
+ { "Timeout", "q", get_timeout, NULL, timeout_exists },
+ { "MinInterval", "u", get_min_interval, NULL, min_interval_exists },
+ { "MaxInterval", "u", get_max_interval, NULL, max_interval_exists },
+ { "SecondaryChannel", "s", get_secondary, NULL, secondary_exists },
{ }
};
--
2.35.3
next reply other threads:[~2022-08-25 20:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 20:38 Christian Eggers [this message]
2022-08-25 21:21 ` client/advertising: Fix typos: *_exits --> *_exists bluez.test.bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220825203828.3380-1-ceggers@arri.de \
--to=ceggers@arri.de \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.von.dentz@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox