1 | MODULE CONTEXT_INTERFACE |
---|
2 | USE, INTRINSIC :: ISO_C_BINDING |
---|
3 | |
---|
4 | INTERFACE ! Ne pas appeler directement/Interface FORTRAN 2003 <-> C99 |
---|
5 | |
---|
6 | SUBROUTINE cxios_context_handle_create(ret, idt, idt_size) BIND(C) |
---|
7 | import C_CHAR, C_INTPTR_T, C_INT |
---|
8 | INTEGER (kind = C_INTPTR_T) :: ret |
---|
9 | CHARACTER(kind = C_CHAR) , DIMENSION(*) :: idt |
---|
10 | INTEGER (kind = C_INT) , VALUE :: idt_size |
---|
11 | END SUBROUTINE cxios_context_handle_create |
---|
12 | |
---|
13 | SUBROUTINE cxios_context_get_current(context) BIND(C) |
---|
14 | import C_INTPTR_T |
---|
15 | INTEGER (kind = C_INTPTR_T) :: context |
---|
16 | END SUBROUTINE cxios_context_get_current |
---|
17 | |
---|
18 | SUBROUTINE cxios_context_get_id(context, idt, idt_size) BIND(C) |
---|
19 | import C_CHAR, C_INTPTR_T, C_INT |
---|
20 | INTEGER (kind = C_INTPTR_T) :: context |
---|
21 | CHARACTER(kind = C_CHAR) , DIMENSION(*) :: idt |
---|
22 | INTEGER (kind = C_INT) , VALUE :: idt_size |
---|
23 | END SUBROUTINE cxios_context_get_id |
---|
24 | |
---|
25 | SUBROUTINE cxios_context_set_current(context, withswap) BIND(C) |
---|
26 | import C_BOOL, C_INT, C_INTPTR_T |
---|
27 | INTEGER (kind = C_INTPTR_T), VALUE :: context |
---|
28 | LOGICAL (kind = C_BOOL) , VALUE :: withswap |
---|
29 | END SUBROUTINE cxios_context_set_current |
---|
30 | |
---|
31 | SUBROUTINE cxios_context_valid_id(ret, idt, idt_size) BIND(C) |
---|
32 | USE ISO_C_BINDING |
---|
33 | LOGICAL (kind = C_BOOL) :: ret |
---|
34 | CHARACTER(kind = C_CHAR) , DIMENSION(*) :: idt |
---|
35 | INTEGER (kind = C_INT) , VALUE :: idt_size |
---|
36 | END SUBROUTINE cxios_context_valid_id |
---|
37 | |
---|
38 | END INTERFACE |
---|
39 | |
---|
40 | END MODULE CONTEXT_INTERFACE |
---|