.TH "guest.h" 3 "Bark" \" -*- nroff -*- .ad l .nh .SH NAME guest.h \- Bark guest session ticket, upgrade, logout, capability bits, and build-mode macros\&. .SH SYNOPSIS .br .PP .SS "Macros" .in +1c .ti -1c .RI "#define \fBBARK_DEV\fP 1" .br .RI "Defined as 1 in local development builds (\fRBARK_RELEASE=0\fP)\&. " .ti -1c .RI "#define \fBBARK_SPLIT_GATE\fP 1" .br .RI "Defined as 1 when compiling the Tier-0 pre-login Gate shell of a split app\&. " .ti -1c .RI "#define \fBBARK_SPLIT_SLICE\fP 1" .br .RI "Defined as 1 when compiling the post-login encrypted slice of a split app\&. " .in -1c .SS "Enumerations" .in +1c .ti -1c .RI "enum \fBbark_cap_bits\fP " .br .RI "Capability entitlement bitmask constants\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBbark_read_ticket\fP (char *buf, uint32_t cap)" .br .RI "Read the active Bark session ticket into \fRbuf\fP\&. Returns byte length or <=0\&. " .ti -1c .RI "int \fBbark_upgrade_session\fP (const char *bearer_token)" .br .RI "Upgrade the running Bark session with a newly minted bearer token\&. " .ti -1c .RI "int \fBbark_clear_session\fP (void)" .br .RI "Clear the active Bark session token and unload post-login slices\&. " .ti -1c .RI "uint64_t \fBbark_session_caps\fP (void)" .br .RI "Return the bitmask of capabilities granted to the active Bark session\&. " .in -1c .SH "Detailed Description" .PP Bark guest session ticket, upgrade, logout, capability bits, and build-mode macros\&. .SH "Author" .PP Generated automatically by Doxygen for Bark from the source code\&.