-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrap-handle-typedefs.h
66 lines (53 loc) · 2.92 KB
/
wrap-handle-typedefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SPDX-License-Identifier: MIT
#ifndef WRAP_HANDLE_TYPEDEFS_H
#define WRAP_HANDLE_TYPEDEFS_H
#include "impl-scalar-types.h"
#include "impl-status.h"
typedef union
{
void * p;
int i;
intptr_t ip;
}
MUK_Handle;
typedef MUK_Handle WRAP_Comm;
typedef MUK_Handle WRAP_Datatype;
typedef MUK_Handle WRAP_Errhandler;
typedef MUK_Handle WRAP_File;
typedef MUK_Handle WRAP_Group;
typedef MUK_Handle WRAP_Info;
typedef MUK_Handle WRAP_Message;
typedef MUK_Handle WRAP_Op;
typedef MUK_Handle WRAP_Request;
typedef MUK_Handle WRAP_Session;
typedef MUK_Handle WRAP_Win;
// callback typedefs
// reductions
typedef void WRAP_User_function(void *invec, void *inoutvec, int *len, WRAP_Datatype *datatype);
typedef void WRAP_User_function_c(void *invec, void *inoutvec, WRAP_Count *len, WRAP_Datatype *datatype);
// comm attr
typedef int WRAP_Comm_copy_attr_function(WRAP_Comm oldcomm, int comm_keyval, void *extra_state, void *attribute_val_in, void *attribute_val_out, int *flag);
typedef int WRAP_Comm_delete_attr_function(WRAP_Comm comm, int comm_keyval, void *attribute_val, void *extra_state);
// these are deprecated/deleted
typedef int WRAP_Copy_function(WRAP_Comm oldcomm, int keyval, void *extra_state, void *attribute_val_in, void *attribute_val_out, int *flag);
typedef int WRAP_Delete_function(WRAP_Comm comm, int keyval, void *attribute_val, void *extra_state);
// win attr
typedef int WRAP_Win_copy_attr_function(WRAP_Win oldwin, int win_keyval, void *extra_state, void *attribute_val_in, void *attribute_val_out, int *flag);
typedef int WRAP_Win_delete_attr_function(WRAP_Win win, int win_keyval, void *attribute_val, void *extra_state);
// type attr
typedef int WRAP_Type_copy_attr_function(WRAP_Datatype oldtype, int type_keyval, void *extra_state, void *attribute_val_in, void *attribute_val_out, int *flag);
typedef int WRAP_Type_delete_attr_function(WRAP_Datatype datatype, int type_keyval, void *attribute_val, void *extra_state);
// errhandler
typedef void WRAP_Comm_errhandler_function(WRAP_Comm *comm, int *error_code, ...);
typedef void WRAP_Win_errhandler_function(WRAP_Win *win, int *error_code, ...);
typedef void WRAP_File_errhandler_function(WRAP_File *file, int *error_code, ...);
typedef void WRAP_Session_errhandler_function(WRAP_Session *session, int *error_code, ...);
// grequest
typedef int WRAP_Grequest_query_function(void *extra_state, WRAP_Status *status);
typedef int WRAP_Grequest_free_function(void *extra_state);
typedef int WRAP_Grequest_cancel_function(void *extra_state, int complete);
// datarep
typedef int WRAP_Datarep_extent_function(WRAP_Datatype datatype, WRAP_Aint *extent, void *extra_state);
typedef int WRAP_Datarep_conversion_function(void *userbuf, WRAP_Datatype datatype, int count, void *filebuf, WRAP_Offset position, void *extra_state);
typedef int WRAP_Datarep_conversion_function_c(void *userbuf, WRAP_Datatype datatype, WRAP_Count count, void *filebuf, WRAP_Offset position, void *extra_state);
#endif