NAME
app_main.h - Single-header isomorphic native + WebAssembly application harness.
SYNOPSIS
Classes
Runtime context passed to all Bark application callbacks.
Application lifecycle hooks supplied to BARK_APP_DEFINE().
Macros
Generate isomorphic native and WebAssembly entrypoints for a Bark app.
Typedefs
Runtime context passed to all Bark application callbacks.
Application lifecycle hooks supplied to BARK_APP_DEFINE().
Functions
Return the active Bark application context (or NULL before init).
Request a live session upgrade using an authenticated user token.
Clear active user credentials and revert to guest/logged-out state.
Resolve an entitled runtime library slice interface (native only; NULL on web).
Detailed Description
Single-header isomorphic native + WebAssembly application harness.
Define your application lifecycle callbacks in a bark_app_hooks_t struct and invoke BARK_APP_DEFINE(my_hooks) once in your entry translation unit. The same C code compiles untouched into both a protected native desktop package and a protected browser WebAssembly package.
Macro Definition Documentation
#define BARK_APP_DEFINE( HOOKS_SYM)
Generate isomorphic native and WebAssembly entrypoints for a Bark app.
Parameters
HOOKS_SYM Static bark_app_hooks_t instance defining application callbacks.
Author
Generated automatically by Doxygen for Bark from the source code.