aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/cli
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2026-08-01 23:08:48 +0200
committerdec05eba <dec05eba@protonmail.com>2026-08-01 23:08:48 +0200
commit9dda64c39d0fdd6409305faff33c217dcf161e60 (patch)
treeb66b522a0af8d0730bef7852cbe9e3b78835fa86 /include/cli
parent40b6a13d14680cfacb3cdb59f04224540b80d9e4 (diff)
Move screenshot capture and CLI commands from main.cpp into separate modules
The list commands return exit codes through args_parser instead of exiting.
Diffstat (limited to 'include/cli')
-rw-r--r--include/cli/commands.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/cli/commands.h b/include/cli/commands.h
new file mode 100644
index 0000000..9ab00f0
--- /dev/null
+++ b/include/cli/commands.h
@@ -0,0 +1,15 @@
+#ifndef GSR_CLI_COMMANDS_H
+#define GSR_CLI_COMMANDS_H
+
+/* These are the |args_handlers| of the argument parser. They return the exit code that gpu-screen-recorder should exit with */
+int version_command(void *userdata);
+int info_command(void *userdata);
+int list_audio_devices_command(void *userdata);
+int list_application_audio_command(void *userdata);
+int list_v4l2_devices(void *userdata);
+int list_capture_options_command(const char *card_path, void *userdata);
+int list_monitors_command(void *userdata);
+
+void run_recording_saved_script_async(const char *script_file, const char *video_file, const char *type);
+
+#endif /* GSR_CLI_COMMANDS_H */