Result amInit();
Result amExit();
+Handle *amGetSessionHandle();
/* AM_GetTitleCount()
About: Gets the number of titles for a given mediatype
Result fsInit(void);
Result fsExit(void);
+Handle *fsGetSessionHandle();
FS_path FS_makePath(FS_pathType type, const char *path);
Result srvInit();
Result srvExit();
+Handle *srvGetSessionHandle();
Result srvRegisterClient();
Result srvGetServiceHandle(Handle* out, const char* name);
Result srvRegisterService(Handle* out, const char* name, int maxSessions);
while(1)
{
ret = ACU_GetWifiStatus(&servhandle, &outval);
- if(ret==0 && outval==1)break;
+ if(ret==0 && outval!=0)break;
}
svcCloseHandle(servhandle);
return svcCloseHandle(amHandle);
}
+Handle *amGetSessionHandle()
+{
+ return &amHandle;
+}
+
Result AM_GetTitleCount(u8 mediatype, u32 *count)
{
Result ret = 0;
return svcCloseHandle(fsuHandle);
}
+/*! Gets the fsuser service session handle.
+*
+* @returns Handle
+*/
+Handle *fsGetSessionHandle()
+{
+ return &fsuHandle;
+}
+
/*! Initialize FS service handle
*
* If @a handle is NULL, this initializes @ref fsuHandle.
return 0;
}
+Handle *srvGetSessionHandle()
+{
+ return &g_srv_handle;
+}
+
Result srvRegisterClient()
{
Result rc = 0;