[vlc-commits] Export vlc_str2keycode()
Rémi Denis-Courmont
git at videolan.org
Sat Feb 19 15:13:50 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 19 15:57:55 2011 +0200| [325436b1fe781f3df9d5551d4b7369eaa56b6f05] | committer: Rémi Denis-Courmont
Export vlc_str2keycode()
This is needed for global hotkeys. In the best of worlds, I think the
global hotkey plugins would directly get the list of keycodes to grab
using a dedicated plugin type. This would avoid the need to replicate
hotkey configuration parsing. But it would need some more work.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=325436b1fe781f3df9d5551d4b7369eaa56b6f05
---
include/vlc_keys.h | 1 +
src/config/keys.c | 1 -
src/libvlccore.sym | 1 +
3 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/vlc_keys.h b/include/vlc_keys.h
index c6a1d0e..8ec6366 100644
--- a/include/vlc_keys.h
+++ b/include/vlc_keys.h
@@ -87,6 +87,7 @@
#define KEY_MOUSEWHEELRIGHT 0x00F30000
VLC_EXPORT( char *, vlc_keycode2str, (uint_fast32_t i_key) ) LIBVLC_USED;
+VLC_EXPORT( uint_fast32_t, vlc_str2keycode, (const char *str) ) LIBVLC_USED;
typedef enum vlc_key {
ACTIONID_NONE = 0,
diff --git a/src/config/keys.c b/src/config/keys.c
index fc61156..b0191b1 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -150,7 +150,6 @@ static char *utf8_cp (uint_fast32_t cp, char *buf)
* Parse a human-readable string representation of a VLC key code.
* @return a VLC key code, or KEY_UNSET on failure.
*/
-static
uint_fast32_t vlc_str2keycode (const char *name)
{
uint_fast32_t mods = 0;
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index cb1b50c..45c4e8e 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -681,3 +681,4 @@ xml_ReaderCreate
xml_ReaderDelete
xml_ReaderReset
vlc_keycode2str
+vlc_str2keycode
More information about the vlc-commits
mailing list