]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel: Remove old epoll support and fixed max number of file descriptors.
authorJoshua Colp <jcolp@digium.com>
Wed, 8 Mar 2017 13:24:46 +0000 (13:24 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 27 Mar 2017 19:54:44 +0000 (19:54 +0000)
commit5d938045d465d66e28bb49816c482a8b68f99342
tree50b25c29fc199a66c246c95871b492e242a68c7a
parentf5603cb1ece5001d1288004c9bc6ed51448deb81
channel: Remove old epoll support and fixed max number of file descriptors.

This change removes the old epoll support which has not been used or
maintained in quite some time.

The fixed number of file descriptors on a channel has also been removed.
File descriptors are now contained in a growable vector. This can be
used like before by specifying a specific position to store a file
descriptor at or using a new API call, ast_channel_fd_add, which adds
a file descriptor to the channel and returns its position.

Tests have been added which cover the growing behavior of the vector
and the new API call.

ASTERISK-26885

Change-Id: I1a754b506c009b83dfdeeb08c2d2815db30ef928
apps/app_dial.c
apps/app_queue.c
include/asterisk/channel.h
main/channel.c
main/channel_internal_api.c
main/dial.c
tests/test_channel.c [new file with mode: 0644]