36#define AVRC_SUCCESS AVCT_SUCCESS
37#define AVRC_NO_RESOURCES AVCT_NO_RESOURCES
38#define AVRC_BAD_HANDLE AVCT_BAD_HANDLE
39#define AVRC_PID_IN_USE AVCT_PID_IN_USE
40#define AVRC_NOT_OPEN AVCT_NOT_OPEN
41#define AVRC_MSG_TOO_BIG 5
43#define AVRC_BAD_PARAM 0x11
46#define AVRC_CT_TARGET 1
47#define AVRC_CT_CONTROL 2
48#define AVRC_CT_PASSIVE 4
51#define AVRC_CONN_INT AVCT_INT
52#define AVRC_CONN_ACP AVCT_ACP
58#define AVRC_OPEN_IND_EVT 0
64#define AVRC_CLOSE_IND_EVT 1
68#define AVRC_CONG_IND_EVT 2
72#define AVRC_UNCONG_IND_EVT 3
76#define AVRC_BROWSE_OPEN_IND_EVT 4
82#define AVRC_BROWSE_CLOSE_IND_EVT 5
86#define AVRC_BROWSE_CONG_IND_EVT 6
90#define AVRC_BROWSE_UNCONG_IND_EVT 7
93#define AVRC_SUPF_CT_CAT1 0x0001
94#define AVRC_SUPF_CT_CAT2 0x0002
95#define AVRC_SUPF_CT_CAT3 0x0004
96#define AVRC_SUPF_CT_CAT4 0x0008
97#define AVRC_SUPF_CT_BROWSE 0x0040
99#define AVRC_SUPF_TG_CAT1 0x0001
100#define AVRC_SUPF_TG_CAT2 0x0002
101#define AVRC_SUPF_TG_CAT3 0x0004
102#define AVRC_SUPF_TG_CAT4 0x0008
103#define AVRC_SUPF_TG_APP_SETTINGS 0x0010
104#define AVRC_SUPF_TG_GROUP_NAVI 0x0020
105#define AVRC_SUPF_TG_BROWSE 0x0040
106#define AVRC_SUPF_TG_MULTI_PLAYER 0x0080
108#define AVRC_META_SUCCESS AVRC_SUCCESS
109#define AVRC_META_FAIL AVRC_FAIL
110#define AVRC_METADATA_CMD 0x0000
111#define AVRC_METADATA_RESP 0x0001
137typedef void (tAVRC_FIND_CBACK) (UINT16 status);
142typedef void (tAVRC_CTRL_CBACK) (UINT8 handle, UINT8 event, UINT16 result,
150typedef void (tAVRC_MSG_CBACK) (UINT8 handle, UINT8 label, UINT8 opcode,
155 tAVRC_CTRL_CBACK *p_ctrl_cback;
156 tAVRC_MSG_CBACK *p_msg_cback;
203AVRC_API
extern UINT16 AVRC_AddRecord(UINT16 service_uuid,
char *p_service_name,
204 char *p_provider_name, UINT16 categories, UINT32 sdp_handle);
243AVRC_API
extern UINT16 AVRC_FindService(UINT16 service_uuid, BD_ADDR bd_addr,
291AVRC_API
extern UINT16 AVRC_Open(UINT8 *p_handle,
tAVRC_CONN_CB *p_ccb,
292 BD_ADDR_PTR peer_addr);
312AVRC_API
extern UINT16 AVRC_Close(UINT8 handle);
328AVRC_API
extern UINT16 AVRC_OpenBrowse(UINT8 handle, UINT8 conn_role);
342AVRC_API
extern UINT16 AVRC_CloseBrowse(UINT8 handle);
360AVRC_API
extern UINT16 AVRC_MsgReq (UINT8 handle, UINT8 label, UINT8 ctype,
BT_HDR *p_pkt);
383AVRC_API
extern UINT16 AVRC_UnitCmd(UINT8 handle, UINT8 label);
410AVRC_API
extern UINT16 AVRC_SubCmd(UINT8 handle, UINT8 label, UINT8 page);
436AVRC_API
extern UINT16 AVRC_PassCmd(UINT8 handle, UINT8 label,
tAVRC_MSG_PASS *p_msg);
463AVRC_API
extern UINT16 AVRC_PassRsp(UINT8 handle, UINT8 label,
tAVRC_MSG_PASS *p_msg);
489AVRC_API
extern UINT16 AVRC_VendorCmd(UINT8 handle, UINT8 label,
tAVRC_MSG_VENDOR *p_msg);
517AVRC_API
extern UINT16 AVRC_VendorRsp(UINT8 handle, UINT8 label,
tAVRC_MSG_VENDOR *p_msg);
541AVRC_API
extern UINT8 AVRC_SetTraceLevel (UINT8 new_level);
554AVRC_API
extern void AVRC_Init(
void);
566AVRC_API
extern tAVRC_STS AVRC_ParsCommand (
tAVRC_MSG *p_msg,
tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len);
578AVRC_API
extern tAVRC_STS AVRC_ParsResponse (
tAVRC_MSG *p_msg,
tAVRC_RESPONSE *p_result, UINT8 *p_buf, UINT16 buf_len);
604AVRC_API
extern tAVRC_STS AVRC_BldResponse( UINT8 handle,
tAVRC_RESPONSE *p_rsp,
BT_HDR **pp_pkt);
616AVRC_API
extern BOOLEAN AVRC_IsValidAvcType(UINT8 pdu_id, UINT8 avc_type);
628AVRC_API
extern BOOLEAN AVRC_IsValidPlayerAttr(UINT8 attr);