#[repr(C)]pub struct QarOnboardCodeExt {
pub header: QarStructureHeader,
pub code: *const c_char,
}Expand description
@brief Extension: onboard with a short pairing code minted for the hub’s operators.
@deprecated Join with QarOnboardLocalAppExt (a source app on the QAROS PC), as a co-process with QarOnboardInviteExt and the invite of qar_session_request_onboarding_invite, or through a member hub. Kept working for applications that already use it.
Without QarOnboardHostExt it finds this user’s hub: first through the hub-endpoint.json file the hub writes to the QAROS data root, then through a discovery beacon whose owner is this user, listening up to 6 s. When neither answers, onboarding fails with QAR_STATUS_ONBOARDING_HUB_UNREACHABLE asking for the hub’s host:port. To reach a specific hub, chain QarOnboardHostExt.
Fields§
§header: QarStructureHeader< QAR_STRUCTURE_TYPE_RUNTIME_ONBOARD_CODE_EXT
code: *const c_charRequired; short pairing code minted for the hub’s operators (the QAROS Visualizer shows none: its hub join code is for another hub only), or an addressed code (qar-code:…) an app is given by hand. Copied before the call returns. QAROS hands an app it launches a full invite instead: use qar_onboarding_invite_deserialize and QarOnboardInviteExt for that.