[PATCH v8 02/14] advertising: Rename AdvertisementInstaces to SupportedInstances

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

This fixes the typo and removes the term advertisement since it is
implicit given the interface name, also make it experimental since
AdvertisingManager is still experimental.
---
 doc/advertising-api.txt | 4 ++--
 src/advertising.c       | 9 ++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/doc/advertising-api.txt b/doc/advertising-api.txt
index 7a29b7095..4daa30b75 100644
--- a/doc/advertising-api.txt
+++ b/doc/advertising-api.txt
@@ -113,6 +113,6 @@ Methods		RegisterAdvertisement(object advertisement, dict options)
 			Possible errors: org.bluez.Error.InvalidArguments
 					 org.bluez.Error.DoesNotExist
 
-Properties	byte AdvertisementInstaces
+Properties	byte SupportedInstances
 
-			Number of available advertisement instances.
+			Number of available advertising instances.
diff --git a/src/advertising.c b/src/advertising.c
index 64d5a27bb..f92d5d33f 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -179,8 +179,7 @@ static void client_remove(void *data)
 
 	g_dbus_emit_property_changed(btd_get_dbus_connection(),
 				adapter_get_path(client->manager->adapter),
-				LE_ADVERTISING_MGR_IFACE,
-				"AdvertisementInstances");
+				LE_ADVERTISING_MGR_IFACE, "SupportedInstances");
 }
 
 static void client_disconnect_cb(DBusConnection *conn, void *user_data)
@@ -469,8 +468,7 @@ static void add_adv_callback(uint8_t status, uint16_t length,
 
 	g_dbus_emit_property_changed(btd_get_dbus_connection(),
 				adapter_get_path(client->manager->adapter),
-				LE_ADVERTISING_MGR_IFACE,
-				"AdvertisementInstances");
+				LE_ADVERTISING_MGR_IFACE, "SupportedInstances");
 
 done:
 	add_client_complete(client, status);
@@ -755,7 +753,8 @@ static gboolean get_instances(const GDBusPropertyTable *property,
 }
 
 static const GDBusPropertyTable properties[] = {
-	{ "AdvertisementInstances", "y", get_instances },
+	{ "SupportedInstances", "y", get_instances, NULL, NULL,
+					G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
 };
 
 static const GDBusMethodTable methods[] = {
-- 
2.13.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux