]> git.ipfire.org Git - pakfire.git/commit - src/cli/pakfire-builder.c
progress: Add a new abstraction to indicate progress
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Oct 2023 10:31:25 +0000 (10:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Oct 2023 10:31:25 +0000 (10:31 +0000)
commit32bbeefc7ff6bb8a91af32acbcd736e04c1ace16
treef4bc1f6ba074cea97078565f91580460a19e57e1
parent19e50d86c4bc52a6639c172f649c555569532630
progress: Add a new abstraction to indicate progress

The pakfire library has a progressbar object which is complicated to
handle when functions are called from Python, etc.

This new abstraction allows easy handling of progress inside the library
and other applications can hook into it and show the desired status in
whatever way they like.

This patch also implements a classic progressbar in the CLI utils.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
12 files changed:
Makefile.am
src/cli/lib/progressbar.c [new file with mode: 0644]
src/cli/lib/progressbar.h [new file with mode: 0644]
src/cli/lib/terminal.c
src/cli/lib/terminal.h
src/cli/pakfire-builder.c
src/libpakfire/compress.c
src/libpakfire/include/pakfire/pakfire.h
src/libpakfire/include/pakfire/progress.h [new file with mode: 0644]
src/libpakfire/libpakfire.sym
src/libpakfire/pakfire.c
src/libpakfire/progress.c [new file with mode: 0644]