xref: /haiku/src/libs/compat/freebsd_network/compat/sys/_task.h (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
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