bark_app_hooks(3)Bark

NAME

bark_app_hooks - Application lifecycle hooks supplied to BARK_APP_DEFINE().

SYNOPSIS

#include <app_main.h>

Public Attributes

const char * default_origin
uint32_t clear_color
uint32_t fps
int(* pre_boot )(bark_app_ctx_t *ctx)
int(* init )(bark_app_ctx_t *ctx)
int(* custom_run )(bark_app_ctx_t *ctx)
int(* on_upgrade )(bark_app_ctx_t *ctx, int ok)
void(* on_logout )(bark_app_ctx_t *ctx)
void(* on_post_logout )(bark_app_ctx_t *ctx)

Detailed Description

Application lifecycle hooks supplied to BARK_APP_DEFINE().

Member Data Documentation

uint32_t bark_app_hooks::clear_color

Native viewport clear color (0xRRGGBB, default 0x111318).

int(* bark_app_hooks::custom_run) (bark_app_ctx_t *ctx)

Optional native loop override (e.g. headless check): <0 run default loop, >=0 exit code.

const char* bark_app_hooks::default_origin

Default backend origin when running natively.

uint32_t bark_app_hooks::fps

Native target FPS (default 60).

int(* bark_app_hooks::init) (bark_app_ctx_t *ctx)

Initialize application state; return 0 on success.

void(* bark_app_hooks::on_logout) (bark_app_ctx_t *ctx)

Runs before native slice unload so slice closures are torn down safely.

void(* bark_app_hooks::on_post_logout) (bark_app_ctx_t *ctx)

Runs after native session clear + runtime rebind.

int(* bark_app_hooks::on_upgrade) (bark_app_ctx_t *ctx, int ok)

Return 0 on success, non-zero if post-login slice bind failed.

int(* bark_app_hooks::pre_boot) (bark_app_ctx_t *ctx)

Optional native CLI/probe hook before init: <0 continue, >=0 exit with code.

Author

Generated automatically by Doxygen for Bark from the source code.