mirror of
https://gitlab.com/ubports/development/core/hybris-support/ofono-binder-plugin-ext-qti
synced 2025-11-03 20:45:53 +08:00
ims: Only call complete if it exsists
This commit is contained in:
@@ -127,8 +127,10 @@ qti_ims_result_request_complete(
|
||||
{
|
||||
QtiImsResultRequest* req = user_data;
|
||||
|
||||
req->complete(req->ext, result ? BINDER_EXT_IMS_RESULT_ERROR :
|
||||
BINDER_EXT_IMS_RESULT_OK, req->user_data);
|
||||
if (req->complete) {
|
||||
req->complete(req->ext, result ? BINDER_EXT_IMS_RESULT_ERROR :
|
||||
BINDER_EXT_IMS_RESULT_OK, req->user_data);
|
||||
}
|
||||
}
|
||||
|
||||
static
|
||||
|
||||
@@ -43,6 +43,9 @@
|
||||
|
||||
typedef struct qti_radio_ext QtiRadioExt;
|
||||
|
||||
typedef void (*QtiImsGetRegStatusFunc)(
|
||||
BinderExtIms* ext, void* user_data);
|
||||
|
||||
BinderExtIms*
|
||||
qti_ims_new(
|
||||
const char* slot,
|
||||
|
||||
Reference in New Issue
Block a user