diff options
author | jamuraa <jamuraa@chromium.org> | 2014-10-01 09:48:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-01 16:48:20 +0000 |
commit | 7b39ecf6b2ceed6270d74d3e6727a0226fa88ea1 (patch) | |
tree | 5aaf109a1911b5c2fb668aee0a7f1dd7907d1e14 /device/bluetooth/bluetooth_gatt_service.h | |
parent | d321a70a780e58ef1f803859263672678e656407 (diff) | |
download | chromium_src-7b39ecf6b2ceed6270d74d3e6727a0226fa88ea1.zip chromium_src-7b39ecf6b2ceed6270d74d3e6727a0226fa88ea1.tar.gz chromium_src-7b39ecf6b2ceed6270d74d3e6727a0226fa88ea1.tar.bz2 |
First part of errors coming up from the dbus API
BUG=377232
Review URL: https://codereview.chromium.org/604023004
Cr-Commit-Position: refs/heads/master@{#297656}
Diffstat (limited to 'device/bluetooth/bluetooth_gatt_service.h')
-rw-r--r-- | device/bluetooth/bluetooth_gatt_service.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_gatt_service.h b/device/bluetooth/bluetooth_gatt_service.h index a62278f..992874a 100644 --- a/device/bluetooth/bluetooth_gatt_service.h +++ b/device/bluetooth/bluetooth_gatt_service.h @@ -125,6 +125,19 @@ class BluetoothGattService { const ErrorCallback& error_callback) = 0; }; + // Interacting with Characteristics and Descriptors can produce + // this set of errors. + enum GattErrorCode { + GATT_ERROR_UNKNOWN = 0, + GATT_ERROR_FAILED, + GATT_ERROR_IN_PROGRESS, + GATT_ERROR_INVALID_LENGTH, + GATT_ERROR_NOT_PERMITTED, + GATT_ERROR_NOT_AUTHORIZED, + GATT_ERROR_NOT_PAIRED, + GATT_ERROR_NOT_SUPPORTED + }; + // The ErrorCallback is used by methods to asynchronously report errors. typedef base::Closure ErrorCallback; |