2019-12-07 11:21:53 +00:00
|
|
|
/**
|
|
|
|
* @file ns_shim.h
|
|
|
|
* @brief Nintendo Shell Services (ns) IPC wrapper.
|
|
|
|
* @author SciresM
|
|
|
|
* @copyright libnx Authors
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <switch.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Service s;
|
|
|
|
} NsDocumentInterface;
|
|
|
|
|
|
|
|
/* Command forwarders. */
|
|
|
|
Result nsGetDocumentInterfaceFwd(Service* s, NsDocumentInterface* out);
|
|
|
|
|
|
|
|
Result nsamGetApplicationContentPathFwd(Service* s, void* out, size_t out_size, u64 app_id, NcmContentType content_type);
|
|
|
|
Result nsamResolveApplicationContentPathFwd(Service* s, u64 app_id, NcmContentType content_type);
|
|
|
|
Result nsamGetRunningApplicationProgramIdFwd(Service* s, u64* out_program_id, u64 app_id);
|
|
|
|
|
2023-02-22 06:09:47 +00:00
|
|
|
Result nswebGetApplicationContentPath(NsDocumentInterface* doc, void* out, size_t out_size, u8 *out_attr, u64 app_id, NcmContentType content_type);
|
2019-12-07 11:21:53 +00:00
|
|
|
Result nswebResolveApplicationContentPath(NsDocumentInterface* doc, u64 app_id, NcmContentType content_type);
|
|
|
|
Result nswebGetRunningApplicationProgramId(NsDocumentInterface* doc, u64* out_program_id, u64 app_id);
|
2024-10-10 10:37:18 +01:00
|
|
|
Result nswebGetApplicationContentPath2(NsDocumentInterface* doc, void* out, size_t out_size, u64* out_program_id, u8 *out_attr, u64 app_id, NcmContentType content_type);
|
2019-12-07 11:21:53 +00:00
|
|
|
|
|
|
|
void nsDocumentInterfaceClose(NsDocumentInterface* doc);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|