#[repr(C)]pub struct QarRequestInviteInit {
pub header: QarStructureHeader,
pub app_tag: *const c_char,
}Expand description
@brief Mint a co-process invite: a one-time invite for a process this app starts on the same PC (a companion in another language, a helper process).
The hub binds the invite to the peer id it remembers for this session’s approval and app_tag (see QarOnboardLocalAppTagExt), so the co-process joins as the same peer on every start while no other live process holds that id.
- Only a session joined by local enrollment (QarOnboardLocalAppExt), or a process the QAROS launcher started, may request one.
- The invite works for every start of the co-process while this session lives: it names this app on this PC, not the hub, and onboarding with it asks this app for a fresh one-time hub invite on each attempt. It reaches nobody beyond this user on this PC and does not expire on its own. The co-process’s onboarding tries again (250 ms doubling to 5 s) while this app or the hub is away, and fails at once only for what no retry changes (a forged invite, the approval denied, this session gone): bound it with a cancel token. A platform without a local endpoint for this app gets the hub’s invite instead: single use, valid for 60 s.
- The co-process gets the short local certificate profile under this app’s approval; its certificate renews only while the requesting session is still in the session, and revoking the approval revokes both.
- The co-process should chain QarRuntimeEphemeralStorageExt so it writes nothing to disk.
An invite for another PC, or for a new device, is not available to apps: pairing codes and unbound invites are minted by the hub’s operators.
A struct whose header carries any other structure type, including a retired one (see QarStructureType), is refused with QAR_STATUS_ARGUMENT_NOT_SUPPORTED.
Fields§
§header: QarStructureHeader< QAR_STRUCTURE_TYPE_SESSION_REQUEST_INVITE_INIT
app_tag: *const c_charRequired; the co-process’s app tag. Same rules as QarOnboardLocalAppTagExt::app_tag. Copied before the call returns.