-int flash_load(flash_file_t *ctx, const char *name, int can_write_bl);
-int flash_start_flashing(receiver_arg* conn, int enable_bl_writes, char *serial_port_name);
+int flash_load(flash_file_t *ctx, const char *name, bool can_write_bl);
+int flash_start_flashing(int enable_bl_writes, char *serial_port_name);