|
OSFI-C++
3.9.2
OpenSF Integration Library
|
Internal header used by the foreign-function interface to OSFI-C++. More...
Go to the source code of this file.
Macros | |
| #define | OSFI_FFI_NORETURN [[noreturn]] /* In C++11: attribute */ |
| #define | OSFI_FFI_DEPRECATED(reason) [[deprecated(reason)]] |
| #define | CONCAT_(A, B) A##B |
| #define | CONCAT(A, B) CONCAT_(A,B) |
| #define | OSFI_FFI_DECL_PLACEHOLDER(name) typedef struct CONCAT(name,_t) name |
FFI vector types "C templates" | |
| #define | OSFI_VEC_T(Tname) OSFI_Vec_T##Tname |
| #define | OSFI_DECL_VEC_T(Tname, Ttype) |
| #define | OSFI_DECL_VEC_GETTER_simple(Tname, Ttype) |
| #define | OSFI_DECL_VEC_GETTER_str(Tname, Ttype) |
| #define | OSFI_DECL_VEC_OPER(Tname, Ttype, kind) |
| #define | OSFI_DECL_VECTOR(Tname, Ttype, kind) |
Typedefs | |
| typedef struct OSFI_TimeValue_t | OSFI_TimeValue |
Internal header used by the foreign-function interface to OSFI-C++.
This file exposes an interface to the OSFI functions that can be called without C++ name mangling or other C++-specific features such as exception handling. It is not the OSFI-C interface, which resides in "OSFIC.h". It is intended as an intermediate layer to create bindings to OSFI-C++ from other languages; currently C and Fortran are supported through it.
| #define OSFI_DECL_VEC_GETTER_simple | ( | Tname, | |
| Ttype | |||
| ) |
| #define OSFI_DECL_VEC_GETTER_str | ( | Tname, | |
| Ttype | |||
| ) |
| #define OSFI_DECL_VEC_OPER | ( | Tname, | |
| Ttype, | |||
| kind | |||
| ) |
| #define OSFI_DECL_VEC_T | ( | Tname, | |
| Ttype | |||
| ) |
| #define OSFI_DECL_VECTOR | ( | Tname, | |
| Ttype, | |||
| kind | |||
| ) |
Declares an OSFI-managed vector type and its associated functions.
| Tname | the name for the type and its functions. |
| Ttype | the element type in the FFI. |
| kind | either simple or str, depending on the element type. |
| #define OSFI_FFI_DECL_PLACEHOLDER | ( | name | ) | typedef struct CONCAT(name,_t) name |
Declares an incomplete type with the given name, a placeholder to be used by the FFI API only in pointer form.
| #define OSFI_FFI_NORETURN [[noreturn]] /* In C++11: attribute */ |
Attribute to specify that a function never returns. Empty if unsupported
| typedef struct OSFI_TimeValue_t OSFI_TimeValue |
TimeValue object, in the FFI.