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

This forum is about all development around libVLC.
ravi_andhra
Blank Cone
Blank Cone
Posts: 12
Joined: 12 May 2008 09:42

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

Postby ravi_andhra » 05 Mar 2009 14:08

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 05 Mar 2009 17:03

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ravi_andhra
Blank Cone
Blank Cone
Posts: 12
Joined: 12 May 2008 09:42

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

Postby ravi_andhra » 11 Jul 2009 07:38

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 11 Jul 2009 12:55

The symbol list is used by libtool to determine which extern symbols are exported.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests