xref: /haiku/src/libs/compat/freebsd_network/compat/sys/_task.h (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1 #ifndef _FBSD_COMPAT_SYS__TASK_H_
2 #define _FBSD_COMPAT_SYS__TASK_H_
3 
4 /* Haiku's list management */
5 #include <util/list.h>
6 
7 typedef void (*task_handler_t)(void *context, int pending);
8 
9 struct task {
10 	int ta_priority;
11 	task_handler_t ta_handler;
12 	void *ta_argument;
13 	int ta_pending;
14 
15 	struct list_link ta_link;
16 };
17 
18 #endif
19