nn::boss::ReconfigureTask Function

Syntax

nn::Result ReconfigureTask(
Task * pTask,
TaskPolicy * pPolicy,
u8 taskStep = DEFAULT_STEP_ID
);

Arguments

Name Description
in pTask Specifies a registered task.
in pPolicy Specifies a task policy that contains updated content.
in taskStep Specifies a task step ID. (May be omitted if there is only one task step to be executed)

Return Values

Returns the function's execution result. Returns a Result listed below.
Value Description
ResultSuccess Successfully updated.
ResultInvalidTaskId The task ID pointer is NULL or a zero-length string.
ResultInvalidPolicy The policy information pointer is NULL.
ResultInvalidTaskPriolity The task priority specification is invalid. Confirm that it is in the range of TaskPriority.
ResultTaskPermissionOutOfRange The task permission information is out of range. Confirm that it is in the range of TaskPermission.
ResultSchedulingPolicyOutOfRange The scheduling policy is out of range. Confirm that it is in the range of SchedulingPolicy.
ResultInvalidTaskTargetDuration The task duration is invalid. (For future extensibility)
ResultTaskNotExist The specified task ID was not found. Confirm whether it has already been registered.
ResultIpcNotSessionInitialized Either a session had not been initialized or there were incompatible permissions. This Result value is returned if you call this function before Initialize or InitializePrivileged. Always call Initialize or InitializePrivileged first when you use the BOSS library.
A value other than the above. Unexpected error (see boss_Result.h for details).

Description

Updates the policy of a task previously registered to the library.

Revision History

2010/09/16
Initial version.

CONFIDENTIAL