PJSIP on Visual C++

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

 



It will be problem if on_reg_state is a normal function of a class because
you can't call this function without object instance.

I use this way.

void on_reg_state_wrapper(...)
{
      XXClass::Instance()->on_reg_state(...);
}

cfg.cb.on_reg_state = &on_reg_state_wrapper;

On Tue, Jan 13, 2009 at 3:15 PM, Joseph Maiquez <josephmaiquez at yahoo.com>wrote:

> Hi benny,
>
> How can I set the value of cfg.cb.on_reg_state and other callback?
>
> This is what I did
>
> cfg.cb.on_reg_state = &on_reg_state;
>
> i declare on_reg_state as function of a class
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090113/9c41163e/attachment-0001.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