linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] liblinphone API


From: Matthias Berndt
Subject: [Linphone-developers] liblinphone API
Date: Tue, 16 Feb 2010 20:03:53 +0100
User-agent: KMail/1.12.4 (Linux/2.6.32-trunk-686; KDE/4.3.4; i686; ; )

Hi, 

first of all i'd like to say that i think that linphone is a great application. 
Of all the SIP VoIP programs i've tried linphone is the only one that actually 
worked for me. 

That said, i don't like the way that liblinphone interacts with the 
application. 
One needs to call linphone_core_iterate regularly, and ltrace shows me that 
this 
is done dozens of time per second in the GTK+ frontend. This wastes CPU time 
and 
energy. 

I think that this problem can be solved with system calls like select or poll. 
One could add additional callbacks such as these to the _LinphoneVTable 
structure:
void (*add_pollable_fd)(struct _LinphoneCore *lc, int fd, short events);
void (*remove_pollable_fd)(struct _LinphoneCore *lc, int fd);
where fd is a file descriptor and events is an ORed combination of POLLIN, 
POLLOUT etc. This would allow liblinphone to tell the application about the 
file 
descriptors it is interested in. The application can then use poll, select etc. 
with these file descriptors and call linphone_core_iterate only when necessary. 

What do you think about the idea? 




reply via email to

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