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

NAME

6       qb_loop_poll_add - Add a poll job to the mainloop.
7

SYNOPSIS

9       #include <qb/qbloop.h>
10
11       int32_t qb_loop_poll_add(
12           qb_loop_t                *l,
13           enum qb_loop_priority     p,
14           int32_t                   fd,
15           int32_t                   events,
16           void                     *data,
17           qb_loop_poll_dispatch_fn  dispatch_fn
18       );
19

PARAMS

21       l           pointer to the loop instance
22
23       p           the priority
24
25       fd          file descriptor.
26
27       events      (POLLIN|POLLOUT) etc ....
28
29       data        user data passed into the dispatch function
30
31       dispatch_fn callback function
32

DESCRIPTION

STRUCTURES

35       enum qb_loop_priority {
36             QB_LOOP_LOW;
37             QB_LOOP_MED;
38             QB_LOOP_HIGH;
39       };
40

RETURN VALUE

42       status (0 == ok, -errno == failure)
43

NOTE

45       it is a re-occurring job.
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_signal_add(3), qb_loop_job_add(3), qb_loop_poll_del(3),
51       qb_loop_destroy(3), qb_loop_timer_expire_time_remaining(3),
52       qb_loop_poll_mod(3), qb_loop_signal_mod(3), qb_loop_timer_del(3),
53       qb_loop_timer_add(3), qb_loop_timer_is_running(3),
54       qb_loop_timer_expire_time_get(3),
55
57       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
58
59
60
61LIBQB                             2020-07-30               QB_LOOP_POLL_ADD(3)
Impressum