aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Janssen <jamuraa@chromium.org>2015-04-07 16:05:33 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-04-15 04:50:39 +0000
commitbeb554763c188ae8f0518de6d55661248c907218 (patch)
tree31837650a0f1972e2c3eb09f3dc843cb97ebd1f5
parentd090427c2e1b1c3cdbacbbf29cc5126ea3f5ffd3 (diff)
downloadsystem_api-beb554763c188ae8f0518de6d55661248c907218.tar.gz
service_constants: Add bindings for BlueZ Advertising D-Bus API
Added bindings for the experimental LE Advertising D-Bus API. BUG=chromium:345072 TEST=emerge easy-unlock Change-Id: Ic92e23811c37ba3b998255de33bf032d219dcb0d Reviewed-on: https://chromium-review.googlesource.com/264579 Reviewed-by: Arman Uguray <armansito@chromium.org> Tested-by: Michael Janssen <jamuraa@chromium.org> Commit-Queue: Michael Janssen <jamuraa@chromium.org>
-rw-r--r--dbus/service_constants.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/dbus/service_constants.h b/dbus/service_constants.h
index cf26c7c..437ac8a 100644
--- a/dbus/service_constants.h
+++ b/dbus/service_constants.h
@@ -1410,6 +1410,46 @@ const char kErrorRejected[] = "org.bluez.Error.Rejected";
const char kErrorCanceled[] = "org.bluez.Error.Canceled";
} // namespace bluetooth_profile
+namespace bluetooth_advertisement {
+// Bluetooth LE Advertisement service identifiers.
+const char kBluetoothAdvertisementServiceName[] = "org.bluez";
+const char kBluetoothAdvertisementIntervace[] =
+ "org.bluez.LEAdvertisement1";
+
+// Bluetooth Advertisement methods.
+const char kRelease[] = "Release";
+
+// Bluetooth Advertisement properties.
+const char kManufacturerDataProperty[] = "ManufacturerData";
+const char kServiceUUIDsProperty[] = "ServiceUUIDs";
+const char kServiceDataProperty[] = "ServiceData";
+const char kSolicitUUIDsProperty[] = "SolicitUUIDs";
+const char kTypeProperty[] = "Type";
+
+// Possible values for the "Type" property.
+const char kTypeBroadcast[] = "broadcast";
+const char kTypePeripheral[] = "peripheral";
+
+} // namespace bluetooth_advertisement
+
+namespace bluetooth_advertising_manager {
+// Bluetooth LE Advertising Manager service identifiers.
+const char kBluetoothAdvertisingManagerServiceName[] = "org.bluez";
+const char kBluetoothAdvertisingManagerInterface[] =
+ "org.bluez.LEAdvertisingManager1";
+
+// Bluetooth LE Advertising Manager methods.
+const char kRegisterAdvertisement[] = "RegisterAdvertisement";
+const char kUnregisterAdvertisement[] = "UnregisterAdvertisement";
+
+// Bluetooth LE Advertising Manager errors.
+const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
+const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";
+const char kErrorFailed[] = "org.bluez.Error.Failed";
+const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
+const char kErrorInvalidLength[] = "org.bluez.Error.InvalidLength";
+} // namespace bluetooth_advertising_manager
+
namespace nfc_adapter {
// NFC Adapter service identifiers.
const char kNfcAdapterServiceName[] = "org.neard";