Closed Bug 1120774 Opened 9 years ago Closed 9 years ago

[BT API2] A compile error occurred in BluetoothRilListener.o

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jaliu, Assigned: jaliu)

Details

Attachments

(1 file)

bluetooth2/BluetoothRilListener use nsITelephonyCallInfo since Bug 1115603 landed, whereas it didn't include header file.

It raises a compile error with BT API2 build flag.
> BluetoothRilListener.o
> ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp: In member function 'nsresult mozilla::dom::bluetooth::TelephonyListener::HandleCallInfo(nsITelephonyCallInfo*, bool)':
> ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:205:8: error: invalid use of incomplete type 'class nsITelephonyCallInfo'
> In file included from ../../../gecko/dom/bluetooth2/BluetoothRilListener.h:16:0,
>                  from ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:7:
> ../../dist/include/nsITelephonyService.h:19:7: error: forward declaration of 'class nsITelephonyCallInfo'
> ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:206:8: error: invalid use of incomplete type 'class nsITelephonyCallInfo'
> In file included from ../../../gecko/dom/bluetooth2/BluetoothRilListener.h:16:0,
>                  from ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:7:
> ../../dist/include/nsITelephonyService.h:19:7: error: forward declaration of 'class nsITelephonyCallInfo'
> ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:207:8: error: invalid use of incomplete type 'class nsITelephonyCallInfo'
> In file included from ../../../gecko/dom/bluetooth2/BluetoothRilListener.h:16:0,
>                  from ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:7:
> ../../dist/include/nsITelephonyService.h:19:7: error: forward declaration of 'class nsITelephonyCallInfo'
> ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:208:8: error: invalid use of incomplete type 'class nsITelephonyCallInfo'
> In file included from ../../../gecko/dom/bluetooth2/BluetoothRilListener.h:16:0,
>                  from ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:7:
> ../../dist/include/nsITelephonyService.h:19:7: error: forward declaration of 'class nsITelephonyCallInfo'
> ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:209:8: error: invalid use of incomplete type 'class nsITelephonyCallInfo'
> In file included from ../../../gecko/dom/bluetooth2/BluetoothRilListener.h:16:0,
>                  from ../../../gecko/dom/bluetooth2/BluetoothRilListener.cpp:7:
> ../../dist/include/nsITelephonyService.h:19:7: error: forward declaration of 'class nsITelephonyCallInfo'
Assignee: nobody → jaliu
Comment on attachment 8547927 [details] [diff] [review]
Include a header file for nsITelephonyCallInfo in bluetooth2/BluetoothRilListener.h (v1)

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

LGTM. I should've caught it. Thank!
Attachment #8547927 - Flags: review?(btian) → review+
(In reply to Ben Tian [:btian] from comment #2)
> Comment on attachment 8547927 [details] [diff] [review]
> Include a header file for nsITelephonyCallInfo in
> bluetooth2/BluetoothRilListener.h (v1)
> 
> Review of attachment 8547927 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> LGTM. I should've caught it. Thank!

Thank you for reviewing the patch. :)
https://hg.mozilla.org/mozilla-central/rev/60558300fd6a
Status: NEW → RESOLVED
Closed: 9 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: