diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-08-09 11:34:12 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-08-10 16:31:42 +0300 |
commit | 172e68c59f8cff319e456ef3923d3834a89b5494 (patch) | |
tree | f0c75be494692366584c3bbd7faee18bc741a165 /client/advertising.h | |
parent | 9fb1f9ff694c387e7547b897ff1cd4c95d1063da (diff) | |
download | bluez-172e68c59f8cff319e456ef3923d3834a89b5494.tar.gz |
client: Add set-advertise-name and set-advertise-appearance
set-advertise-appearance enables the use of adapter's appearance in the
scan response:
[bluetooth]# set-advertise-appearance on
[bluetooth]# advertise on
@ MGMT Command: Add Advertising (0x003e) plen 11
Instance: 1
Flags: 0x00000023
Switch into Connectable mode
Advertise as Discoverable
Add Appearance field to Scan Response
Duration: 0
Timeout: 0
Advertising data length: 0
Scan response length: 0
set-advertise-name enables the use of adapter's name/alias in the
scan response:
[bluetooth]# set-advertise-name on
[bluetooth]# advertise on
@ MGMT Command: Add Advertising (0x003e) plen 11
Instance: 1
Flags: 0x00000043
Switch into Connectable mode
Advertise as Discoverable
Add Local Name in Scan Response
Duration: 0
Timeout: 0
Advertising data length: 0
Scan response length: 0
Diffstat (limited to 'client/advertising.h')
-rw-r--r-- | client/advertising.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/advertising.h b/client/advertising.h index 86384656c..77fc1cca5 100644 --- a/client/advertising.h +++ b/client/advertising.h @@ -27,4 +27,6 @@ void ad_unregister(DBusConnection *conn, GDBusProxy *manager); void ad_advertise_uuids(const char *arg); void ad_advertise_service(const char *arg); void ad_advertise_manufacturer(const char *arg); -void ad_advertise_tx_power(gboolean value); +void ad_advertise_tx_power(bool value); +void ad_advertise_name(bool value); +void ad_advertise_appearance(bool value); |