Skip to content
Snippets Groups Projects
  • Daniel P. Berrangé's avatar
    1c809fa0
    io: add helper module for creating watches on FDs · 1c809fa0
    Daniel P. Berrangé authored
    
    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: default avatarDaniel P. Berrange <berrange@redhat.com>
    1c809fa0
    History
    io: add helper module for creating watches on FDs
    Daniel P. Berrangé authored
    
    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: default avatarDaniel P. Berrange <berrange@redhat.com>
Makefile.objs 49 B
io-obj-y = channel.o
io-obj-y += channel-watch.o