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