ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
splash.h
Go to the documentation of this file.
1
19
20#pragma once
21
22#include <stdbool.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28// Forward declare to avoid circular includes
31
40void splash_log_init(void);
41
49void splash_log_destroy(void);
50
59void splash_log_clear(void);
60
71void splash_log_append(const char *message);
72
104
123int splash_intro_done(void);
124
140
152bool splash_should_display(bool is_intro);
153
166void splash_restore_stderr(void);
167
182void splash_set_update_notification(const char *notification);
183
197
215
229bool splash_is_running(void);
230
233void splash_set_discovery_session(const char *session_string, bool joining);
234
237
238#ifdef __cplusplus
239}
240#endif
bool splash_is_running(void)
Check if splash screen animation is currently running.
Definition splash.c:485
struct session_display_ctx session_display_ctx_t
session display config is intentionally a small, concrete record. Fields such as snapshot_mode,...
int splash_intro_done(void)
Signal that intro splash should end (first frame ready to render).
Definition splash.c:465
void splash_restore_stderr(void)
Restore stderr after splash animation completes.
Definition splash.c:476
int splash_intro_start(session_display_ctx_t *ctx)
Start animated intro screen with rainbow ASCII art (non-blocking).
Definition splash.c:410
void splash_log_init(void)
Initialize log buffer for splash animation.
Definition splash.c:131
void splash_log_clear(void)
Clear splash log buffer.
Definition splash.c:143
void splash_set_update_notification(const char *notification)
Set update notification to display on splash/status screens.
Definition splash.c:522
bool splash_should_display(bool is_intro)
Check if splash screen should display.
Definition splash.c:251
void splash_clear_display_context(void)
Clear the cached display context to prevent use-after-free.
Definition splash.c:481
void splash_log_destroy(void)
Destroy splash log buffer.
Definition splash.c:138
void splash_log_append(const char *message)
Append message to splash log buffer.
void splash_notify_first_frame(void)
Notify splash that the first frame has been rendered.
void splash_wait_for_animation(void)
Wait for splash animation thread to fully exit.
Definition splash.c:491
void splash_set_discovery_session(const char *session_string, bool joining)
Definition splash.c:100
void splash_clear_discovery_session(void)
Definition splash.c:111
Runtime terminal state and reusable workspaces for ASCII rendering.