Closed Bug 743933 Opened 12 years ago Closed 12 years ago

[b2g-bluetooth] Update B2G Bluetooth API to ICS code

Categories

(Core :: DOM: Device Interfaces, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: qdot, Assigned: qdot)

References

Details

Attachments

(1 file, 1 obsolete file)

The bluetooth DBus calls are currently based on gingerbread's bluetooth API. Once we're completely off gingerbread, we should update our code to work with the newer DBus/bluez calls.
Assignee: nobody → kyle
Current list:

- Add WAKEUP flags for dbus wakeup signals
- Change dbus_watch_get_fd to dbus_watch_get_unix_fd
Nice to have to get rid of some deprecation warnings, but not a blocker for shipping, especially since we've bounced back and forth between gb and ics so much.
No longer blocks: b2g-bluetooth
Depends on: 784255
Depends on: 780915
No feature updates in this, mostly warning fixes and the ability to attach to wakeup (which might have some nice uses in V2)
Attachment #661873 - Flags: review?(echou)
Doing a bit of debug message cleanup while we're at it.
Attachment #661873 - Attachment is obsolete: true
Attachment #661873 - Flags: review?(echou)
Attachment #661890 - Flags: review?(echou)
Summary: Update B2G Bluetooth API to ICS code → [b2g-bluetooth] Update B2G Bluetooth API to ICS code
Comment on attachment 661890 [details] [diff] [review]
Patch 1 (v2) - Update DBus features to ICS

Review of attachment 661890 [details] [diff] [review]:
-----------------------------------------------------------------

r+ after nits are fixed.

::: ipc/dbus/DBusThread.cpp
@@ +276,5 @@
>    aDbt->mWatchData.RemoveElementAt(index);
>  }
>  
> +static
> +void DBusWakeup(void* aData) {

Nit: brace should be at a separate line.

@@ +279,5 @@
> +static
> +void DBusWakeup(void* aData) {
> +  DBusThread *dbt = (DBusThread *)aData;
> +  char control = DBUS_EVENT_LOOP_WAKEUP;
> +  if(write(dbt->mControlFdW.get(), &control, sizeof(char)) < 0) {

Nit: needs a blank behind "if"
Attachment #661890 - Flags: review?(echou) → review+
https://hg.mozilla.org/mozilla-central/rev/176b61afc41d
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: