I've got lirc set up well on 2.6, and it's working great, thanks guys!
Is it possible for an application to call lirc_init() more than once?
I'm using xmms, with the lirc-xmms and xmms-alarm plugins, and to control
the alarm with the remote, I copied the code from lirc-xmms into the
alarm, so I can control the time it's set for and whether it'll go off.
However, only one plugin that accesses lirc can be active at a time so
it's either the alarm with only basic BACK/FWD etc, or the lirc plugin
without control of the alarm. I tried changing lirc_init() to accept
calls twice from the same app, but then the lirc_input_callback() in one
of the plugins gets called continuously so I don't know whats going on or
how it's meant to work.
To get the functionality of both plugins, I could just merge them into a
new xmms-lirc-alarm (already partially done), or maybe export an alarm api
that can be used by lirc-xmms (plugins would plugin to each other),
similar to the way xmms exports an api used by the plugins. Does anyone
have any ideas for me? Would it be worth creating xmms-lirc-alarm as a
patch to xmms-alarm, and try getting that accepted?