Page 1 of 1

Interface between network/httpd.c and modules/misc/rtsp.c

Posted: 05 Mar 2009 14:08
by ravi_andhra
Hi,
If i want to write a new function which will be used in network/httpd.c and modules/misc/rtsp.c and it's actual implementation is present in network/httpd.c
Can any one help me the way to access any new function implemented in the file network/httpd.c in file modules/misc/rtsp.c
and how this VLC_EXPORT will work?

Thanks in advance,
Ravi

Re: Interface between network/httpd.c and modules/misc/rtsp.c

Posted: 05 Mar 2009 17:03
by Rémi Denis-Courmont
VLC_EXPORT takes three parameter: the return type, the function name, and the set of functions parameters.

You need to add the function to src/libvlccore.sym though.

Re: Interface between network/httpd.c and modules/misc/rtsp.c

Posted: 11 Jul 2009 07:38
by ravi_andhra
Thanks alot for your reply. It was really helpful for me.
So, whatever functions and parameters that I need to declare as extern should be added in src/libvlccore.sym right ?
BTW why we need to add in libvlccore.sym it will search in this file while binding or what?
Could your provide any reference to understand these callback functions?
and one final question is if at all I want to add new RTSP method then what are the files other than modules/misc.rtsp.c and src/network/httpd.c that I need to look into and do the modifications.

Re: Interface between network/httpd.c and modules/misc/rtsp.c

Posted: 11 Jul 2009 12:55
by Rémi Denis-Courmont
The symbol list is used by libtool to determine which extern symbols are exported.