2007-01-10 23:28:45 +03:00
|
|
|
/* DPC module API
|
|
|
|
* Copyright 2007, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DPC_MODULE_H_
|
|
|
|
#define _DPC_MODULE_H_
|
|
|
|
|
|
|
|
#include <module.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-07-26 03:44:00 +04:00
|
|
|
#define B_DPC_MODULE_NAME "generic/dpc/haiku/v1"
|
2007-01-10 23:28:45 +03:00
|
|
|
|
|
|
|
typedef void (*dpc_func) (void *arg);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
module_info info;
|
2007-01-15 00:58:19 +03:00
|
|
|
void * (*new_dpc_queue)(const char *name, long priority, int queue_size);
|
|
|
|
status_t (*delete_dpc_queue)(void *queue);
|
|
|
|
status_t (*queue_dpc)(void *queue, dpc_func dpc_name, void *arg);
|
2007-01-10 23:28:45 +03:00
|
|
|
} dpc_module_info;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|