*/
Result udsEjectClient(u16 NetworkNodeID);
+/**
+ * @brief This can be used by the host to force-disconnect the spectator.
+ */
+Result udsEjectSpectator();
+
/**
* @brief This can be used by the host to update the network attributes. If bitmask 0x4 is clear in the input bitmask, this clears that bit in the value before actually writing the value into state.
* @param bitmask Bitmask to clear/set in the attributes. See the UDSNETATTR enum values.
return cmdbuf[1];
}
+Result udsEjectSpectator()
+{
+ u32* cmdbuf=getThreadCommandBuffer();
+
+ cmdbuf[0]=IPC_MakeHeader(0x6,0,0); // 0x60000
+
+ Result ret=0;
+ if(R_FAILED(ret=svcSendSyncRequest(__uds_servhandle)))return ret;
+
+ return cmdbuf[1];
+}
+
Result udsUpdateNetworkAttribute(u16 bitmask, bool flag)
{
u32* cmdbuf=getThreadCommandBuffer();