Made DPC module binary compatible with BeOS one.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23901 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2008-02-06 23:10:13 +00:00
parent 05b79eadff
commit 6198a9798e
4 changed files with 29 additions and 16 deletions
+8 -6
View File
@@ -1,26 +1,28 @@
/* DPC module API
* Copyright 2007, Haiku Inc. All Rights Reserved.
* Copyright 2007-2008, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License
*/
#ifndef _DPC_MODULE_H_
#define _DPC_MODULE_H_
#include <OS.h>
#include <module.h>
#ifdef __cplusplus
extern "C" {
#endif
#define B_DPC_MODULE_NAME "generic/dpc/haiku/v1"
#define B_DPC_MODULE_NAME "generic/dpc/v1"
typedef void (*dpc_func) (void *arg);
typedef struct {
module_info info;
void * (*new_dpc_queue)(const char *name, long priority, int queue_size);
module_info info;
status_t (*new_dpc_queue)(void **queue, const char *name, int32 priority);
status_t (*delete_dpc_queue)(void *queue);
status_t (*queue_dpc)(void *queue, dpc_func dpc_name, void *arg);
status_t (*queue_dpc)(void *queue, dpc_func func, void *arg);
} dpc_module_info;
@@ -28,4 +30,4 @@ typedef struct {
}
#endif
#endif
#endif // _DPC_MODULE_H_