3 * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
5 * Contact: Sudipto Bal <sudipto.bal@samsung.com>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #ifndef _BT_SERVICE_BATTERY_MONITOR_H_
22 #define _BT_SERVICE_BATTERY_MONITOR_H_
29 #include <oal-event.h>
31 #include <sys/types.h>
39 } _bt_battery_app_data_t;
42 time_t session_start_time;
43 time_t session_end_time;
47 uint32_t session_connected_time;
48 uint32_t session_scan_time;
59 bt_bm_scan_type_e type;
68 } data_transaction_type_e;
70 void _bt_bm_event_handler(gpointer data);
72 int _bt_bm_read_data(_bt_battery_data_t *data);
74 void _bt_bm_add_transaction_details(uid_t uid, pid_t pid, unsigned int size, data_transaction_type_e type);
76 void _bt_bm_add_scan_app(bt_bm_scan_type_e type, uid_t uid, pid_t pid);
78 void _bt_bm_remove_scan_app(bt_bm_scan_type_e type, uid_t uid, pid_t pid);
80 void _bt_start_connect_time(void);
82 void _bt_stop_connect_time(void);
86 #endif /* __cplusplus */
87 #endif /* _BT_SERVICE_BATTERY_MONITOR_H_ */