ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
actions.h
Go to the documentation of this file.
1
6
7#pragma once
8
9#include <stdbool.h>
10
26
32typedef struct {
33 const char *output_path;
34 const char *shell_name;
36
47
54
61
69
76void action_list_webcams(void);
77
85
92void action_list_speakers(void);
93
105void action_show_capabilities(void);
106
115
123void action_show_version(void);
124
131void action_help_server(void);
132
139void action_help_client(void);
140
147void action_help_mirror(void);
148
155void action_help_acds(void);
156
163void action_help_discovery(void);
164
175void action_create_manpage(const char *output_path);
176
187void action_create_config(const char *output_path);
188
202void action_completions(const char *shell_name, const char *output_path);
203
210void action_check_update(void);
211
220
222typedef void (*option_action_fn)(void);
223option_action_fn options_action_callback(const char *name, bool immediate);
action_args_t args
Definition actions.c:78
deferred_action_t action
Definition actions.c:77
option_action_fn options_action_callback(const char *name, bool immediate)
Definition actions.c:716
void action_check_update_immediate(void)
Execute update check immediately (for binary-level execution).
Definition actions.c:323
const action_args_t * actions_get_args(void)
Get the arguments for the deferred action.
Definition actions.c:107
void action_check_update(void)
Check for updates and display results.
Definition actions.c:341
deferred_action_t actions_get_deferred(void)
Get the deferred action (if any) that was set.
Definition actions.c:103
void actions_defer(deferred_action_t action, const action_args_t *args)
Set which action to defer until options are fully initialized.
Definition actions.c:86
void action_help_acds(void)
Show discovery-service mode help and exit.
Definition actions.c:474
void action_show_capabilities(void)
Show terminal capabilities and exit.
Definition actions.c:310
void action_help_server(void)
Show server mode help and exit.
Definition actions.c:459
void action_help_discovery(void)
Show discovery mode help and exit.
Definition actions.c:479
void action_create_manpage(const char *output_path)
Generate man page template from options builder.
Definition actions.c:488
void action_completions(const char *shell_name, const char *output_path)
Generate shell completions and output to stdout or file.
Definition actions.c:584
deferred_action_t
action args is intentionally a small, concrete record. Fields such as output_path,...
Definition actions.h:18
@ ACTION_CHECK_UPDATE
Definition actions.h:24
@ ACTION_LIST_SPEAKERS
Definition actions.h:22
@ ACTION_LIST_MICROPHONES
Definition actions.h:21
@ ACTION_NONE
Definition actions.h:19
@ ACTION_LIST_WEBCAMS
Definition actions.h:20
@ ACTION_SHOW_CAPABILITIES
Definition actions.h:23
void action_list_microphones(void)
List available microphone devices and exit.
Definition actions.c:156
void action_show_version(void)
Show version information and exit.
Definition actions.c:441
void action_help_mirror(void)
Show mirror mode help and exit.
Definition actions.c:469
void action_create_config(const char *output_path)
Create default configuration file and exit.
Definition actions.c:537
void action_list_webcams(void)
List available webcam devices and exit.
Definition actions.c:118
void action_list_speakers(void)
List available speaker devices and exit.
Definition actions.c:194
void action_help_client(void)
Show client mode help and exit.
Definition actions.c:464
void actions_execute_deferred(void)
Execute the deferred action (if any).
Definition actions.c:682
void action_show_capabilities_immediate(void)
Execute show capabilities immediately (for binary-level execution).
Definition actions.c:239
void(* option_action_fn)(void)
Definition actions.h:222
Action argument structure.
Definition actions.h:32
const char * shell_name
Shell name for completion actions.
Definition actions.h:34
const char * output_path
Output path for generation actions (config, manpage, completions).
Definition actions.h:33