]> git.proxmox.com Git - mirror_qemu.git/commit - io/Makefile.objs
io: add helper module for creating watches on FDs
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 3 Mar 2015 12:59:16 +0000 (12:59 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 18 Dec 2015 12:18:05 +0000 (12:18 +0000)
commit1c809fa01df0c638417480dfd446415615bfd217
tree445e90c439c67a7c9b25f376e295edfcee2c0fbe
parent666a3af9c858c22d254e545de3ffc3fb197a3187
io: add helper module for creating watches on FDs

A number of the channel implementations will require the
ability to create watches on file descriptors / sockets.
To avoid duplicating this code in each channel, provide a
helper API for dealing with file descriptor watches.

There are two watch implementations provided. The first
is useful for bi-directional file descriptors such as
sockets, regular files, character devices, etc. The
second works with a pair of unidirectional file descriptors
such as pipes.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/io/channel-watch.h [new file with mode: 0644]
io/Makefile.objs
io/channel-watch.c [new file with mode: 0644]