void bossExit(void);
/// Returns the BOSS session handle.
-Handle bossGetSessionHandle();
+Handle bossGetSessionHandle(void);
/**
* @brief Register a task.
* @param unk0 Unknown, usually zero.
* @param unk1 Unknown, usually zero.
*/
-Result bossRegisterTask(char *taskID, u8 unk0, u8 unk1);
+Result bossRegisterTask(const char *taskID, u8 unk0, u8 unk1);
/**
* @brief Send a property.
* @param buf Input buffer data.
* @param size Buffer size.
*/
-Result bossSendProperty(u16 PropertyID, void* buf, u32 size);
+Result bossSendProperty(u16 PropertyID, const void* buf, u32 size);
/**
* @brief ?
* @param taskID BOSS taskID.
*/
-Result bossStartTaskImmediate(char *taskID);
+Result bossStartTaskImmediate(const char *taskID);
/**
* @brief ?
* @param taskID BOSS taskID.
*/
-Result bossStartBgImmediate(char *taskID);
+Result bossStartBgImmediate(const char *taskID);
/**
* @brief Deletes a task by using CancelTask and UnregisterTask internally.
* @param taskID BOSS taskID.
* @param unk Unknown, usually zero?
*/
-Result bossDeleteTask(char *taskID, u32 unk);
+Result bossDeleteTask(const char *taskID, u32 unk);
/**
* @brief Returns task state.
* @param out1 Output field.
* @param out2 Output field.
*/
-Result bossGetTaskState(char *taskID, s8 inval, u8 *out0, u32 *out1, u8 *out2);
+Result bossGetTaskState(const char *taskID, s8 inval, u8 *out0, u32 *out1, u8 *out2);
/**
- * @brief Returns task state info.
+ * @brief This loads the current state of PropertyID 0x0 for the specified task.
* @param taskID BOSS taskID.
*/
-Result bossCmd34(char *taskID, u8 *out);
+Result bossGetTaskProperty0(const char *taskID, u8 *out);
bossHandle = 0;
}
-Handle bossGetSessionHandle()
+Handle bossGetSessionHandle(void)
{
return bossHandle;
}
return (Result)cmdbuf[1];
}
-Result bossRegisterTask(char *taskID, u8 unk0, u8 unk1)
+Result bossRegisterTask(const char *taskID, u8 unk0, u8 unk1)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
return (Result)cmdbuf[1];
}
-static Result bossipc_UnregisterTask(char *taskID, u32 unk)
+static Result bossipc_UnregisterTask(const char *taskID, u32 unk)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
return (Result)cmdbuf[1];
}
-Result bossSendProperty(u16 PropertyID, void* buf, u32 size)
+Result bossSendProperty(u16 PropertyID, const void* buf, u32 size)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
return (Result)cmdbuf[1];
}
-Result bossStartTaskImmediate(char *taskID)
+Result bossStartTaskImmediate(const char *taskID)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
return (Result)cmdbuf[1];
}
-Result bossipc_CancelTask(char *taskID)
+Result bossipc_CancelTask(const char *taskID)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
return (Result)cmdbuf[1];
}
-Result bossDeleteTask(char *taskID, u32 unk)
+Result bossDeleteTask(const char *taskID, u32 unk)
{
Result ret=0;
return ret;
}
-Result bossGetTaskState(char *taskID, s8 inval, u8 *out0, u32 *out1, u8 *out2)
+Result bossGetTaskState(const char *taskID, s8 inval, u8 *out0, u32 *out1, u8 *out2)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
return ret;
}
-Result bossStartBgImmediate(char *taskID)
+Result bossStartBgImmediate(const char *taskID)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
return (Result)cmdbuf[1];
}
-Result bossCmd34(char *taskID, u8 *out)
+Result bossGetTaskProperty0(const char *taskID, u8 *out)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();