aboutsummaryrefslogtreecommitdiffstats
path: root/commands.h
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-12-19 18:05:35 +0100
committerGitHub <noreply@github.com>2021-12-19 18:05:35 +0100
commitff88908531a9d20667c6d08f01d7d887ebb60fe8 (patch)
tree7448b12f234195c7a2da9774e2323bee30b30cc9 /commands.h
parent494578cebbb857cd807c76b76da6a8a4e05c3db6 (diff)
downloadnsxiv-ff88908531a9d20667c6d08f01d7d887ebb60fe8.tar.zst
specify func argument and related cleanup (#183)
* specifies the function argument type in commands.h compared to leaving it unspecified. all the functions in cmd_t must have arg_t as it's argument. * changes to commands.h will now trigger a rebuild - this restores old behavior prior to 12efa0e * cg_quit now uses it's argument as exit status * DestroyNotify invokes cg_quit rather than calling exit directly. * Explicitly pass EXIT_SUCCESS to cgquit in keybinding Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'commands.h')
-rw-r--r--commands.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/commands.h b/commands.h
index bc0e340..7f49d94 100644
--- a/commands.h
+++ b/commands.h
@@ -3,42 +3,42 @@
#include <stdbool.h>
/* global */
-bool cg_change_gamma();
-bool cg_first();
-bool cg_mark_range();
-bool cg_n_or_last();
-bool cg_navigate_marked();
-bool cg_prefix_external();
-bool cg_quit();
-bool cg_reload_image();
-bool cg_remove_image();
-bool cg_reverse_marks();
-bool cg_scroll_screen();
-bool cg_switch_mode();
-bool cg_toggle_bar();
-bool cg_toggle_fullscreen();
-bool cg_toggle_image_mark();
-bool cg_unmark_all();
-bool cg_zoom();
+bool cg_change_gamma(arg_t);
+bool cg_first(arg_t);
+bool cg_mark_range(arg_t);
+bool cg_n_or_last(arg_t);
+bool cg_navigate_marked(arg_t);
+bool cg_prefix_external(arg_t);
+bool cg_quit(arg_t);
+bool cg_reload_image(arg_t);
+bool cg_remove_image(arg_t);
+bool cg_reverse_marks(arg_t);
+bool cg_scroll_screen(arg_t);
+bool cg_switch_mode(arg_t);
+bool cg_toggle_bar(arg_t);
+bool cg_toggle_fullscreen(arg_t);
+bool cg_toggle_image_mark(arg_t);
+bool cg_unmark_all(arg_t);
+bool cg_zoom(arg_t);
/* image mode */
-bool ci_alternate();
-bool ci_cursor_navigate();
-bool ci_drag();
-bool ci_fit_to_win();
-bool ci_flip();
-bool ci_navigate();
-bool ci_navigate_frame();
-bool ci_rotate();
-bool ci_scroll();
-bool ci_scroll_to_edge();
-bool ci_set_zoom();
-bool ci_slideshow();
-bool ci_toggle_alpha();
-bool ci_toggle_animation();
+bool ci_alternate(arg_t);
+bool ci_cursor_navigate(arg_t);
+bool ci_drag(arg_t);
+bool ci_fit_to_win(arg_t);
+bool ci_flip(arg_t);
+bool ci_navigate(arg_t);
+bool ci_navigate_frame(arg_t);
+bool ci_rotate(arg_t);
+bool ci_scroll(arg_t);
+bool ci_scroll_to_edge(arg_t);
+bool ci_set_zoom(arg_t);
+bool ci_slideshow(arg_t);
+bool ci_toggle_alpha(arg_t);
+bool ci_toggle_animation(arg_t);
bool ci_toggle_antialias();
/* thumbnails mode */
-bool ct_move_sel();
-bool ct_reload_all();
+bool ct_move_sel(arg_t);
+bool ct_reload_all(arg_t);
/* global */
#define g_change_gamma { cg_change_gamma, MODE_ALL }
@@ -80,4 +80,4 @@ bool ct_reload_all();
#define t_move_sel { ct_move_sel, MODE_THUMB }
#define t_reload_all { ct_reload_all, MODE_THUMB }
-#endif
+#endif /* COMMANDS_H */