1QB_LOOP_SIGNAL_ADD(3)      libqb Programmer's Manual     QB_LOOP_SIGNAL_ADD(3)
2
3
4

NAME

6       qb_loop_signal_add - Add a signal job.
7
8

SYNOPSIS

10       #include <qb/qbloop.h>
11
12       int32_t qb_loop_signal_add(
13           qb_loop_t                  *l, /* pointer to the loop instance */
14           enum qb_loop_priority       p, /* the priority */
15           int32_t                     sig,  /* (SIGHUP or SIGINT) etc .... */
16           void                       *data,   /* user data passed into the dispatch function */
17           qb_loop_signal_dispatch_fn  dispatch_fn,          /* callback function */
18           qb_loop_signal_handle      *handle     /* (out) a reference to the signal job */
19       );
20

PARAMS

22       l           pointer to the loop instance
23
24       p           the priority
25
26       sig         (SIGHUP or SIGINT) etc ....
27
28       data        user data passed into the dispatch function
29
30       dispatch_fn callback function
31
32       handle      (out) a reference to the signal job
33

DESCRIPTION

35       Get a callback on this signal (not in the context of the signal).
36

STRUCTURES

38       enum qb_loop_priority {
39             QB_LOOP_LOW;
40             QB_LOOP_MED;
41             QB_LOOP_HIGH;
42       };
43

RETURN VALUE

45       status (0 == ok, -errno == failure)
46

SEE ALSO

48       qb_loop_job_del(3), qb_loop_run(3), qb_loop_create(3), qb_loop_stop(3),
49       qb_loop_poll_low_fds_event_set(3), qb_loop_signal_del(3),
50       qb_loop_job_add(3), qb_loop_poll_del(3), qb_loop_destroy(3),
51       qb_loop_timer_expire_time_remaining(3), qb_loop_poll_mod(3),
52       qb_loop_signal_mod(3), qb_loop_timer_del(3), qb_loop_timer_add(3),
53       qb_loop_timer_is_running(3), qb_loop_timer_expire_time_get(3),
54       qb_loop_poll_add(3)
55
57       Copyright (C) 2010-2020 Red Hat, Inc.
58
59
60
61LIBQB                             2022-03-23             QB_LOOP_SIGNAL_ADD(3)
Impressum