ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
wasm/stubs/actions.c
Go to the documentation of this file.
1
5
7#include <stddef.h>
8#include <string.h>
9
10// Action functions not supported in the browser
11void action_completions(const char *, const char *) {
12 // No-op - shell completions not supported in WASM
13}
14
16 // No-op - webcam listing not supported in the browser
17}
18
20 // No-op - microphone listing not supported in the browser
21}
22
24 // No-op - speaker listing not supported in the browser
25}
26
27void action_create_config(const char *) {
28 // No-op - config file creation not supported in WASM
29}
30
31void action_create_manpage(const char *) {
32 // No-op - man page creation not supported in WASM
33}
34
36 // No-op - no deferred actions in the browser
37}
38
40 // No-op - capabilities not shown in WASM
41}
42
44 // No-op - capabilities not shown in WASM
45}
46
48 // No-op - update checking not supported in WASM
49}
50
52 // No-op - update checking not supported in WASM
53}
54
55option_action_fn options_action_callback(const char *name, bool immediate) {
56 static const struct {
57 const char *name;
58 option_action_fn callback;
59 option_action_fn early_callback;
60 } actions[] = {
64 };
65 if (!name)
66 return NULL;
67 for (size_t i = 0; i < sizeof(actions) / sizeof(actions[0]); ++i) {
68 if (strcmp(name, actions[i].name) == 0)
69 return immediate ? actions[i].early_callback : actions[i].callback;
70 }
71 return NULL;
72}
Action option callbacks for ascii-chat.
void(* option_action_fn)(void)
Definition actions.h:234
void action_check_update_immediate(void)
Execute update check immediately (for early binary-level execution).
void action_check_update(void)
Check for updates and display results.
void action_show_capabilities(void)
Show terminal capabilities and exit.
void action_list_microphones(void)
List available microphone devices and exit.
void action_list_webcams(void)
List available webcam devices and exit.
void action_list_speakers(void)
List available speaker devices and exit.
void action_show_capabilities_immediate(void)
Execute show capabilities immediately (for early binary-level execution).
🔤 String Manipulation and Shell Escaping Utilities
option_action_fn options_action_callback(const char *name, bool immediate)
void action_check_update_immediate(void)
Execute update check immediately (for binary-level execution).
void action_completions(const char *, const char *)
Generate shell completions and output to stdout or file.
void action_check_update(void)
Check for updates and display results.
void action_show_capabilities(void)
Show terminal capabilities and exit.
void action_create_manpage(const char *)
Generate man page template from options builder.
void action_list_microphones(void)
List available microphone devices and exit.
void action_list_webcams(void)
List available webcam devices and exit.
void action_list_speakers(void)
List available speaker devices and exit.
void actions_execute_deferred(void)
Execute the deferred action (if any).
void action_create_config(const char *)
Create default configuration file and exit.
void action_show_capabilities_immediate(void)
Execute show capabilities immediately (for binary-level execution).