psa: driver: Wrap types and symbols for C/C++ use
Add extern "C" wrappers around type and function declarations to enable C++ interoperability of the driver header. This is done so that the driver functions and types can be used or implmented by C++ code.
This commit is contained in:
parent
20b8a4f2ff
commit
9411db74c4
1 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,10 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/** The following types are redefinitions from the psa/crypto.h file.
|
/** The following types are redefinitions from the psa/crypto.h file.
|
||||||
* It is intended that these will be moved to a new common header file to
|
* It is intended that these will be moved to a new common header file to
|
||||||
* avoid duplication. They are included here for expediency in publication.
|
* avoid duplication. They are included here for expediency in publication.
|
||||||
|
@ -1776,4 +1780,8 @@ typedef struct {
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* PSA_CRYPTO_DRIVER_H */
|
#endif /* PSA_CRYPTO_DRIVER_H */
|
||||||
|
|
Loading…
Reference in a new issue