xref: /haiku/src/libs/compat/freebsd_network/compat/sys/_task.h (revision 23f179da55b1bd1ba84fbf3d3c56947e2c8d0aca)
1 /*
2  * Copyright 2007 Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _FBSD_COMPAT_SYS__TASK_H_
6 #define _FBSD_COMPAT_SYS__TASK_H_
7 
8 
9 /* Haiku's list management */
10 #include <util/list.h>
11 
12 
13 typedef void (*task_handler_t)(void *context, int pending);
14 
15 struct task {
16 	int ta_priority;
17 	task_handler_t ta_handler;
18 	void *ta_argument;
19 	int ta_pending;
20 
21 	struct list_link ta_link;
22 };
23 
24 #endif
25