2008/12/9 Aleksander Morgado <[EMAIL PROTECTED]>: > I see that nta_leg_magic() is defined like this: > > nta_leg_magic_t * nta_leg_magic (nta_leg_t const *leg, nta_request_f > *callback) > Return application context for the leg. > > But what's the purpose of including the callback function in the > request? Shouldn't it be enough with passing just the leg pointer to > get the leg's context?
The callback is there to provide more type-safeness for legs, different users of legs can make difference between different types of legs (and the associated magic user-data) by using different callbacks. -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel