diff options
author | Michael Janssen <jamuraa@chromium.org> | 2014-09-26 12:11:56 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-04-27 23:30:21 +0000 |
commit | 60c18c40b9c92a3f15d0f8052403614c698b8483 (patch) | |
tree | 9ead54a57eda21f3d1c592c89b850e18b6e59637 /dbus/service_constants.h | |
parent | 4ce14ac28a1432a716245ba9a539121da40c060f (diff) | |
download | system_api-60c18c40b9c92a3f15d0f8052403614c698b8483.tar.gz |
service_constants: Updates for bluetooth constants
Updates for the service constants related to bluetooth dbus services /
interfaces:
* Add Bluetooth GATT Service Errors
* Add Bluetooth Media constants
* Add Bluetooth Media Endpoint constants
* Add Bluetooth Media Transport constants
* Fix typo in Bluetooth Advertisement interface
* Add IncludeTxPower Property for Bluetooth Advertisement
BUG=chromium:466375
TEST=emerge easy-unlock
Change-Id: I3acb63a838b2af673c6c4d448c93b97a8e08aff7
Reviewed-on: https://chromium-review.googlesource.com/266398
Reviewed-by: Arman Uguray <armansito@chromium.org>
Trybot-Ready: Michael Janssen <jamuraa@chromium.org>
Tested-by: Michael Janssen <jamuraa@chromium.org>
Commit-Queue: Michael Janssen <jamuraa@chromium.org>
Diffstat (limited to 'dbus/service_constants.h')
-rw-r--r-- | dbus/service_constants.h | 72 |
1 files changed, 71 insertions, 1 deletions
diff --git a/dbus/service_constants.h b/dbus/service_constants.h index 534c6d1..cedbdf2 100644 --- a/dbus/service_constants.h +++ b/dbus/service_constants.h @@ -1337,6 +1337,16 @@ const char kDeviceProperty[] = "Device"; const char kPrimaryProperty[] = "Primary"; const char kIncludesProperty[] = "Includes"; const char kCharacteristicsProperty[] = "Characteristics"; + +// Bluetooth GATT Service errors. +const char kErrorFailed[] = "org.bluez.Error.Failed"; +const char kErrorInProgress[] = "org.bluez.Error.InProgress"; +const char kErrorInvalidValueLength[] = "org.bluez.Error.InvalidValueLength"; +const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; +const char kErrorNotPaired[] = "org.bluez.Error.NotPaired"; +const char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; +const char kErrorReadNotPermitted[] = "org.bluez.Error.ReadNotPermitted"; +const char kErrorWriteNotPermitted[] = "org.bluez.Error.WriteNotPermitted"; } // namespace bluetooth_gatt_service namespace bluetooth_input { @@ -1354,6 +1364,65 @@ const char kDeviceReconnectModeProperty[] = "device"; const char kAnyReconnectModeProperty[] = "any"; } // namespace bluetooth_input +namespace bluetooth_media { +// Bluetooth Media service identifiers +const char kBluetoothMediaServiceName[] = "org.bluez"; +const char kBluetoothMediaInterface[] = "org.bluez.Media1"; + +// Bluetooth Media methods +const char kRegisterEndpoint[] = "RegisterEndpoint"; +const char kUnregisterEndpoint[] = "UnregisterEndpoint"; +const char kRegisterPlayer[] = "RegisterPlayer"; +const char kUnregisterPlayer[] = "UnregisterPlayer"; + +// Bluetooth Media errors +const char kErrorFailed[] = "org.bluez.Error.Failed"; +const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments"; +const char kErrorNotSupported[] = "org.bluez.Error.NotSupported"; +} // namespace bluetooth_media + +namespace bluetooth_media_endpoint { +// Bluetooth Media Endpoint service identifiers +const char kBluetoothMediaEndpointServiceName[] = "org.bluez"; +const char kBluetoothMediaEndpointInterface[] = "org.bluez.MediaEndpoint1"; + +// Bluetooth Media Endpoint methods +const char kSetConfiguration[] = "SetConfiguration"; +const char kSelectConfiguration[] = "SelectConfiguration"; +const char kClearConfiguration[] = "ClearConfiguration"; +const char kRelease[] = "Release"; +} // namespace bluetooth_media_endpoint + +namespace bluetooth_media_transport { +// Bluetooth Media Transport service identifiers +const char kBluetoothMediaTransportServiceName[] = "org.bluez"; +const char kBluetoothMediaTransportInterface[] = "org.bluez.MediaTransport1"; + +// Bluetooth Media Transport methods +const char kAcquire[] = "Acquire"; +const char kTryAcquire[] = "TryAcquire"; +const char kRelease[] = "Release"; + +// Bluetooth Media Transport property names. +const char kDeviceProperty[] = "Device"; +const char kUUIDProperty[] = "UUID"; +const char kCodecProperty[] = "Codec"; +const char kConfigurationProperty[] = "Configuration"; +const char kStateProperty[] = "State"; +const char kDelayProperty[] = "Delay"; +const char kVolumeProperty[] = "Volume"; + +// Possible states for the "State" property +const char kStateIdle[] = "idle"; +const char kStatePending[] = "pending"; +const char kStateActive[] = "active"; + +// Bluetooth Media Transport errors. +const char kErrorFailed[] = "org.bluez.Error.Failed"; +const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized"; +const char kErrorNotAvailable[] = "org.bluez.Error.NotAvailable"; +} // namespace bluetooth_media_transport + namespace bluetooth_object_manager { // Bluetooth daemon Object Manager service identifiers. const char kBluetoothObjectManagerServiceName[] = "org.bluez"; @@ -1415,7 +1484,7 @@ const char kErrorCanceled[] = "org.bluez.Error.Canceled"; namespace bluetooth_advertisement { // Bluetooth LE Advertisement service identifiers. const char kBluetoothAdvertisementServiceName[] = "org.bluez"; -const char kBluetoothAdvertisementIntervace[] = +const char kBluetoothAdvertisementInterface[] = "org.bluez.LEAdvertisement1"; // Bluetooth Advertisement methods. @@ -1427,6 +1496,7 @@ const char kServiceUUIDsProperty[] = "ServiceUUIDs"; const char kServiceDataProperty[] = "ServiceData"; const char kSolicitUUIDsProperty[] = "SolicitUUIDs"; const char kTypeProperty[] = "Type"; +const char kIncludeTxPowerProperty[] = "IncludeTxPower"; // Possible values for the "Type" property. const char kTypeBroadcast[] = "broadcast"; |