|
From: | jehan monnier |
Subject: | Re: [Linphone-developers] liblinphone API |
Date: | Wed, 17 Feb 2010 15:59:27 +0100 |
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?
_______________________________________________
Linphone-developers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-developers
[Prev in Thread] | Current Thread | [Next in Thread] |