Improve App callback mechanism #121

Merged
OragonEfreet merged 5 commits from fix-app into main 2026-05-31 23:05:04 +02:00
Owner
  1. Setup callback signature changed:
    • Before: void (bj_app_setup_fn)(struct bj_app app, void** user_data)
    • After: void* (bj_app_setup_fn)(struct bj_app app, void* init_data)

Setup now returns void* (the user_data for other callbacks) instead of using an output parameter.
2. bj_run_app signature changed:
- Before: bj_run_app(setup, step, fixed_step, teardown)
- After: bj_run_app(setup, step, fixed_step, teardown, init_data)

Added init_data parameter at the end to pass configuration from main() to setup

1. Setup callback signature changed: - Before: void (*bj_app_setup_fn)(struct bj_app* app, void** user_data) - After: void* (*bj_app_setup_fn)(struct bj_app* app, void* init_data) Setup now returns void* (the user_data for other callbacks) instead of using an output parameter. 2. bj_run_app signature changed: - Before: bj_run_app(setup, step, fixed_step, teardown) - After: bj_run_app(setup, step, fixed_step, teardown, init_data) Added init_data parameter at the end to pass configuration from main() to setup
OragonEfreet added this to the 1.0 milestone 2026-05-31 22:56:31 +02:00
Simplify App API
Some checks failed
Documentation / build-docs (pull_request) Failing after 8s
QA / cert (pull_request) Successful in 29s
Build and Test / linux-linux-gcc (pull_request) Successful in 17s
Build and Test / linux-windows-mingw (pull_request) Successful in 26s
4860d72b99
Fix doc
All checks were successful
Documentation / build-docs (pull_request) Successful in 8s
QA / cert (pull_request) Successful in 29s
Build and Test / linux-linux-gcc (pull_request) Successful in 18s
Build and Test / linux-windows-mingw (pull_request) Successful in 27s
77087e63df
update ci
All checks were successful
Documentation / build-docs (pull_request) Successful in 9s
QA / cert (pull_request) Successful in 28s
Build and Test / linux-linux-gcc (pull_request) Successful in 17s
Build and Test / linux-windows-mingw (pull_request) Successful in 26s
a2a1c8b36a
OragonEfreet deleted branch fix-app 2026-05-31 23:05:04 +02:00
OragonEfreet referenced this pull request from a commit 2026-05-31 23:05:06 +02:00
OragonEfreet referenced this pull request from a commit 2026-05-31 23:06:15 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
OragonEfreet/banjo!121
No description provided.