#[repr(C)]pub struct QarOnboardLocalAppTagExt {
pub header: QarStructureHeader,
pub app_tag: *const c_char,
}Expand description
@brief Extension: the app tag of a local source app, telling several instances of one approved app apart.
Chain into QarOnboardInit.header.next next to QarOnboardLocalAppExt; it is refused with any other mode (QAR_STATUS_ARGUMENT_NOT_SUPPORTED).
The hub remembers a peer id per approval and tag: the next start of the app with the same tag gets the same peer id while no other live process holds it, and a one-off id otherwise. Absent, the app has the default tag, which is remembered the same way. The hub keeps at most 64 tags per approval, dropping the least recently used, forgets a tag unused for 30 days, and forgets all of them when the approval is revoked or narrowed.
An app tag is an identity key, treated like the common name of an app volume or GUI panel:
- non-empty printable ASCII (0x20-0x7E, no control characters), no space at either end, at most QAR_MAX_APP_TAG_LENGTH bytes; anything else is refused with QAR_STATUS_ARGUMENT_NOT_SUPPORTED. Put non-ASCII text in QarPeerPresentation::display_name.
- never starting with
member/, which the hub keeps for the apps of its member hubs (QAR_STATUS_ARGUMENT_NOT_SUPPORTED). - compared exactly (case-sensitive) and kept constant across versions of the app.
- a DNS-style name scoped by the app is recommended, e.g.
left.terraexplorer.skyline.
Fields§
§header: QarStructureHeader< QAR_STRUCTURE_TYPE_RUNTIME_ONBOARD_LOCAL_APP_TAG_EXT
app_tag: *const c_charRequired; the app tag (rules above). Copied before the call returns.