screen_register_event()
Graphics and Screen4.0 (8.x)Screen Graphics Subsystem Developer's GuideAPIProgrammingUtilities
Register a sigevent for use with asynchronous notifications
Synopsis:
#include <screen/screen.h>int screen_register_event(screen_context_t ctx,
struct sigevent *event)Arguments:
- ctx
- The context which is registering the
sigeventand will later be used for screen_notify(). - event
- The
sigeventwhich needs to be registered.
Library:
libscreenDescription:
Function Type: Immediate Execution
This function registers a sigevent with Screen so that screen_notify() can be used with the event; it's associated with the preprocessor definition screen_register_event.
Returns:
0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).
Page updated:
