diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-08-14 16:29:03 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-08-16 13:59:00 +0300 |
commit | a41a625b1d833d6a1df91a6a58d7786f8755c89c (patch) | |
tree | 4dff5e678e840e1a5f6de0ad08f5650dbd9aeb9f /client/advertising.h | |
parent | b12b7e76556dc2bd037ee89604b759f3de60c695 (diff) | |
download | bluez-a41a625b1d833d6a1df91a6a58d7786f8755c89c.tar.gz |
client: Emit PropertiesChanged if advertising changes
This allows bluetoothd to detect changes done by the user without
having to rely on advertise command to unregister and register again:
bluetooth]# set-advertise-name blah
[bluetooth]# advertise on
@ MGMT Command: Add Advertising (0x003e) plen 17
Instance: 1
Flags: 0x00000003
Switch into Connectable mode
Advertise as Discoverable
Duration: 0
Timeout: 0
Advertising data length: 0
Scan response length: 6
Name (complete): blah
[bluetooth]# set-advertise-name bleh
@ MGMT Command: Add Advertising (0x003e) plen 17
Instance: 1
Flags: 0x00000003
Switch into Connectable mode
Advertise as Discoverable
Duration: 0
Timeout: 0
Advertising data length: 0
Scan response length: 6
Name (complete): bleh
Diffstat (limited to 'client/advertising.h')
-rw-r--r-- | client/advertising.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/client/advertising.h b/client/advertising.h index 5ea57adb3..6868518e7 100644 --- a/client/advertising.h +++ b/client/advertising.h @@ -24,11 +24,11 @@ void ad_register(DBusConnection *conn, GDBusProxy *manager, const char *type); 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(bool value); -void ad_advertise_name(bool value); -void ad_advertise_appearance(bool value); -void ad_advertise_local_name(const char *name); -void ad_advertise_local_appearance(uint16_t value); +void ad_advertise_uuids(DBusConnection *conn, const char *arg); +void ad_advertise_service(DBusConnection *conn, const char *arg); +void ad_advertise_manufacturer(DBusConnection *conn, const char *arg); +void ad_advertise_tx_power(DBusConnection *conn, bool value); +void ad_advertise_name(DBusConnection *conn, bool value); +void ad_advertise_appearance(DBusConnection *conn, bool value); +void ad_advertise_local_name(DBusConnection *conn, const char *name); +void ad_advertise_local_appearance(DBusConnection *conn, uint16_t value); |