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

NAME

6       qb_loop_job_del - Delete a job from the mainloop.
7
8

SYNOPSIS

10       #include <qb/qbloop.h>
11
12       int32_t qb_loop_job_del(
13           struct qb_loop          *l, /* pointer to the loop instance */
14           enum qb_loop_priority    p, /* the priority */
15           void                    *data,   /* user data passed into the dispatch function */
16           qb_loop_job_dispatch_fn  dispatch_fn          /* callback function */
17       );
18

PARAMS

20       l           pointer to the loop instance
21
22       p           the priority
23
24       data        user data passed into the dispatch function
25
26       dispatch_fn callback function
27

DESCRIPTION

29       This will try to delete the job if it hasn't run yet.
30

STRUCTURES

32       enum qb_loop_priority {
33             QB_LOOP_LOW;
34             QB_LOOP_MED;
35             QB_LOOP_HIGH;
36       };
37

RETURN VALUE

39       status (0 == ok, -errno == failure)
40

NOTE

42       this  will  remove the first job that matches the parameters (priority,
43       data, dispatch_fn).
44

SEE ALSO

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