acp: Add missing extern "C" declarations to allow usage in C++

This commit is contained in:
Maschell 2020-04-30 16:03:22 +02:00 committed by James
parent 5d44ce12fb
commit 599775e83a
3 changed files with 24 additions and 0 deletions

View File

@ -8,9 +8,17 @@
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef int32_t ACPDeviceType;
ACPResult
ACPCheckApplicationDeviceEmulation(BOOL* emulation);
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -11,6 +11,10 @@
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
ACPResult
ACPCreateSaveDir(uint32_t persistentId,
ACPDeviceType deviceType);
@ -33,4 +37,8 @@ ACPUnmountExternalStorage();
ACPResult
ACPUnmountSaveDir();
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -11,6 +11,10 @@
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef uint64_t ACPTitleId;
typedef struct ACPMetaXml ACPMetaXml;
@ -244,4 +248,8 @@ ACPGetTitleMetaDirByDevice(ACPTitleId titleId,
size_t directoryLen,
ACPDeviceType deviceType);
#ifdef __cplusplus
}
#endif
/** @} */