summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-05-17 17:07:13 +0000
committerphintuka <phintuka>2007-05-17 17:07:13 +0000
commit145536e96c83a590a41aaf919d4d35abcbadbf38 (patch)
tree7746080a14901049a983d09caa31bc9e081478ce
parentc2726d287fb2efe7e670b1a28c55912d6890324d (diff)
downloadxineliboutput-145536e96c83a590a41aaf919d4d35abcbadbf38.tar.gz
xineliboutput-145536e96c83a590a41aaf919d4d35abcbadbf38.tar.bz2
(no functional changes)
-rw-r--r--frontend_local.c51
1 files changed, 24 insertions, 27 deletions
diff --git a/frontend_local.c b/frontend_local.c
index c3652a06..8db57ffe 100644
--- a/frontend_local.c
+++ b/frontend_local.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend_local.c,v 1.25 2007-05-17 17:04:20 phintuka Exp $
+ * $Id: frontend_local.c,v 1.26 2007-05-17 17:07:13 phintuka Exp $
*
*/
@@ -46,6 +46,29 @@ class cRwLockBlock
#define LOCK_FE cRwLockBlock(m_feLock, false)
#define LOCK_FE_WR cRwLockBlock(m_feLock, true)
+//----------------- keyboard control handler (C callback) --------------------
+
+extern "C" {
+ static void keypress_handler(const char *keymap, const char *key)
+ {
+ if(!strncmp("INFO ", keymap, 5)) {
+
+ cXinelibThread::InfoHandler(keymap+5);
+
+ } else if(!xc.use_x_keyboard || !key) {
+
+ /* Only X11 key events came this way in local mode.
+ Keyboard is handled by vdr. */
+ LOGMSG("keypress_handler(%s): X11 Keyboard disabled in config", key);
+
+ } else {
+
+ cXinelibThread::KeypressHandler(keymap, key, false, false);
+
+ }
+ }
+};
+
//----------------------------- cXinelibLocal --------------------------------
cXinelibLocal::cXinelibLocal(const char *frontend_name) :
@@ -210,7 +233,6 @@ int cXinelibLocal::Xine_Control(const char *cmd)
LOGMSG("Xine_Control: message too long ! (%s)", buf);
return 0;
}
- //buf[sizeof(buf)-1] = 0;
LOCK_FE;
if(fe)
return fe->xine_control(fe, (char*)buf);
@@ -219,31 +241,6 @@ int cXinelibLocal::Xine_Control(const char *cmd)
}
//
-// keyboard control handler (C callback)
-//
-
-extern "C" {
- static void keypress_handler(const char *keymap, const char *key)
- {
- if(!strncmp("INFO ", keymap, 5)) {
-
- cXinelibThread::InfoHandler(keymap+5);
-
- } else if(!xc.use_x_keyboard || !key) {
-
- /* Only X11 key events came this way in local mode.
- Keyboard is handled by vdr. */
- LOGMSG("keypress_handler(%s): X11 Keyboard disabled in config", key);
-
- } else {
-
- cXinelibThread::KeypressHandler(keymap, key, false, false);
-
- }
- }
-};
-
-//
// Frontend loader
//