Onboarding
Functions Index
| static QarForgetInit | qar_forget_init_default (void) |
|
Default init for QarForgetInit. More... | |
| static QarOnboardCodeExt | qar_onboard_code_ext_default (void) |
|
Default init for QarOnboardCodeExt. More... | |
| static QarOnboardHostExt | qar_onboard_host_ext_default (void) |
|
Default init for QarOnboardHostExt. More... | |
| static QarOnboardInit | qar_onboard_init_default (void) |
|
Default init for QarOnboardInit. More... | |
| static QarOnboardInviteExt | qar_onboard_invite_ext_default (void) |
|
Default init for QarOnboardInviteExt. More... | |
| static QarOnboardLocalAppExt | qar_onboard_local_app_ext_default (void) |
|
Default init for QarOnboardLocalAppExt (hub default approval timeout). More... | |
| static QarOnboardLocalAppTagExt | qar_onboard_local_app_tag_ext_default (void) |
|
Default init for QarOnboardLocalAppTagExt (app_tag NULL; set it). More... | |
| static QarOnboardPeerIdExt | qar_onboard_peer_id_ext_default (void) |
|
Default init for QarOnboardPeerIdExt (zero peer id; set it). More... | |
| static QarOnboardingId | qar_onboarding_id_default (void) |
|
Zero/invalid onboarding id ("no id"). More... | |
| static bool | qar_onboarding_id_equals (const QarOnboardingId *id1, const QarOnboardingId *id2) |
|
Compare two onboarding ids for equality. More... | |
| static bool | qar_onboarding_id_is_zero (const QarOnboardingId *id) |
|
True if the id is the zero/default id. More... | |
| static QarResult | qar_onboarding_invite_deserialize (const uint8_t *wire_data, size_t wire_data_size, QarOnboardingInvite **out_invite) |
|
Parse an invite from wire bytes (IPC message, QR payload, config field). More... | |
| static void | qar_onboarding_invite_handle_destroy (QarOnboardingInvite *invite) |
|
Destroy an onboarding invite handle. More... | |
| static bool | qar_onboarding_invite_handle_is_valid (const QarOnboardingInvite *invite) |
|
Check if an onboarding invite handle is valid. More... | |
| static QarResult | qar_onboarding_invite_serialize (const QarOnboardingInvite *invite, uint8_t *out_buffer, size_t buffer_size, size_t *out_bytes_written) |
|
Serialize the invite to wire bytes so the blob can be handed to the co-process over a private channel (stdin, never a command line). More... | |
| static QarResult | qar_onboarding_invite_serialized_size (const QarOnboardingInvite *invite, size_t *out_size) |
|
Sizing getter — the API's count-then-fetch convention. More... | |
| static QarPeerDeviceIdentity | qar_peer_device_identity_default (void) |
|
Default init for QarPeerDeviceIdentity: stamps the type, category QAR_DEVICE_CATEGORY_DESKTOP_PC, NULL strings. Set at least device_id. More... | |
| static QarPeerPresentation | qar_peer_presentation_default (void) |
|
Default init for QarPeerPresentation (stamps type; NULL fields). More... | |
| static QarRejoinInit | qar_rejoin_init_default (void) |
|
Default init for QarRejoinInit. More... | |
| static QarRequestInviteInit | qar_request_invite_init_default (void) |
|
Default init for QarRequestInviteInit (app_tag NULL; set it). More... | |
| static QarResult | qar_runtime_forget (QarRuntime *runtime, const QarForgetInit *init) |
|
Erase everything stored for this identity slot (certificate, persisted instance id, session state). More... | |
| static QarResult | qar_runtime_onboard (QarRuntime *runtime, const QarOnboardInit *init, qar_progress_callback_t on_progress, void *progress_state, QarCancelToken *cancel, QarOnboardingId *out_onboarding_id, QarSession **out_session) |
|
Run full onboarding using exactly one chained mode extension. More... | |
| static QarResult | qar_runtime_onboard_async (QarRuntime *runtime, const QarOnboardInit *init, qar_runtime_onboard_result_callback_t result_callback, qar_progress_callback_t update_callback, void *user_state, QarCancelToken *cancel) |
|
Async variant of qar_runtime_onboard. The result callback delivers the generated onboarding id — persist it. It fires exactly once, see Async calls. More... | |
| static QarResult | qar_runtime_rejoin (QarRuntime *runtime, const QarRejoinInit *init, qar_progress_callback_t on_progress, void *progress_state, QarCancelToken *cancel, QarSession **out_session) |
|
Restore and validate the last persisted session for init->onboarding_id. Pops no UI. More... | |
| static QarResult | qar_runtime_rejoin_async (QarRuntime *runtime, const QarRejoinInit *init, qar_runtime_onboard_result_callback_t result_callback, qar_progress_callback_t update_callback, void *user_state, QarCancelToken *cancel) |
|
Async variant of qar_runtime_rejoin. More... | |
| static QarSessionInviteTargetAppInit | qar_session_invite_target_app_init_default (void) |
|
Default init for QarSessionInviteTargetAppInit. More... | |
| static QarResult | qar_session_request_onboarding_invite (QarSession *session, const QarRequestInviteInit *init, qar_progress_callback_t on_progress, void *progress_state, QarCancelToken *cancel, QarOnboardingInvite **out_invite) |
|
Ask the hub this session onboarded through for a co-process invite: a one-time invite for a process this app starts on the same PC. More... | |
| static QarResult | qar_session_request_onboarding_invite_async (QarSession *session, const QarRequestInviteInit *init, qar_session_request_invite_result_callback_t result_callback, qar_progress_callback_t update_callback, void *user_state, QarCancelToken *cancel) |
|
Async variant of qar_session_request_onboarding_invite. The init is validated (and app_tag copied) before the call returns; a refused init returns the error and the callback does not fire. Otherwise it fires exactly once, see Async calls. More... | |
Member hub Index
| static QarMemberHubInvitationInit | qar_member_hub_invitation_init_default (void) |
|
Default init for QarMemberHubInvitationInit (24 h, one use, join, rejoin and bring devices). More... | |
| static QarMemberHubInvitationAppGrantExt | qar_member_hub_invitation_app_grant_ext_default (void) |
|
Default init for QarMemberHubInvitationAppGrantExt (app_tag NULL; set it). More... | |
| static QarOnboardRemoteAppGrantExt | qar_onboard_remote_app_grant_ext_default (void) |
|
Default init for QarOnboardRemoteAppGrantExt (invitation NULL; set it). More... | |
| static QarJoinHubAsMemberInit | qar_join_hub_as_member_init_default (void) |
|
Default init for QarJoinHubAsMemberInit (set init.invitation; the timeouts default to 60 s and 120 s). More... | |
| static QarResult | qar_runtime_create_member_hub_invitation (QarRuntime *runtime, const QarMemberHubInvitationInit *init, QarCancelToken *cancel, QarMemberHubInvitation **out_invitation) |
|
Ask the QAROS hub on this PC, the session's primary hub, for a member-hub invitation. More... | |
| static QarResult | qar_runtime_join_hub_as_member (QarRuntime *runtime, const QarJoinHubAsMemberInit *init, qar_progress_callback_t on_progress, void *progress_state, QarCancelToken *cancel) |
|
Join the QAROS hub on this PC to the invitation's primary hub as a member. More... | |
| static QarResult | qar_member_hub_invitation_serialized_size (const QarMemberHubInvitation *invitation, size_t *out_size) |
|
Sizing getter for qar_member_hub_invitation_serialize. More... | |
| static QarResult | qar_member_hub_invitation_serialize (const QarMemberHubInvitation *invitation, uint8_t *out_buffer, size_t buffer_size, size_t *out_bytes_written) |
|
Serialize an invitation to bytes for the application's own channel. More... | |
| static QarResult | qar_member_hub_invitation_deserialize (const uint8_t *wire_data, size_t wire_data_size, QarMemberHubInvitation **out_invitation) |
|
Parse an invitation from bytes qar_member_hub_invitation_serialize wrote. More... | |
| static void | qar_member_hub_invitation_handle_destroy (QarMemberHubInvitation *invitation) |
|
Destroy an invitation handle. NULL is ignored. More... | |
Description
Every session is obtained through onboarding. The canonical app startup is: try qar_runtime_rejoin with the persisted QarOnboardingId; when that fails, show the onboarding GUI and run qar_runtime_onboard. Persist the id the onboard call returns — it is the ticket for every later rejoin / forget. Destroy the session handle to tear the session down while keeping persisted state; use qar_runtime_forget for a full reset.
Functions
qar_forget_init_default()
| inline static |
Default init for QarForgetInit.
Definition at line 7906 of file qar_streaming.h.
qar_onboard_code_ext_default()
| inline static |
Default init for QarOnboardCodeExt.
Definition at line 7776 of file qar_streaming.h.
qar_onboard_host_ext_default()
| inline static |
Default init for QarOnboardHostExt.
Definition at line 7786 of file qar_streaming.h.
qar_onboard_init_default()
| inline static |
Default init for QarOnboardInit.
Definition at line 7765 of file qar_streaming.h.
qar_onboard_invite_ext_default()
| inline static |
Default init for QarOnboardInviteExt.
Definition at line 7797 of file qar_streaming.h.
qar_onboard_local_app_ext_default()
| inline static |
Default init for QarOnboardLocalAppExt (hub default approval timeout).
Definition at line 7817 of file qar_streaming.h.
qar_onboard_local_app_tag_ext_default()
| inline static |
Default init for QarOnboardLocalAppTagExt (app_tag NULL; set it).
Definition at line 7827 of file qar_streaming.h.
qar_onboard_peer_id_ext_default()
| inline static |
Default init for QarOnboardPeerIdExt (zero peer id; set it).
Definition at line 7807 of file qar_streaming.h.
qar_onboarding_id_default()
| inline static |
Zero/invalid onboarding id ("no id").
Definition at line 7722 of file qar_streaming.h.
qar_onboarding_id_equals()
| inline static |
Compare two onboarding ids for equality.
Definition at line 8635 of file qar_streaming.h.
qar_onboarding_id_is_zero()
| inline static |
True if the id is the zero/default id.
Definition at line 8654 of file qar_streaming.h.
qar_onboarding_invite_deserialize()
| inline static |
Parse an invite from wire bytes (IPC message, QR payload, config field).
- Return Values
-
QAR_STATUS_PAKE_ERROR the wire bytes are not a valid invite.
Definition at line 3581 of file qar_streaming.h.
qar_onboarding_invite_handle_destroy()
| inline static |
Destroy an onboarding invite handle.
Definition at line 3612 of file qar_streaming.h.
qar_onboarding_invite_handle_is_valid()
| inline static |
Check if an onboarding invite handle is valid.
Definition at line 3608 of file qar_streaming.h.
qar_onboarding_invite_serialize()
| inline static |
Serialize the invite to wire bytes so the blob can be handed to the co-process over a private channel (stdin, never a command line).
- Return Values
-
QAR_STATUS_ARGUMENT_NOT_SUPPORTED out_buffer is too small — *out_bytes_written is still set to the required size; resize and retry.
Definition at line 3599 of file qar_streaming.h.
qar_onboarding_invite_serialized_size()
| inline static |
Sizing getter — the API's count-then-fetch convention.
Definition at line 3588 of file qar_streaming.h.
qar_peer_device_identity_default()
| inline static |
Default init for QarPeerDeviceIdentity: stamps the type, category QAR_DEVICE_CATEGORY_DESKTOP_PC, NULL strings. Set at least device_id.
Definition at line 7741 of file qar_streaming.h.
qar_peer_presentation_default()
| inline static |
Default init for QarPeerPresentation (stamps type; NULL fields).
Definition at line 7729 of file qar_streaming.h.
qar_rejoin_init_default()
| inline static |
Default init for QarRejoinInit.
Definition at line 7754 of file qar_streaming.h.
qar_request_invite_init_default()
| inline static |
Default init for QarRequestInviteInit (app_tag NULL; set it).
Definition at line 7838 of file qar_streaming.h.
qar_runtime_forget()
| inline static |
Erase everything stored for this identity slot (certificate, persisted instance id, session state).
Works with no active session — e.g. a settings screen "forget this hub" while disconnected. After forget the only way back in is a full onboard.
- Return Values
-
QAR_STATUS_ONBOARDING_SESSION_STILL_ACTIVE the slot still has an active session — destroy the active session handle first.
QAR_STATUS_ARGUMENT_NOT_SUPPORTED init->onboarding_id is zero.
QAR_STATUS_ONBOARDING_SESSION_NOT_FOUND no persisted slot for the id.
- Deprecated
-
Only the deprecated code onboarding persists a slot; local apps and co-processes persist nothing.
Definition at line 3570 of file qar_streaming.h.
qar_runtime_onboard()
| inline static |
Run full onboarding using exactly one chained mode extension.
Chain one of:
- QarOnboardCodeExt: a PAKE pairing code minted for the hub's operators (deprecated; the QAROS Visualizer shows no such code)
- QarOnboardInviteExt: a co-process invite blob from the app that started this process (on an ephemeral runtime), or a launch invite
QarOnboardHostExt is optional and only applies when QarOnboardCodeExt is chained.
Optional, alongside the mode extension:
- QarOnboardLocalAppTagExt (with QarOnboardLocalAppExt only): the app tag the hub remembers this instance's peer id by.
- QarOnboardPeerIdExt: join under a caller-chosen peer id instead of a fresh one; the id is persisted with the slot and kept by every later rejoin.
- QarGraphicsDeviceId: create the session's GPU devices on this adapter. Without it, the session uses the GPU QAROS selected for an application it launched (carried in the launch invite), else one the library picks. Read the adapter in use with qar_session_get_graphics_device_id().
- QarGraphicsDeviceDisabledExt: create the session without a graphics device, for an application that never streams media. It starts faster; its media streaming calls return QAR_STATUS_GRAPHICS_DEVICE_NOT_INITIALIZED.
- Return Values
-
QAR_STATUS_ARGUMENT_NOT_SUPPORTED QarOnboardPeerIdExt carries a zero peer id, QarGraphicsDeviceId (or the launch invite's GPU) names an adapter the session cannot create its GPU devices on, or both QarGraphicsDeviceId and QarGraphicsDeviceDisabledExt are chained.
- Parameters
-
out_onboarding_id Required; receives the generated (or re-enrolled) id. Persist it — it is the ticket for every later rejoin / forget.
out_session Receives the onboarded session handle on success.
- Return Values
-
QAR_STATUS_ONBOARDING_HUB_UNREACHABLE discovery could not reach a hub — verify host/port and retry.
QAR_STATUS_PAKE_ERROR the handshake was rejected or timed out, or the invite expired — re-prompt the user for the code, or get a fresh invite.
Definition at line 3486 of file qar_streaming.h.
qar_runtime_onboard_async()
| inline static |
Async variant of qar_runtime_onboard. The result callback delivers the generated onboarding id — persist it. It fires exactly once, see Async calls.
Definition at line 3499 of file qar_streaming.h.
qar_runtime_rejoin()
| inline static |
Restore and validate the last persisted session for init->onboarding_id. Pops no UI.
Blocks until the restore validated or failed. Progress callbacks fire from an internal thread while the caller is blocked; the last progress callback returns before the call does.
Chain QarGraphicsDeviceId on init->header.next to create the session's GPU devices on that adapter, or QarGraphicsDeviceDisabledExt to create the session without a graphics device (not both). The peer id is the one persisted by the onboard.
- Parameters
-
runtime Runtime the identity slot belongs to.
init Rejoin parameters (fully copied before the call returns).
on_progress Optional progress callback (can be NULL).
progress_state User pointer passed to on_progress unchanged.
cancel Optional cancellation token (can be NULL). Must stay alive until the call returned.
out_session Receives the restored session handle on success.
- Return Values
-
QAR_STATUS_ARGUMENT_NOT_SUPPORTED init->onboarding_id is zero.
QAR_STATUS_ONBOARDING_SESSION_NOT_FOUND no persisted slot for the id — fall back to qar_runtime_onboard.
- 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.
Definition at line 3419 of file qar_streaming.h.
qar_runtime_rejoin_async()
| inline static |
Async variant of qar_runtime_rejoin.
Returns immediately after starting the restore; result_callback fires exactly once on a background thread (also on cancellation, see Async calls).
- Return Values
-
QAR_STATUS_ARGUMENT_NOT_SUPPORTED init->onboarding_id is zero (the callback does not fire in this case).
- Deprecated
-
See qar_runtime_rejoin.
Definition at line 3438 of file qar_streaming.h.
qar_session_invite_target_app_init_default()
| inline static |
Default init for QarSessionInviteTargetAppInit.
Definition at line 7848 of file qar_streaming.h.
qar_session_request_onboarding_invite()
| inline static |
Ask the hub this session onboarded through for a co-process invite: a one-time invite for a process this app starts on the same PC.
See QarRequestInviteInit for who may ask, what the hub binds the invite to and how long it lasts. The hub peer is resolved internally from the session. Serialize the delivered invite with qar_onboarding_invite_serialize and send the bytes to the co-process over IPC / shared memory / a pipe; it onboards with QarOnboardInviteExt.
- Parameters
-
init Required; init->app_tag names the co-process.
out_invite Receives the minted invite handle; owned by the caller (release with qar_onboarding_invite_handle_destroy).
- Return Values
-
QAR_STATUS_ARGUMENT_NOT_SUPPORTED init has the structure type of the old untagged struct ("app tag required"), app_tag is missing, empty, not printable ASCII, longer than QAR_MAX_APP_TAG_LENGTH or starts with the reserved member/ prefix.
QAR_STATUS_ONBOARDING_INVITE_REFUSED the hub mints co-process invites only for a local app it enrolled on its PC (QarOnboardLocalAppExt) or a process its launcher started; this session is neither (a device, or an app that joined with a code or an invite). Final.
QAR_STATUS_ONBOARDING_HUB_UNREACHABLE the session names no hub to ask yet (e.g. the hub is not connected right now); retry.
Definition at line 3532 of file qar_streaming.h.
qar_session_request_onboarding_invite_async()
| inline static |
Async variant of qar_session_request_onboarding_invite. The init is validated (and app_tag copied) before the call returns; a refused init returns the error and the callback does not fire. Otherwise it fires exactly once, see Async calls.
Definition at line 3545 of file qar_streaming.h.
Member hub
Joins the QAROS hub of one PC to the session of the hub on another PC as a member, when an application already connects the two PCs but their operators cannot reach each other (for example a simulation whose server runs on the primary hub's PC and whose clients run on the joining PCs). Two steps, the invitation carried by the application's own channel:
- On the primary's PC: qar_runtime_create_member_hub_invitation returns an invitation signed by the primary hub. Serialize it (qar_member_hub_invitation_serialize) and send it to the application on the joining PC.
- On the joining PC: qar_runtime_join_hub_as_member hands the invitation to the hub on that PC, which joins the primary as a member and restarts into the primary's session. Then onboard the application itself with qar_runtime_onboard and QarOnboardLocalAppExt.
The invitation is a secret bearer credential: whoever holds it can join a hub to the primary until it expires or is used up. Send it only over a trusted channel and never log it. No click is needed on either PC. Windows only; QAR_STATUS_NOT_IMPLEMENTED elsewhere.
qar_join_hub_as_member_init_default
| inline static |
Default init for QarJoinHubAsMemberInit (set init.invitation; the timeouts default to 60 s and 120 s).
Definition at line 7894 of file qar_streaming.h.
qar_member_hub_invitation_app_grant_ext_default
| inline static |
Default init for QarMemberHubInvitationAppGrantExt (app_tag NULL; set it).
Definition at line 7872 of file qar_streaming.h.
qar_member_hub_invitation_deserialize
| inline static |
Parse an invitation from bytes qar_member_hub_invitation_serialize wrote.
Lenient: a field a newer QAROS version added is ignored and kept, so it is serialized again with the invitation and stays covered by its signature. An invitation missing a required field, of another kind, with a mistyped field, out of its bounds, or over 16 KiB is refused. Its signature is not checked here; qar_runtime_join_hub_as_member checks it.
- Parameters
-
wire_data Required; the bytes.
wire_data_size Their size.
out_invitation Required; receives the invitation, owned by the caller (release with qar_member_hub_invitation_handle_destroy).
- Returns
Success, or the failure.
- Return Values
-
QAR_STATUS_MEMBER_INVITATION_INVALID the bytes are not a member-hub invitation.
QAR_STATUS_ARGUMENT_NOT_SUPPORTED a required pointer is NULL.
Definition at line 3825 of file qar_streaming.h.
qar_member_hub_invitation_handle_destroy
| inline static |
Destroy an invitation handle. NULL is ignored.
Definition at line 3833 of file qar_streaming.h.
qar_member_hub_invitation_init_default
| inline static |
Default init for QarMemberHubInvitationInit (24 h, one use, join, rejoin and bring devices).
Definition at line 7858 of file qar_streaming.h.
qar_member_hub_invitation_serialize
| inline static |
Serialize an invitation to bytes for the application's own channel.
The bytes are UTF-8 JSON, at most 16 KiB. They carry the invitation's secret: never log them.
- Parameters
-
invitation Required; an invitation.
out_buffer Receives the bytes. May be NULL (with buffer_size 0) to query the size only.
buffer_size Size of out_buffer in bytes.
out_bytes_written Required; receives the serialized size.
- Returns
Success, or the failure.
- Return Values
-
QAR_STATUS_ARGUMENT_NOT_SUPPORTED out_buffer is too small; *out_bytes_written still holds the required size.
QAR_STATUS_LOGIC_ERROR the handle is invalid.
Definition at line 3799 of file qar_streaming.h.
qar_member_hub_invitation_serialized_size
| inline static |
Sizing getter for qar_member_hub_invitation_serialize.
- Parameters
-
invitation Required; an invitation.
out_size Required; receives the serialized size in bytes.
- Returns
Success, or QAR_STATUS_LOGIC_ERROR for an invalid handle.
Definition at line 3779 of file qar_streaming.h.
qar_onboard_remote_app_grant_ext_default
| inline static |
Default init for QarOnboardRemoteAppGrantExt (invitation NULL; set it).
Definition at line 7883 of file qar_streaming.h.
qar_runtime_create_member_hub_invitation
| inline static |
Ask the QAROS hub on this PC, the session's primary hub, for a member-hub invitation.
Needs no session: the hub identifies this process from Windows, as for QarOnboardLocalAppExt, and answers only an application it approved with the right to bring in member hubs ("May bring in member hubs") and with quota left. The quota is spent per hub the invitation admits, not per invitation. It never prompts. The hub picks the hub of this runtime's QAROS installation, the same way QarOnboardLocalAppExt does.
The returned invitation is a secret bearer credential: send it only over a trusted channel and never log it. The primary hub's operator sees it in the visualizer and can revoke it.
- Parameters
-
runtime Required; the runtime.
init Required; from qar_member_hub_invitation_init_default().
cancel Optional cancellation token (can be NULL).
out_invitation Required; receives the invitation on success, owned by the caller (release with qar_member_hub_invitation_handle_destroy).
- Returns
Success, or the failure.
- Return Values
-
QAR_STATUS_ARGUMENT_NOT_SUPPORTED a field is out of range (lifetime above 7 days, more than 64 uses or more than the quota left, a label over 64 bytes, unknown permission bits).
QAR_STATUS_ONBOARDING_HUB_UNREACHABLE no QAROS hub runs on this PC for this user.
QAR_STATUS_ONBOARDING_HUB_NOT_AUTHENTIC the process serving the pipe is not the installed QAROS hub.
QAR_STATUS_ONBOARDING_APPROVAL_DENIED the hub has not approved this application.
QAR_STATUS_MEMBER_SPONSOR_NOT_ALLOWED the approval does not allow this application to bring in member hubs.
QAR_STATUS_MEMBER_SPONSOR_QUOTA_EXCEEDED the approval has used its quota.
QAR_STATUS_SESSION_WIDE_ACTION_ON_MEMBER the hub on this PC is a member; create the invitation on its primary's PC.
QAR_STATUS_NOT_IMPLEMENTED not on Windows.
Definition at line 3696 of file qar_streaming.h.
qar_runtime_join_hub_as_member
| inline static |
Join the QAROS hub on this PC to the invitation's primary hub as a member.
This joins this PC's hub, not the calling application: it does not onboard the caller. Once it returns, call qar_runtime_onboard with QarOnboardLocalAppExt, which then succeeds without a prompt for the application the invitation was created by.
The call:
- starts the installed QAROS hub when none runs for this user, and waits up to init->hub_start_timeout_ms for it;
- checks the invitation: its signature, its expiry, then whether this PC trusts its primary hub - the administrator's allow-list (HKLM\SOFTWARE\Policies\Quaternar\QAROS\MemberInvitations or ProgramData%\Quaternar\QAROS\policy\member-invitations.json) when there is one, else the primary this PC's hub joined first (pinned on that first join);
- joins, rejoins or readmits the hub at the primary, and blocks through the hub's restart into the primary's session, up to init->restart_timeout_ms. Every process the hub started reconnects; with the invitation's permission, the devices paired to this PC's hub move along.
Called again with an invitation of the primary the hub is already a member of, it returns success at once. Any process of this PC's user may call it; the signed invitation is what authorizes the join.
- Parameters
-
runtime Required; the runtime.
init Required; the invitation and the optional timeouts.
on_progress Optional progress callback (can be NULL).
progress_state User pointer passed to on_progress unchanged.
cancel Optional cancellation token (can be NULL).
- Returns
Success once the hub runs as the primary's member, or the failure.
- Return Values
-
QAR_STATUS_ARGUMENT_NOT_SUPPORTED init->invitation is missing or not a valid handle.
QAR_STATUS_MEMBER_INVITATION_INVALID the invitation's signature is wrong, or the primary does not know it or judged it invalid.
QAR_STATUS_MEMBER_INVITATION_EXPIRED, QAR_STATUS_MEMBER_INVITATION_USED_UP, QAR_STATUS_MEMBER_INVITATION_REVOKED ask the primary's application for a new invitation.
QAR_STATUS_MEMBER_INVITATION_PRIMARY_NOT_ALLOWED this PC does not trust the invitation's primary hub.
QAR_STATUS_MEMBER_INVITATION_POLICY_NOT_PROTECTED this PC's member-invitation policy can be written by a non-administrator.
QAR_STATUS_MEMBER_JOIN_REFUSED the hub on this PC hosts members of its own or is a member of another primary, or the invitation does not permit the join; qar_result_message names the reason.
QAR_STATUS_MEMBER_REMOVED the primary removed this hub and the invitation does not permit readmitting it.
QAR_STATUS_PRIMARY_UNREACHABLE none of the invitation's addresses of the primary hub answers.
QAR_STATUS_HUB_LIFECYCLE_OPERATION_RUNNING the hub on this PC is in the middle of another session-wide operation; retry.
QAR_STATUS_ONBOARDING_HUB_UNREACHABLE no QAROS hub runs on this PC and none could be started.
QAR_STATUS_ONBOARDING_HUB_NOT_AUTHENTIC the process serving the pipe is not the installed QAROS hub.
QAR_STATUS_TIMEOUT the hub did not come back as a member in time; the join is committed, so calling again returns success once it has.
QAR_STATUS_NOT_IMPLEMENTED not on Windows.
Definition at line 3764 of file qar_streaming.h.
Generated via doxygen2docusaurus 2.2.1 by Doxygen 1.9.8.