• Keith Packard's avatar
    os: Add NotifyFd interfaces · 86110d6e
    Keith Packard authored
     Backported from X.org:
    
     commit 0c41b7af4ab0c8d22b88f201293f59524d1e7317
     Author: Keith Packard <keithp@keithp.com>
     Date:   Wed Nov 11 22:02:02 2015 -0800
    
        os: Add NotifyFd interfaces
    
        This provides a callback-based interface to monitor file
        descriptors beyond the usual client and device interfaces.
    
        Modules within the server using file descriptors for reading and/or
        writing can call
    
            Bool SetNotifyFd(int fd, NotifyFdProcPtr notify_fd, int mask, void *data);
    
        mask can be any combination of X_NOTIFY_READ and X_NOTIFY_WRITE.
    
        When 'fd' becomes readable or writable, the notify_fd function will be
        called with the 'fd', the ready conditions and 'data' values as arguments,
    
        When the module no longer needs to monitor the fd, it will call
    
            void RemoveNotifyFd(int fd);
    
        RemoveNotifyFd may be called from the notify function.
    Reviewed-by: 's avatarAdam Jackson <ajax@redhat.com>
    Signed-off-by: 's avatarKeith Packard <keithp@keithp.com>
    Backported-to-NX-by: 's avatarMike Gabriel <mike.gabriel@das-netzwerkteam.de>
    86110d6e
Name
Last commit
Last update
bin Loading commit data...
debian Loading commit data...
doc Loading commit data...
etc Loading commit data...
nx-X11 Loading commit data...
nxcomp Loading commit data...
nxcompshad Loading commit data...
nxproxy Loading commit data...
testscripts Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
LICENSE Loading commit data...
LICENSE.nxcomp Loading commit data...
Makefile Loading commit data...
README.NX-development Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
fix-patch-whitespace Loading commit data...
make-changelog.sh Loading commit data...
nx-libs.spec Loading commit data...
regenerate-symbol-docs.sh Loading commit data...
replace.sh Loading commit data...
roll-tarballs.sh Loading commit data...
version.sh Loading commit data...