summaryrefslogtreecommitdiffstats
path: root/src/sysupdate/sysupdate-update-set.h
blob: ed012025819a243c21c0343468d927d72eb73ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include <inttypes.h>
#include <stdbool.h>
#include <sys/types.h>

typedef struct UpdateSet UpdateSet;

#include "sysupdate-instance.h"
#include "sysupdate-update-set-flags.h"

struct UpdateSet {
        UpdateSetFlags flags;
        char *version;
        Instance **instances;
        size_t n_instances;
};

UpdateSet* update_set_free(UpdateSet *us);
int update_set_cmp(UpdateSet *const*a, UpdateSet *const*b);