On Wed, Dec 26, 2012 at 12:21:46PM -0500, David Mansfield wrote: > I have a headset (microsoft lifechat lx-3000) with an "answer" > button on the cord, which I wanted to have work with linphone. > > Because of reasons like: > > * answer button press doesn't generate an actual X keyboard event > (but is visible through /dev/hidrawX) > * linphone is running on local desktop, but I'm working on a > fullscreen remote desktop and all keyboard events get sent there > > I decided to use a simple Unix signal IPC to hook into the linphone > gtk main loop, as described in: > > http://askra.de/software/gtk-signals/a2955.html > > The implementation is basically: > > * create a "self-pipe" during initialization > * create GIOChannel on "read" end of pipe, and add a watch to main loop > * unix signal handler writes "message" into pipe
Maybe the same can be achieved using g_unix_signal_add()[0]. It should take care of most of the things you do manually in the patch. Thierry [0]: http://developer.gnome.org/glib/2.34/glib-UNIX-specific-utilities-and-integration.html#g-unix-signal-add
pgpr9B8rPIDCB.pgp
Description: PGP signature
_______________________________________________ Linphone-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/linphone-users
