Re: Documentation on when to free structures in/after callbacks

2021-07-30 Thread ajlennon
Thanks for that Denis - that helps me get it much clearer in my head! Cheers, Alex ___ ofono mailing list -- ofono@ofono.org To unsubscribe send an email to ofono-le...@ofono.org

Re: Documentation on when to free structures in/after callbacks

2021-07-30 Thread Denis Kenzior
Hi Alex, On 7/30/21 9:24 AM, ajlen...@dynamicdevices.co.uk wrote: 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,

Re: Documentation on when to free structures in/after callbacks

2021-07-30 Thread ajlennon
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) {

Re: Documentation on when to free structures in/after callbacks

2021-07-30 Thread Denis Kenzior
Hi Alex, On 7/30/21 8:21 AM, ajlen...@dynamicdevices.co.uk wrote: I'm not sure what you mean? What exactly do you think needs freeing? Strange. I am lookinga at the drivers and sometimes unref functions are provided into other functions and sometimes not So you're talking about callbacks

Re: Documentation on when to free structures in/after callbacks

2021-07-30 Thread ajlennon
>I'm not sure what you mean? What exactly do you think needs freeing? Strange. I am lookinga at the drivers and sometimes unref functions are provided into other functions and sometimes not if (g_at_chat_send(nmd->chat, "AT+QENG=\"servingcell\"", qeng_prefix,

Re: Documentation on when to free structures in/after callbacks

2021-07-28 Thread Denis Kenzior
Hi Alex, On 7/28/21 11:32 AM, ajlen...@dynamicdevices.co.uk wrote: Hi all, I'm trying to write a driver for Quectel modems as I need some specific bits and bobs - mainly signal strengths for the serving cell and neighbourhood cells I can't quite get my head around when I am supposed to

Documentation on when to free structures in/after callbacks

2021-07-28 Thread ajlennon
Hi all, I'm trying to write a driver for Quectel modems as I need some specific bits and bobs - mainly signal strengths for the serving cell and neighbourhood cells I can't quite get my head around when I am supposed to provide free() functions to to calls and when to free in callbacks on