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
8

SYNOPSIS

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

PARAMS

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

DESCRIPTION

STRUCTURES

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

RETURN VALUE

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

NOTE

46       it is a re-occurring job.
47

SEE ALSO

49       qb_loop_job_del(3), qb_loop_run(3), qb_loop_create(3), qb_loop_stop(3),
50       qb_loop_poll_low_fds_event_set(3), qb_loop_signal_del(3),
51       qb_loop_signal_add(3), qb_loop_job_add(3), qb_loop_poll_del(3),
52       qb_loop_destroy(3), qb_loop_timer_expire_time_remaining(3),
53       qb_loop_poll_mod(3), qb_loop_signal_mod(3), qb_loop_timer_del(3),
54       qb_loop_timer_add(3), qb_loop_timer_is_running(3),
55       qb_loop_timer_expire_time_get(3),
56
58       Copyright (C) 2010-2020 Red Hat, Inc.
59
60
61
62LIBQB                             2021-03-03               QB_LOOP_POLL_ADD(3)
Impressum