1 /* DPC module API 2 * Copyright 2007, 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 <module.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 #define B_DPC_MODULE_NAME "generic/dpc/v1" 16 17 typedef void (*dpc_func) (void *arg); 18 19 typedef struct { 20 module_info info; 21 void * (*new_dpc_queue)(const char *name, long priority, int queue_size); 22 status_t (*delete_dpc_queue)(void *queue); 23 status_t (*queue_dpc)(void *queue, dpc_func dpc_name, void *arg); 24 } dpc_module_info; 25 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif 32