qb_loop_signal_add3
Add a signal job.
Usage
#include <qb/qbloop.h>
int32_t qb_loop_signal_add(
qb_loop_t *l, /* pointer to the loop instance */
enum qb_loop_priority p, /* the priority */
int32_t sig, /* (SIGHUP or SIGINT) etc .... */
void *data, /* user data passed into the dispatch function */
qb_loop_signal_dispatch_fn dispatch_fn, /* callback function */
qb_loop_signal_handle *handle /* (out) a reference to the signal job */
);
Params
l pointer to the loop instance
p the priority
sig (SIGHUP or SIGINT) etc ....
data user data passed into the dispatch function
dispatch_fn callback function
handle (out) a reference to the signal job
Overview
Get a callback on this signal (not in the context of the signal).
Structures
enum qb_loop_priority {
QB_LOOP_LOW;
QB_LOOP_MED;
QB_LOOP_HIGH;
};
Return value
status (0 == ok, -errno == failure)
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.