On date Thursday 2009-03-05 12:34:57 +0000, gilles Djomo Sawa phoned this:
> Hello,
> i've tried to write a small code for a server registration and an
> authentication. I have 2 files(*.h and *.cpp) and in these files i
> have initialized my callback function. My questions are: Can be the
> callback in an another file that the <<main>> function?
You can using the extern keyword for that. Example:
main.c:
// declaration
extern void callback(...);
callback.c:
// definition
void callback(...) { ... };
> After that i implemented header and source files, how can i use nua
> or nta to test my programm? i get also some conversion problem with
> the callback function. (conversion in callback_f is not possible)!
> best regards
Have a look at the sofsip_cli implementation, that's a relatively
simple application meant to show how to use libsofia-sip.
Regards.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel