ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
actions.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <stdbool.h>
10
25
31typedef struct {
32 const char *output_path;
33 const char *shell_name;
35
46
53
60
68
75void action_list_webcams(void);
76
84
91void action_list_speakers(void);
92
104void action_show_capabilities(void);
105
114
122void action_show_version(void);
123
130void action_help_server(void);
131
138void action_help_client(void);
139
146void action_help_mirror(void);
147
154void action_help_acds(void);
155
162void action_help_discovery(void);
163
174void action_create_manpage(const char *output_path);
175
186void action_create_config(const char *output_path);
187
201void action_completions(const char *shell_name, const char *output_path);
202
209void action_check_update(void);
210
void action_check_update_immediate(void)
Execute update check immediately (for binary-level execution)
const action_args_t * actions_get_args(void)
Get the arguments for the deferred action.
void action_check_update(void)
Check for updates and display results.
deferred_action_t actions_get_deferred(void)
Get the deferred action (if any) that was set.
void actions_defer(deferred_action_t action, const action_args_t *args)
Set which action to defer until options are fully initialized.
void action_help_acds(void)
Show discovery-service mode help and exit.
void action_show_capabilities(void)
Show terminal capabilities and exit.
void action_help_server(void)
Show server mode help and exit.
void action_help_discovery(void)
Show discovery mode help and exit.
void action_create_manpage(const char *output_path)
Generate man page template from options builder.
void action_completions(const char *shell_name, const char *output_path)
Generate shell completions and output to stdout or file.
deferred_action_t
Action type enumeration.
Definition actions.h:17
@ ACTION_CHECK_UPDATE
Definition actions.h:23
@ ACTION_LIST_SPEAKERS
Definition actions.h:21
@ ACTION_LIST_MICROPHONES
Definition actions.h:20
@ ACTION_NONE
Definition actions.h:18
@ ACTION_LIST_WEBCAMS
Definition actions.h:19
@ ACTION_SHOW_CAPABILITIES
Definition actions.h:22
void action_list_microphones(void)
List available microphone devices and exit.
void action_show_version(void)
Show version information and exit.
void action_help_mirror(void)
Show mirror mode help and exit.
void action_create_config(const char *output_path)
Create default configuration file 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_help_client(void)
Show client mode help and exit.
void actions_execute_deferred(void)
Execute the deferred action (if any)
void action_show_capabilities_immediate(void)
Execute show capabilities immediately (for binary-level execution)
action_args_t args
deferred_action_t action
ClangTool/LibTooling compatibility shim for stdbool.h.
Action argument structure.
Definition actions.h:31
const char * shell_name
Shell name for completion actions.
Definition actions.h:33
const char * output_path
Output path for generation actions (config, manpage, completions)
Definition actions.h:32