|
BVCU_Result OnDialogCommand(BVCSP_HDialog hDialog, int iEventCode, BVCSP_DialogParam* pParam)
{
printf(" OnDialogCommand success iEventCode =%d\n",iEventCode);
printf(" OnDialogCommand success IndexMajor =%d\n",pParam->stTarget.iIndexMajor);
bvhDialog=hDialog;
LOGV("bvhDialog=%d",hDialog);
pParam->OnEvent=OnEventDialog;
printf(" OnDialogCommand success end\n");
return BVCU_RESULT_S_OK;
}
void OnEventDialog(BVCSP_HDialog hDialog, int iEventCode, BVCSP_Event_DialogCmd* pParam){
LOGD(" OnEventDialog success iEventCode =%d\n",iEventCode);
LOGD(" OnEventDialog success iResult=%d\n",pParam->iResult);
LOGD(" OnEventDialog success iIndexMajor =%d\n",pParam->pDialogParam->stTarget.iIndexMajor);
if (iEventCode == BVCSP_EVENT_SESSION_OPEN && pParam->iResult==BVCU_RESULT_S_OK){
if(pParam->pDialogParam->stTarget.iIndexMajor==0){
pthread_create(&thr[0], NULL, Dialog_Write, NULL);//在这里开始向通道里写入数据
}
}
}
帮忙分析下什么原因写入数据失败。 |
|