Page 1 of 1

how to call a function in hotkey.c from libvlc.c?

Posted: 11 Jan 2009 16:18
by wssoh85
Hi, everyone. I want do small modify to the libvlc.c code so that it able to "press" the F8 bookmark function in /vlc-0.8.6f/modules/control/hotkeys file when the vlc program start. Is this able to be done? Can anyone teach me how to call any function in modules/control/hotkeys when the vlc program start run?

ANy help is appreciate.
thank you.

Re: how to call a function in hotkey.c from libvlc.c?

Posted: 11 Jan 2009 18:02
by Rémi Denis-Courmont
This is not possible. You cannot call plugins from the core.

Re: how to call a function in hotkey.c from libvlc.c?

Posted: 12 Jan 2009 13:06
by wssoh85
Thanks for your reply. Then is there other suitable place to insert my code so that it will run during startup? I found the i can make use of the Run() method in the hotkeys.c file. Is it suitable to do that?

Re: how to call a function in hotkey.c from libvlc.c?

Posted: 13 Jan 2009 22:12
by Rémi Denis-Courmont
Technically, it would work.