• P
    fdstream: Add internal callback on stream close · 0c4bfdda
    Peter Krempa 提交于
    This patch adds another callback to a FDstream object. The original
    callback is used by the daemon stream driver to handle events.
    
    This callback is called if and only if the stream is about to be closed.
    This might be used to handle cleanup steps after a fdstream exits. This
    will be used later on in ensuring mutually exclusive access to consoles.
    
    * src/fdstream.c:
            - emit the callback, when stream is being closed
            - add data structures needed to handle the callback
            - add function to register callback
    * src/fdstream.h:
            - define function prototypes for the callback
    0c4bfdda
fdstream.h 2.2 KB