Function psp::sys::scePowerRegisterCallback

source ·
#[no_mangle]
pub unsafe extern "C" fn scePowerRegisterCallback(
    slot: i32,
    cbid: SceUid
) -> i32
Expand description

Register Power Callback Function

§Parameters

  • slot: slot of the callback in the list, 0 to 15, pass -1 to get an auto assignment.
  • cbid: callback id from calling sceKernelCreateCallback

§Return Value

0 on success, the slot number if -1 is passed, < 0 on error.