battery: change dbus method call to dbus signal 82/74882/1
authortaeyoung <ty317.kim@samsung.com>
Thu, 16 Jun 2016 03:56:23 +0000 (12:56 +0900)
committertaeyoung <ty317.kim@samsung.com>
Thu, 16 Jun 2016 03:58:49 +0000 (12:58 +0900)
- Battery information was delivered to deviced
  by calling dbus method of deviced. But battery HAL
  is applied and the interface needs to be changed
  to dbus signal due to the registsering dbus method
  issues.

Change-Id: I6a3b1a184b6be3596abc2aaa0e29dd62b41b34cb
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/mobile.cpp
src/mobile_dev.cpp
src/wearable.cpp
src/wearable_dev.cpp

index ca6bf83d581a1a86fcface4025ebda42d80520bd..cc789e391053cf4e1db1e51be3f4b2bba6740243 100644 (file)
@@ -97,7 +97,7 @@ static void dbus_send_power_supply(int capacity, int charger)
     snprintf(option, sizeof(option), "int32:5 string:\"%d\" string:\"%s\" string:\"Good\" string:\"%d\" string:\"1\"",
             capacity, state, (charger + 1));
 
-    dbus_send(power_device, DBUS_SEND_SYSNOTI, option);
+    dbus_send_signal(power_device, DBUS_SEND_SYSNOTI, option);
 }
 
 static void dbus_send_usb(int on)
index cfc700ca6efd490690e1325ebe31c2caef597cce..eeeb4acfdfe23ce7dd95be13293dc0fde96dfd01 100644 (file)
@@ -130,7 +130,7 @@ static void dbus_send_power_supply(int capacity, int charger)
     sprintf(option, "int32:5 string:\"%d\" string:\"%s\" string:\"Good\" string:\"%d\" string:\"1\"",
             capacity, state, (charger + 1));
 
-    dbus_send(power_device, option);
+    dbus_send_signal(power_device, DBUS_SEND_SYSNOTI, option);
 }
 
 #define DEVICE_CHANGED      "device_changed"
index 5ccff7c1dd9b210d1a0851631eb9d08de65269c6..f8c801096cfe65683af25a8540439cf25236d6cc 100644 (file)
@@ -64,7 +64,7 @@ static void dbus_send_power_supply(int capacity, int charger)
     snprintf(option, sizeof(option), "int32:5 string:\"%d\" string:\"%s\" string:\"Good\" string:\"%d\" string:\"1\"",
             capacity, state, (charger + 1));
 
-    dbus_send(power_device, DBUS_SEND_SYSNOTI, option);
+    dbus_send_signal(power_device, DBUS_SEND_SYSNOTI, option);
 }
 
 static void dbus_send_usb(int on)
index 454f6b16a77ba20fa95fb4a333d21cb453d6c338..faad9cb684ec35c0357acdc57d2e3ac0f9305574 100644 (file)
@@ -85,7 +85,7 @@ static void dbus_send_power_supply(int capacity, int charger)
     sprintf(option, "int32:5 string:\"%d\" string:\"%s\" string:\"Good\" string:\"%d\" string:\"1\"",
             capacity, state, (charger + 1));
 
-    dbus_send(power_device, option);
+    dbus_send_signal(power_device, DBUS_SEND_SYSNOTI, option);
 }
 
 #define DEVICE_CHANGED  "device_changed"