coreinit: Cleanup formatting in coreinit/mcp.h

This commit is contained in:
James Benton 2016-10-09 21:16:56 +01:00
parent 4a595fba93
commit d9bd766b4c

View File

@ -25,14 +25,18 @@ typedef enum MCPInstallTarget
struct __attribute__((__packed__)) MCPInstallProgress struct __attribute__((__packed__)) MCPInstallProgress
{ {
u32 inProgress; uint32_t inProgress;
u64 tid; uint64_t tid;
u64 sizeTotal; uint64_t sizeTotal;
u64 sizeProgress; uint64_t sizeProgress;
u32 contentsTotal; uint32_t contentsTotal;
u32 contentsProgress; uint32_t contentsProgress;
}; };
CHECK_OFFSET(MCPInstallProgress, 0x00, inProgress);
CHECK_OFFSET(MCPInstallProgress, 0x04, tid); CHECK_OFFSET(MCPInstallProgress, 0x04, tid);
CHECK_OFFSET(MCPInstallProgress, 0x0C, sizeTotal);
CHECK_OFFSET(MCPInstallProgress, 0x14, sizeProgress);
CHECK_OFFSET(MCPInstallProgress, 0x1C, contentsTotal);
CHECK_OFFSET(MCPInstallProgress, 0x20, contentsProgress); CHECK_OFFSET(MCPInstallProgress, 0x20, contentsProgress);
CHECK_SIZE(MCPInstallProgress, 0x24); CHECK_SIZE(MCPInstallProgress, 0x24);
@ -67,34 +71,50 @@ int
MCP_Close(int handle); MCP_Close(int handle);
int int
MCP_InstallSetTargetDevice(int handle, MCPInstallTarget device); MCP_InstallSetTargetDevice(int handle,
MCPInstallTarget device);
int int
MCP_InstallGetTargetDevice(int handle, MCPInstallTarget *deviceOut); MCP_InstallGetTargetDevice(int handle,
MCPInstallTarget *deviceOut);
int int
MCP_InstallSetTargetUsb(int handle, int usb); MCP_InstallSetTargetUsb(int handle,
int usb);
int int
MCP_InstallGetInfo(int handle, char *path, MCPInstallInfo *out); MCP_InstallGetInfo(int handle,
char *path,
MCPInstallInfo *out);
int int
MCP_InstallTitleAsync(int handle, char *path, MCPInstallTitleInfo *out); MCP_InstallTitleAsync(int handle,
char *path,
MCPInstallTitleInfo *out);
int int
MCP_InstallGetProgress(int handle, MCPInstallProgress *installProgressOut); MCP_InstallGetProgress(int handle,
MCPInstallProgress *installProgressOut);
int int
MCP_InstallTitleAbort(int handle); MCP_InstallTitleAbort(int handle);
int int
MCP_UninstallTitleAsync(int handle, char *path, MCPInstallTitleInfo *out); MCP_UninstallTitleAsync(int handle,
char *path,
MCPInstallTitleInfo *out);
int int
MCP_DeviceList(int handle, int *numDevices, MCPDeviceList *outDevices, uint32_t outBufferSize); MCP_DeviceList(int handle,
int *numDevices,
MCPDeviceList *outDevices,
uint32_t outBufferSize);
int int
MCP_FullDeviceList(int handle, int *numDevices, MCPDeviceList *outDevices, uint32_t outBufferSize); MCP_FullDeviceList(int handle,
int *numDevices,
MCPDeviceList *outDevices,
uint32_t outBufferSize);
#ifdef __cplusplus #ifdef __cplusplus
} }