comparison src/utils.h @ 31:61104b22a25d

I think it is working now...
author Dennis C. M. <dennis@denniscm.com>
date Thu, 29 Jun 2023 18:05:22 +0100
parents f945bcc3571f
children f60144ebce23
comparison
equal deleted inserted replaced
30:f945bcc3571f 31:61104b22a25d
41 void create_array(struct Element *arr, int arr_size, int window_height, int vpadding); 41 void create_array(struct Element *arr, int arr_size, int window_height, int vpadding);
42 void swap_elements(int x, int y, struct Element *arr); 42 void swap_elements(int x, int y, struct Element *arr);
43 void randomize_array(struct Element *arr, int arr_size); 43 void randomize_array(struct Element *arr, int arr_size);
44 bool array_sorted(struct Element *arr, int arr_size); 44 bool array_sorted(struct Element *arr, int arr_size);
45 void algorithm_selector(struct Algo *algos, int algos_size, int direction, int *selected_algo); 45 void algorithm_selector(struct Algo *algos, int algos_size, int direction, int *selected_algo);
46 void change_speed(struct AlgoArgs *algo_args, int change); 46 void change_delay(struct AlgoArgs *algo_args, int change);
47 void control_flow(useconds_t delay, bool sequentially, bool *pause); 47 void control_flow(useconds_t delay, bool sequentially, bool *pause);
48 void reset_state(struct AlgoArgs *algo_args, struct ThreadState *thread_state); 48 void reset_state(struct AlgoArgs *algo_args, struct ThreadState *thread_state);
49 void run(struct AlgoArgs *algo_args, struct Algo *algos, int selected_algo, 49 void run(struct AlgoArgs *algo_args, struct Algo *algos, int selected_algo,
50 struct ThreadState *thread_state); 50 struct ThreadState *thread_state);
51 51