Home | History | Annotate | Download | only in jni

Lines Matching refs:pCallbackData

76 bool nfc_cb_data_init(nfc_jni_callback_data* pCallbackData, void* pContext)
79 if(sem_init(&pCallbackData->sem, 0, 0) == -1)
86 pCallbackData->status = NFCSTATUS_FAILED;
89 pCallbackData->pContext = pContext;
92 if (!listAdd(&nfc_jni_get_monitor()->sem_list, pCallbackData))
100 void nfc_cb_data_deinit(nfc_jni_callback_data* pCallbackData)
103 if (sem_destroy(&pCallbackData->sem))
109 if (!listRemove(&nfc_jni_get_monitor()->sem_list, pCallbackData))
118 nfc_jni_callback_data* pCallbackData;
120 while (listGetAndRemoveNext(&nfc_jni_get_monitor()->sem_list, (void**)&pCallbackData))
122 pCallbackData->status = NFCSTATUS_FAILED;
123 sem_post(&pCallbackData->sem);