Thanks Denis that helps. I see I need to learn a bit and get my head around
this.
For example I find this really confusing:
cbd = req_cb_data_ref(cbd);
if (g_at_chat_send(nmd->chat, "AT+CESQ", cesq_prefix,
cesq_cb, cbd, req_cb_data_unref) == 0) {
CALLBACK_WITH_FAILURE(cbd->cb, cbd->data);
req_cb_data_unref(cbd);
}
This does some kind of allocation - ok
This makes the call - ok fine
Provides the unref function into the call - ok so far
But then I'm thinking if the call _succeeds_ our unref gets called?
But if our call _fails_ then we have to do the unref ourselves?
_______________________________________________
ofono mailing list -- [email protected]
To unsubscribe send an email to [email protected]