libctru  v1.6.0
ampxi.h
Go to the documentation of this file.
1 /**
2  * @file ampxi.h
3  * @brief AMPXI service. This is normally not accessible to userland apps. https://3dbrew.org/wiki/Application_Manager_Services_PXI
4  */
5 #pragma once
6 
7 /**
8  * @brief Initializes AMPXI.
9  * @param servhandle Optional service session handle to use for AMPXI, if zero srvGetServiceHandle() will be used.
10  */
11 Result ampxiInit(Handle servhandle);
12 
13 /// Exits AMPXI.
14 void ampxiExit(void);
15 
16 /**
17  * @brief Writes a TWL save-file to NAND. https://www.3dbrew.org/wiki/AMPXI:WriteTWLSavedata
18  * @param titleid ID of the TWL title.
19  * @param buffer Savedata buffer ptr.
20  * @param size Size of the savedata buffer.
21  * @param image_filepos Filepos to use for writing the data to the NAND savedata file.
22  * @param section_type https://www.3dbrew.org/wiki/AMPXI:WriteTWLSavedata
23  * @param operation https://3dbrew.org/wiki/AM:ImportDSiWare
24  */
25 Result AMPXI_WriteTWLSavedata(u64 titleid, u8 *buffer, u32 size, u32 image_filepos, u8 section_type, u8 operation);
26 
27 /**
28  * @brief Finalizes title installation. https://3dbrew.org/wiki/AMPXI:InstallTitlesFinish
29  * @param mediaType Mediatype of the titles to finalize.
30  * @param db Which title database to use.
31  * @param size Size of the savedata buffer.
32  * @param titlecount Total titles.
33  * @param tidlist List of titleIDs.
34  */
35 Result AMPXI_InstallTitlesFinish(FS_MediaType mediaType, u8 db, u32 titlecount, u64 *tidlist);
s32 Result
Function result.
Definition: types.h:42
Result AMPXI_WriteTWLSavedata(u64 titleid, u8 *buffer, u32 size, u32 image_filepos, u8 section_type, u8 operation)
Writes a TWL save-file to NAND.
u32 Handle
Resource handle.
Definition: types.h:41
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
Result AMPXI_InstallTitlesFinish(FS_MediaType mediaType, u8 db, u32 titlecount, u64 *tidlist)
Finalizes title installation.
FS_MediaType
Media types.
Definition: fs.h:34
uint32_t u32
32-bit unsigned integer
Definition: types.h:23
Result ampxiInit(Handle servhandle)
Initializes AMPXI.
void ampxiExit(void)
Exits AMPXI.