qvm_callback_pulse()

Fill in a sigevent structure to call a routine when the event gets delivered

Synopsis:

#include <qvm/utils.h>
void qvm_callback_pulse(qvm_callback_func_t *cbfp,
                        struct qvm_callback *cbp,
                        int priority,
                        struct sigevent *ev,
                        int coid)

Arguments:

cbfp
The callback function pointer to be invoked at event delivery.
cbp
The callback pointer to be passed to the callback function.
priority
The priority for the pulse.
ev
A pointer to the sigevent structure to be filled in.
coid
The server connection ID. Specify -1 for any server or QMRE_UNREG_EVENT.

Library:

Provided by qvm; no external library is required.

Description:

Only one pointer is available for a pulse, but two pointers are needed:
  • the first pointer points the structure
  • the second pointer is in the structure