Closed
Bug 1152694
Opened 11 years ago
Closed 11 years ago
Make UUID and service name as input arguments for |BluetoothSocket::ConnectSocket| and |BluetoothSocket::ListenSocket|
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(feature-b2g:2.2r+, firefox40 fixed, b2g-v2.2r fixed)
People
(Reporter: ben.tian, Assigned: ben.tian)
References
Details
Attachments
(2 files, 2 obsolete files)
|
17.99 KB,
patch
|
Details | Diff | Splinter Review | |
|
18.02 KB,
patch
|
Details | Diff | Splinter Review |
Taking UUID and service name as input arguments in |BluetoothSocket::ConnectSocket| and |BluetoothSocket::ListenSocket| allows BluetoothSocket to handle services other than OBEX object push.
| Assignee | ||
Updated•11 years ago
|
Summary: Make UUID and service name input arguments for |BluetoothSocket::ConnectSocket| and |BluetoothSocket::ListenSocket| → Make UUID and service name as input arguments for |BluetoothSocket::ConnectSocket| and |BluetoothSocket::ListenSocket|
| Assignee | ||
Comment 1•11 years ago
|
||
The patch affects both bluetooth and bluetooth2.
Assignee: nobody → btian
| Assignee | ||
Comment 2•11 years ago
|
||
Rebase on bug 1146355.
Thomas, can you help review my patch? The patch makes UUID and service name as input arguments to allow BluetoothSocket for services besides OBEX object push.
Attachment #8590162 -
Attachment is obsolete: true
Attachment #8590606 -
Flags: review?(tzimmermann)
Comment 3•11 years ago
|
||
Comment on attachment 8590606 [details] [diff] [review]
Patch 1 (v2): Make UUID and service name as input arguments for BluetoothSocket
Review of attachment 8590606 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. Could you update the BlueZ code accordingly? It doesn't have to do anything, just that the interfaces for |Connect| and |Listen| are the same.
Attachment #8590606 -
Flags: review?(tzimmermann) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #3)
> Looks good. Could you update the BlueZ code accordingly? It doesn't have to
> do anything, just that the interfaces for |Connect| and |Listen| are the
> same.
The interface change also impacts BlueZ HFP and OPP managers that use socket. Do you prefer to 1) pass redundant arguments in HFP and OPP managers, or 2) add another set of |Connect| and |Listen| as original interface to stuff arguments for these managers? Also do you want the BlueZ socket interface change for future backend integration?
Flags: needinfo?(tzimmermann)
Comment 5•11 years ago
|
||
Hi Ben,
In order to keep the number of API differences between bluez/ and bluedroid/ small, I'd prefer option 1).
For the future of BlueZ, I implemented bug 1088574. It provides BlueZ behind the backend interfaces of BluetothInterface.{cpp,h}. With these patches, the class |BluetoothSocket| comes from the current implementation in bluedroid/.
Flags: needinfo?(tzimmermann)
| Assignee | ||
Comment 6•11 years ago
|
||
Revise based on reviewer's comment.
Attachment #8590606 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•11 years ago
|
||
try server result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b0f2e21b41d4
| Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S10 (17apr)
| Assignee | ||
Comment 10•10 years ago
|
||
Wesley, please help mark this bug feature-b2g:2.2r since BT feature PBAP depends on this bug.
Depends on: 1158081
Flags: needinfo?(whuang)
| Assignee | ||
Comment 11•10 years ago
|
||
Upload patch for 2.2r.
Updated•10 years ago
|
Comment 12•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•