diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-09 03:27:45 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-05-09 03:27:45 +0400 |
commit | c4b79e4b5448abcd04c1848e212a237e8b17c3de (patch) | |
tree | cb6842905af200754a9c08521abe33e56017f2be /runqueue.h | |
parent | 92fdad5448cda86a2e0fc4a0d3ff8843d6435e11 (diff) |
runqueue: move completion handler from runqueue_process to runqueue_task to make it more generic
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'runqueue.h')
-rw-r--r-- | runqueue.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -73,6 +73,8 @@ struct runqueue_task { const struct runqueue_task_type *type; struct runqueue *q; + void (*complete)(struct runqueue *q, struct runqueue_task *t); + struct uloop_timeout timeout; int run_timeout; int cancel_timeout; @@ -86,7 +88,6 @@ struct runqueue_task { struct runqueue_process { struct runqueue_task task; struct uloop_process proc; - void (*complete)(struct runqueue *q, struct runqueue_process *p, int ret); }; void runqueue_init(struct runqueue *q); |