Em 30-05-2011 03:34, Hans Verkuil escreveu: > On Sunday, May 29, 2011 14:11:05 Mauro Carvalho Chehab wrote: >> In other words, for event/input devices, if someone needs to have more than >> one IR, each directed to a different set of windows/applications, he will >> need to manually configure what he needs. So, grouping RC with video apps >> doesn't make sense. > > I'm not so sure about that. Wouldn't it be at least useful that an application > can discover that an IR exists? That may exist elsewhere already, though. I'm > no IR expert. ir-keytable does that. We may move part of its code to a library later. >>>> >>>> All discovered devices can be displayed by calling: >>>> >>>> void display_media_devices(void *opaque); >>> >>> This would be much more useful if a callback is provided. >> >> I can't see any usecase for a callback. Can you explain it better? > > Right now display_media_devices outputs to stdout. But what if the apps wants > to output to stderr? To some special console? To a GUI? Good point. If all userspace wants is to redirect it, fdup() may be used. Another option would be to just pass the file descriptor as a parameter. Passing a printf-like callback may require some work. I'm not sure if this is the proper way for doing it. Could you please propose a patch for it? Thanks, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html