This commit adds the flags and some basic formatting/printing of them. Following commits will integrate them into the update/acquire/install logic. `UPDATE_PARTIAL` is set if any of the instances in the `UpdateSet` are partial, i.e. have been partially downloaded. `UPDATE_PENDING` is set if any of the instances in the `UpdateSet` are pending, i.e. have been acquired (downloaded) but not yet installed. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: https://github.com/systemd/systemd/issues/34814
20 lines
613 B
C
20 lines
613 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include "shared-forward.h"
|
|
|
|
typedef enum UpdateSetFlags {
|
|
UPDATE_NEWEST = 1 << 0,
|
|
UPDATE_AVAILABLE = 1 << 1,
|
|
UPDATE_INSTALLED = 1 << 2,
|
|
UPDATE_OBSOLETE = 1 << 3,
|
|
UPDATE_PROTECTED = 1 << 4,
|
|
UPDATE_INCOMPLETE = 1 << 5,
|
|
UPDATE_PARTIAL = 1 << 6,
|
|
UPDATE_PENDING = 1 << 7,
|
|
} UpdateSetFlags;
|
|
|
|
const char* update_set_flags_to_color(UpdateSetFlags flags);
|
|
const char* update_set_flags_to_glyph(UpdateSetFlags flags);
|
|
const char* update_set_flags_to_string(UpdateSetFlags flags);
|