how or where is vlc_entry__m initialized?

This forum is about all development around libVLC.
busybeeCS
Blank Cone
Blank Cone
Posts: 37
Joined: 24 Aug 2013 08:06

how or where is vlc_entry__m initialized?

Postby busybeeCS » 27 Aug 2013 03:53

there is a continuous calling in vlc:
module_Init->module_InitStatic(vlc_entry__main)->vlc_plugin_describe (vlc_plugin_cb entry)->entry (vlc_plugin_setter, &module)

vlc_entry__main is of the most importance. so far as i know,the variable vlc_entry__main is a function defined in the header file modules.h.
but i dont find where is it initialized. if not initialized, the calling entry (vlc_plugin_setter, &module),which in fact is vlc_entry__main (vlc_plugin_setter, &module) is obviously wrong.
can anybody tell me how or where is it initialized?i will be thankful.

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

Re: how or where is vlc_entry__m initialized?

Postby Rémi Denis-Courmont » 27 Aug 2013 18:03

vlc_entry__main() is defined in src/libvlc-module.c, but it's all macros.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

busybeeCS
Blank Cone
Blank Cone
Posts: 37
Joined: 24 Aug 2013 08:06

Re: how or where is vlc_entry__m initialized?

Postby busybeeCS » 07 Sep 2013 05:59

vlc_entry__main() is defined in src/libvlc-module.c, but it's all macros.
hi Rémi Denis-Courmont,thank u very much for your reply.
now i know that file libvlc-module.c uses macro vlc_module_begin which is defined in file vlc_plugin.h,by expanding vlc_module_begin,we can see the definition of function vlc_entry_main.
the function's prefixes EXTERN_SYMBOL and CDECL_SYMBOL are both empty, that is to say, libvlc-module.c just defines vlc_entry_main.
in the file src/modules/modules.h, vlc_enrty_main is declared like this: int vlc_entry__main (int (*)(void *, void *, int, ...), void *);
my question is that is the function vlc_entry__main in libvlc-module.c equals to the one in modules.h? if so, how to explain the permission?

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

Re: how or where is vlc_entry__m initialized?

Postby Rémi Denis-Courmont » 07 Sep 2013 08:24

I don't understand the question.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

busybeeCS
Blank Cone
Blank Cone
Posts: 37
Joined: 24 Aug 2013 08:06

Re: how or where is vlc_entry__m initialized?

Postby busybeeCS » 07 Sep 2013 12:31

I don't understand the question.
sry for my unclear expression.
i mean vlc _entry_main is defined in src/libvlc-module.c, declared in src/modules/modules.h.
then how does the declaration know the function is defined in src/libvlc-module.c, as the declaration appears without prefix extern indicating the function is defined in other files.

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

Re: how or where is vlc_entry__m initialized?

Postby Rémi Denis-Courmont » 13 Sep 2013 18:14

Your question makes no sense at all.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

busybeeCS
Blank Cone
Blank Cone
Posts: 37
Joined: 24 Aug 2013 08:06

Re: how or where is vlc_entry__m initialized?

Postby busybeeCS » 17 Sep 2013 11:18

Your question makes no sense at all.
i dont see so,if u think it makes no sense, why cannot u explain it cleanly to me

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: how or where is vlc_entry__m initialized?

Postby Jean-Baptiste Kempf » 17 Sep 2013 14:35

Seriously, it's very hard to understand your question.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests