Bug 766891 - Sync nsIRadioInterfaceLayer.DATACALL_STATE_* with ril_consts.js. r=philikon
☠☠ backed out by dced59dc1100 ☠ ☠
authorKan-Ru Chen <kanru@kanru.info>
Thu, 21 Jun 2012 16:29:34 +0800
changeset 97365 edbb25e71396513a879978b2d63c306eecfccf94
parent 97364 5a2f50db17b3bebe8d38a5bfeb09c5097dacadca
child 97366 8d5e44898e8f5fc214012f6e7287f9054c05a56b
push id11004
push userkchen@mozilla.com
push dateFri, 22 Jun 2012 05:54:31 +0000
treeherdermozilla-inbound@8d5e44898e8f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilikon
bugs766891
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 766891 - Sync nsIRadioInterfaceLayer.DATACALL_STATE_* with ril_consts.js. r=philikon
dom/system/gonk/nsIRadioInterfaceLayer.idl
--- a/dom/system/gonk/nsIRadioInterfaceLayer.idl
+++ b/dom/system/gonk/nsIRadioInterfaceLayer.idl
@@ -233,20 +233,21 @@ interface nsIRadioInterfaceLayer : nsISu
   const unsigned short CALL_STATE_CONNECTED = 5;
   const unsigned short CALL_STATE_HOLDING = 6;
   const unsigned short CALL_STATE_HELD = 7;
   const unsigned short CALL_STATE_RESUMING = 8;
   const unsigned short CALL_STATE_DISCONNECTING = 9;
   const unsigned short CALL_STATE_DISCONNECTED = 10;
   const unsigned short CALL_STATE_INCOMING = 11;
 
-  // Keep consistent with GECKO_DATACALL_STATE_* values in ril_consts.js
-  const unsigned short DATACALL_STATE_UNKNOWN = 0;
-  const unsigned short DATACALL_STATE_CONNECTING = 1;
-  const unsigned short DATACALL_STATE_CONNECTED = 2;
+  // Keep consistent with GECKO_NETWORK_STATE_* values in ril_consts.js
+  const unsigned short DATACALL_STATE_UNKNOWN = -1;
+  const unsigned short DATACALL_STATE_CONNECTING = 0;
+  const unsigned short DATACALL_STATE_CONNECTED = 1;
+  const unsigned short DATACALL_STATE_SUSPENDED = 2;
   const unsigned short DATACALL_STATE_DISCONNECTING = 3;
   const unsigned short DATACALL_STATE_DISCONNECTED = 4;
 
   /**
    * Activates or deactivates radio power.
    */
   void setRadioEnabled(in bool value);