linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] [PATCH] answer call on unix SIGUSR1


From: Thierry Reding
Subject: Re: [Linphone-users] [PATCH] answer call on unix SIGUSR1
Date: Sat, 29 Dec 2012 10:40:03 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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

Attachment: pgpYe0R_lV7yd.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]