File: progress.h

package info (click to toggle)
swupdate 2025.12%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,004 kB
  • sloc: ansic: 66,621; python: 6,291; makefile: 791; sh: 538; javascript: 229
file content (29 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (5)
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);