Closed
Bug 1061489
Opened 11 years ago
Closed 11 years ago
[Bluetooth] Separate BluetoothInterface from actual implementation
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S4 (12sep)
People
(Reporter: tzimmermann, Assigned: tzimmermann)
References
Details
Attachments
(3 files)
145.67 KB,
patch
|
shawnjohnjr
:
review+
|
Details | Diff | Splinter Review |
242.83 KB,
patch
|
shawnjohnjr
:
review+
|
Details | Diff | Splinter Review |
621 bytes,
patch
|
shawnjohnjr
:
review+
|
Details | Diff | Splinter Review |
BluetoothInterface.{cpp,h} currently implement Bluedroid support. We want to have support for multiple backends, especially a Bluetooth daemon. So the interface and the current Bluedroid code have to be separated from each other.
Assignee | ||
Comment 1•11 years ago
|
||
No functional changes. This patch just moves code around.
Attachment #8483467 -
Flags: review?(shuang)
Assignee | ||
Comment 2•11 years ago
|
||
Again, no functional changes. This patch also cleans up indention errors that were accidentally introduced by the first patch.
Attachment #8483469 -
Flags: review?(shuang)
Comment on attachment 8483469 [details] [diff] [review]
[02] Bug 1061489: Distribute Bluetooth HAL implementation among multiple files
Review of attachment 8483469 [details] [diff] [review]:
-----------------------------------------------------------------
Can we rename Bluetooth*Manager to Blutooth*HALInterface.cpp? And then add additional patches on topic of them. Otherwise, it will be better to keep git history.
Attachment #8483469 -
Flags: review?(shuang)
Attachment #8483467 -
Flags: review?(shuang) → review+
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Shawn Huang [:shawnjohnjr] from comment #3)
> Comment on attachment 8483469 [details] [diff] [review]
> [02] Bug 1061489: Distribute Bluetooth HAL implementation among multiple
> files
>
> Review of attachment 8483469 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Can we rename Bluetooth*Manager to Blutooth*HALInterface.cpp? And then add
> additional patches on topic of them. Otherwise, it will be better to keep
> git history.
I don't get the point, because those are two different things. The interfaces are really just interfaces. The managers instead maintain state.
For the daemon, I only want to re-implement the interfaces, but not the managers.
Assignee | ||
Comment 5•11 years ago
|
||
BTW My plan is to later add a |BluetoothInterface| for BlueZ 4 as well. At that point, most manager classes can be merged with their base class, so the current multitude of Bluetooth*Manager classes will go away.
Assignee | ||
Comment 6•11 years ago
|
||
Hi Shawn,
What's the status here? I'm not sure what to make of your last comment.
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(shuang)
Attachment #8483469 -
Flags: review+
Flags: needinfo?(shuang)
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #4)
> (In reply to Shawn Huang [:shawnjohnjr] from comment #3)
> > Comment on attachment 8483469 [details] [diff] [review]
> > [02] Bug 1061489: Distribute Bluetooth HAL implementation among multiple
> > files
> >
> > Review of attachment 8483469 [details] [diff] [review]:
> > -----------------------------------------------------------------
> >
> > Can we rename Bluetooth*Manager to Blutooth*HALInterface.cpp? And then add
> > additional patches on topic of them. Otherwise, it will be better to keep
> > git history.
>
> I don't get the point, because those are two different things. The
> interfaces are really just interfaces. The managers instead maintain state.
>
> For the daemon, I only want to re-implement the interfaces, but not the
> managers.
Sorry, it seems to me I lost my mind. I'm wrong.
Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
sorry had to back this out since this caused a bustage like https://tbpl.mozilla.org/php/getParsedLog.php?id=47859290&tree=B2g-Inbound
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #8487799 -
Flags: review?(shuang)
Attachment #8487799 -
Flags: review?(shuang) → review+
(In reply to Carsten Book [:Tomcat] from comment #9)
> sorry had to back this out since this caused a bustage like
> https://tbpl.mozilla.org/php/getParsedLog.php?id=47859290&tree=B2g-Inbound
This caused by non-clean build environment. Comment 10 had already added CLOBBER change.
Assignee | ||
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8c49d78239d1
https://hg.mozilla.org/mozilla-central/rev/63de503e22c3
https://hg.mozilla.org/mozilla-central/rev/e1d819297fe4
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S4 (12sep)
You need to log in
before you can comment on or make changes to this bug.
Description
•