Fix plugin not loading error 23/219223/2 submit/tizen/20200108.063031
authorSudipto <sudipto.bal@samsung.com>
Tue, 3 Dec 2019 10:53:25 +0000 (16:23 +0530)
committerSudipto <sudipto.bal@samsung.com>
Tue, 3 Dec 2019 12:01:07 +0000 (17:31 +0530)
Change-Id: I6cf144b6e315f66802892327c85efba38778208f
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
plugin/bm-bt-plugin/src/bm_bt_plugin.c

index 56a038e..50f4de5 100644 (file)
@@ -116,6 +116,12 @@ int get_feature_data(bm_data_h *handle, bm_plugin_data_type_e type)
        bluetooth_record->scanTime = battery_data.session_scan_time;
        bluetooth_record->connectedTime = battery_data.session_connected_time;
 
+       _I("BT usage data for battery monitor");
+       _I("startTime: %ld", bluetooth_record->startTime);
+       _I("stopTime: %ld", bluetooth_record->stopTime);
+       _I("scanTime: %u", bluetooth_record->scanTime);
+       _I("connectedTime: %u", bluetooth_record->connectedTime);
+
        /* Getting app data */
        GSList *app_list = NULL, *l = NULL;
        app_list = bluetooth_record->atm_list;
@@ -177,3 +183,5 @@ int plugin_deinit(void)
        EXIT;
        return 0;
 }
+
+BM_PLUGIN_ADD(BM_PLUGIN_ID_BLE, NAME, AUTHOR, VERSION, plugin_init, plugin_deinit);