ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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
11#ifdef __cplusplus
12extern "C" {
13#endif
14
33
40typedef struct {
41 const char *output_path;
43 const char *shell_name;
45
56
63
70
78
85void action_list_webcams(void);
86
94
101void action_list_speakers(void);
102
114void action_show_capabilities(void);
115
124
132void action_show_version(void);
133
140void action_help_server(void);
141
148void action_help_client(void);
149
156void action_help_mirror(void);
157
164void action_help_acds(void);
165
172void action_help_discovery(void);
173
185void action_create_manpage(const char *output_path);
186
198void action_create_config(const char *output_path);
199
214void action_completions(const char *shell_name, const char *output_path);
215
222void action_check_update(void);
223
232
234typedef void (*option_action_fn)(void);
235option_action_fn options_action_callback(const char *name, bool immediate);
236
237#ifdef __cplusplus
238}
239#endif
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).
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 args is intentionally a small, concrete record. Fields such as output_path,...
Definition actions.h:25
@ ACTION_CHECK_UPDATE
Definition actions.h:31
@ ACTION_LIST_SPEAKERS
Definition actions.h:29
@ ACTION_LIST_MICROPHONES
Definition actions.h:28
@ ACTION_NONE
Definition actions.h:26
@ ACTION_LIST_WEBCAMS
Definition actions.h:27
@ ACTION_SHOW_CAPABILITIES
Definition actions.h:30
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).
void(* option_action_fn)(void)
Definition actions.h:234
action_args_t args
deferred_action_t action
Action argument structure.
Definition actions.h:40
const char * shell_name
Shell name for completion actions.
Definition actions.h:43
const char * output_path
Definition actions.h:41