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

*nix specific usage questions
wssoh85
Blank Cone
Blank Cone
Posts: 20
Joined: 20 Dec 2008 10:52

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

Postby wssoh85 » 11 Jan 2009 16:18

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.

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

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

Postby Rémi Denis-Courmont » 11 Jan 2009 18:02

This is not possible. You cannot call plugins from the core.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

wssoh85
Blank Cone
Blank Cone
Posts: 20
Joined: 20 Dec 2008 10:52

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

Postby wssoh85 » 12 Jan 2009 13:06

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?

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

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

Postby Rémi Denis-Courmont » 13 Jan 2009 22:12

Technically, it would work.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests