Skip to content

Commit a8eb865

Browse files
author
chaotaoyang
committed
[int][new][hfp] hfp call status change
Project: Bluetooth redmine: #id, REDMINE-10095 ext-redmine: bug|feat#id [Description in detail] Affected branch: [master] Change-Id: Id60e4637917d43c25018b33c0a5e04077bce7973
1 parent 912310a commit a8eb865

File tree

9 files changed

+1018
-85
lines changed

9 files changed

+1018
-85
lines changed

Kconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ menu "Bluetooth"
193193
bool "Enable BT pan finsh"
194194
depends on BT_FINSH && RT_USING_LWIP
195195
default n
196+
config CFG_HFP_CALL_STATUS
197+
bool "Enable hfp call status"
198+
default n
196199

197200
config BT_FINSH
198201
bool "Enable BT finsh"
@@ -220,7 +223,7 @@ menu "Bluetooth"
220223
config CFG_HFP_HF
221224
bool "Enable HandsFree HF"
222225
depends on BT_PROFILE_CUSTOMIZE
223-
default n
226+
default n
224227

225228
config CFG_HFP_AG
226229
bool "Enable HandsFree AG"

include/hfp_call_service.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#ifndef _HFP_CALL_SERVICE_H_
2+
#define _HFP_CALL_SERVICE_H_
3+
4+
#ifdef CFG_HFP_CALL_STATUS
5+
#include <stdint.h>
6+
7+
#ifdef __cplusplus
8+
extern "C" {
9+
#endif
10+
11+
typedef int (*hf_call_notify_func_t)(uint16_t profile_channel, uint8_t callstate);
12+
int hfp_call_status_register_callback(hf_call_notify_func_t cb);
13+
int hfp_call_status_unregister_callback(void);
14+
15+
#ifdef __cplusplus
16+
}
17+
#endif
18+
#endif
19+
#endif

service/bt/bt_call/SConscript

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from building import *
2+
3+
cwd = GetCurrentDir()
4+
CPPPATH = [cwd]
5+
6+
src = Glob('*.c')
7+
group = DefineGroup('bt', src, depend = ['BT_FINSH'], CPPPATH = CPPPATH)
8+
9+
Return('group')

0 commit comments

Comments
 (0)