return RPC_PORT_ERROR_INVALID_PARAMETER;
}
+ g_rec_mutex_lock(&proxy->mutex);
found = g_list_find(proxy->delegates, h);
if (found == nullptr) {
_E("Invalid parameter");
+ g_rec_mutex_unlock(&proxy->mutex);
return RPC_PORT_ERROR_INVALID_PARAMETER;
}
proxy->delegates = g_list_remove_link(proxy->delegates, found);
<PREFIX>_<NAME>_<DELEGATE_NAME>_destroy(h);
g_list_free(found);
+ g_rec_mutex_unlock(&proxy->mutex);
return RPC_PORT_ERROR_NONE;
}
return;
}
+ g_rec_mutex_lock(&h->mutex);
__<PREFIX>_<NAME>_process_received_event(&h->delegates, parcel);
+ g_rec_mutex_unlock(&h->mutex);
rpc_port_parcel_destroy(parcel);
}