Access to user data from the on_ice_complete callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 17, 2008 at 10:11 AM, Gerhardus Muller <gerhardus1 at gmail.com>
wrote:

> Hi
>
> I would like to know if there is a more direct way of retrieving
> user_data in the on_ice_complete callback (in my particular case it
> would be a this pointer to the object owning it). The pjsua code
> implements a for loop through all the calls in the calls array.
>
>
Yeah (and I'm so ashamed that you found it!).



> Theoretically it should be possible to retrieve the associated stream
> and from there user data but this does not seem possible as the struct
> transport_ice is only defined in pjmedia/src/pjmedia/transport_ice.c
> and therefore not publicly visible. There is also no accessor function
> in this file / class and I do not want to modify library code.
>
> Any insight would be appreciated including 'no solution'  :).
>
>
My favorite answer is 'patch needed, contribution is welcome'.

I think the solution should be trivial, just need to add "void *app_data"
member in struct pjmedia_transport. Transports will never touch this field,
so it's up to application to use it. Will add this ASAP.

Cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080717/8e90ec8a/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux