[vdr] understanding xinelibout code (or maybe any plugin code)

Alex Betis alex.betis at gmail.com
Wed Jan 21 21:17:36 CET 2009

Hi all,

Anybody here is familiar with xinilibout code?
Or maybe it's a generic concept of plugins that I don't really know...

What is assigned to "input_vdr->f.input_control"? I couldn't find
initialization place.
Don't know if it makes a different, but vdr-sxfe is run with --lirc switch.
I hate pointers to functions!

static void process_xine_keypress(input_plugin_t *input,
                  const char *map, const char *key,
                  int repeat, int release)
  /* from UI --> input plugin --> vdr */
  LOGDBG("Keypress: %s %s %s %s",
     map, key, repeat?"Repeat":"", release?"Release":"");

  if(input) {
    vdr_input_plugin_t *input_vdr = (vdr_input_plugin_t *)input;
    if(input_vdr->f.input_control) {
      input_vdr->f.input_control(input, map, key, repeat, release);
    } else {
      LOGMSG("Keypress --- NO HANDLER SET");
  } else {
    LOGMSG("Keypress --- NO PLUGIN FOUND");

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/vdr/attachments/20090121/9479d05a/attachment.htm 

More information about the vdr mailing list