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; typedef int32_t ACPDeviceType;
ACPResult ACPResult
ACPCheckApplicationDeviceEmulation(BOOL* emulation); ACPCheckApplicationDeviceEmulation(BOOL* emulation);
#ifdef __cplusplus
}
#endif
/** @} */ /** @} */

View File

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

View File

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