1 /* DPC module API 2 * Copyright 2007-2008, Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License 4 */ 5 6 #ifndef _DPC_MODULE_H_ 7 #define _DPC_MODULE_H_ 8 9 #include <OS.h> 10 #include <module.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #define B_DPC_MODULE_NAME "generic/dpc/v1" 17 18 typedef void (*dpc_func) (void *arg); 19 20 typedef struct { 21 module_info info; 22 23 status_t (*new_dpc_queue)(void **queue, const char *name, int32 priority); 24 status_t (*delete_dpc_queue)(void *queue); 25 status_t (*queue_dpc)(void *queue, dpc_func func, void *arg); 26 } dpc_module_info; 27 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif // _DPC_MODULE_H_ 34