WUT  0.1
Wii U Toolchain
mcp.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
17 typedef struct MCPDevice MCPDevice;
19 
20 typedef enum MCPInstallTarget
21 {
25 
26 struct __attribute__((__packed__)) MCPInstallProgress
27 {
28  uint32_t inProgress;
29  uint64_t tid;
30  uint64_t sizeTotal;
31  uint64_t sizeProgress;
32  uint32_t contentsTotal;
33  uint32_t contentsProgress;
34 };
35 CHECK_OFFSET(MCPInstallProgress, 0x00, inProgress);
36 CHECK_OFFSET(MCPInstallProgress, 0x04, tid);
37 CHECK_OFFSET(MCPInstallProgress, 0x0C, sizeTotal);
38 CHECK_OFFSET(MCPInstallProgress, 0x14, sizeProgress);
39 CHECK_OFFSET(MCPInstallProgress, 0x1C, contentsTotal);
40 CHECK_OFFSET(MCPInstallProgress, 0x20, contentsProgress);
41 CHECK_SIZE(MCPInstallProgress, 0x24);
42 
44 {
45  UNKNOWN(0x27F);
46 };
47 CHECK_SIZE(MCPInstallInfo, 0x27F);
48 
50 {
51  UNKNOWN(0x27F);
52 };
53 CHECK_SIZE(MCPInstallTitleInfo, 0x27F);
54 
55 struct MCPDevice
56 {
57  char name[0x31B];
58 };
59 CHECK_SIZE(MCPDevice, 0x31B);
60 
62 {
64 };
65 CHECK_SIZE(MCPDeviceList, 0x31B*32);
66 
67 int
68 MCP_Open();
69 
70 int
71 MCP_Close(int handle);
72 
73 int
75  MCPInstallTarget device);
76 
77 int
79  MCPInstallTarget *deviceOut);
80 
81 int
82 MCP_InstallSetTargetUsb(int handle,
83  int usb);
84 
85 int
86 MCP_InstallGetInfo(int handle,
87  char *path,
88  MCPInstallInfo *out);
89 
90 int
91 MCP_InstallTitleAsync(int handle,
92  char *path,
93  MCPInstallTitleInfo *out);
94 
95 int
96 MCP_InstallGetProgress(int handle,
97  MCPInstallProgress *installProgressOut);
98 
99 int
100 MCP_InstallTitleAbort(int handle);
101 
102 int
103 MCP_UninstallTitleAsync(int handle,
104  char *path,
105  MCPInstallTitleInfo *out);
106 
107 int
108 MCP_DeviceList(int handle,
109  int *numDevices,
110  MCPDeviceList *outDevices,
111  uint32_t outBufferSize);
112 
113 int
114 MCP_FullDeviceList(int handle,
115  int *numDevices,
116  MCPDeviceList *outDevices,
117  uint32_t outBufferSize);
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
int MCP_FullDeviceList(int handle, int *numDevices, MCPDeviceList *outDevices, uint32_t outBufferSize)
char name[0x31B]
Definition: mcp.h:57
struct __attribute__((__packed__)) MCPInstallProgress
Definition: mcp.h:26
int MCP_InstallSetTargetUsb(int handle, int usb)
MCPDevice devices[32]
Definition: mcp.h:63
int MCP_InstallSetTargetDevice(int handle, MCPInstallTarget device)
int MCP_InstallGetTargetDevice(int handle, MCPInstallTarget *deviceOut)
int MCP_DeviceList(int handle, int *numDevices, MCPDeviceList *outDevices, uint32_t outBufferSize)
int MCP_Close(int handle)
struct MCPInstallProgress MCPInstallProgress
Definition: mcp.h:14
int MCP_Open()
int MCP_InstallTitleAsync(int handle, char *path, MCPInstallTitleInfo *out)
int MCP_UninstallTitleAsync(int handle, char *path, MCPInstallTitleInfo *out)
int MCP_InstallGetInfo(int handle, char *path, MCPInstallInfo *out)
int MCP_InstallTitleAbort(int handle)
MCPInstallTarget
Definition: mcp.h:20
Definition: mcp.h:55
int MCP_InstallGetProgress(int handle, MCPInstallProgress *installProgressOut)