1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
/*
* (C) Copyright 2016-2023
* Stefano Babic, <stefano.babic@swupdate.org>
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#pragma once
#include <swupdate_status.h>
#include <progress_ipc.h>
/*
* Internal SWUpdate functions to drive the progress
* interface. Common progress definitions for internal
* as well as external use are defined in progress_ipc.h
*/
void swupdate_progress_init(unsigned int nsteps);
void swupdate_progress_addstep(void);
void swupdate_progress_update(unsigned int perc);
void swupdate_progress_inc_step(const char *image, const char *handler_name);
void swupdate_progress_step_completed(void);
void swupdate_progress_end(RECOVERY_STATUS status);
void swupdate_progress_done(const char *info);
void swupdate_progress_info(RECOVERY_STATUS status, int cause, const char *msg);
void swupdate_download_update(unsigned int perc, unsigned long long totalbytes);
void *progress_bar_thread (void *data);
|