Closed Bug 1139298 Opened 11 years ago Closed 11 years ago

Replace the type of |aStatus| in BluetoothGattManager callbacks with a new enum BluetoothGattStatus

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
2.2 S7 (6mar)
Tracking Status
firefox39 --- fixed

People

(Reporter: ben.tian, Assigned: yrliou)

References

Details

(Whiteboard: [webbt-api])

Attachments

(1 file, 1 obsolete file)

BluetoothGattManager uses int for all |aStatus| in callbacks, however we should replace with BluetoothStatus instead.
Whiteboard: [webbt-api]
Assignee: nobody → joliu
Summary: Replace typeof |aStatus| in BluetoothGattManager callbacks with |BluetoothStatus| → Replace the type of |aStatus| in BluetoothGattManager callbacks with a new enum BluetoothGattStatus
Comment on attachment 8572503 [details] [diff] [review] Bug 1139298: Replace type int with BluetoothGattStatus enum for GATT client callbacks. Hi Ben, This patch add a new BluetoothGattStatus enum and use it for all GATT statuses reported by bluedroid stack. Please help to review my patch. Thanks, Jocelyn
Attachment #8572503 - Flags: review?(btian)
Comment on attachment 8572503 [details] [diff] [review] Bug 1139298: Replace type int with BluetoothGattStatus enum for GATT client callbacks. Review of attachment 8572503 [details] [diff] [review]: ----------------------------------------------------------------- r=me with nit addressed. ::: dom/bluetooth2/bluedroid/BluetoothGattHALInterface.cpp @@ +133,5 @@ > > typedef BluetoothNotificationHALRunnable5< > GattClientNotificationHandlerWrapper, void, > + int, BluetoothGattStatus, BluetoothGattServiceId, BluetoothGattId, int, > + int, BluetoothGattStatus, const BluetoothGattServiceId&, const BluetoothGattId&> nit: this line is too long (> 80 characters).
Attachment #8572503 - Flags: review?(btian) → review+
No try server link since bluetooth2 won't be built.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S7 (6mar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: