STATIC_DESTRUCTOR_REGISTER(arg_tpm2_public_key, freep);
STATIC_DESTRUCTOR_REGISTER(arg_filter_partitions, freep);
-typedef struct Partition Partition;
typedef struct FreeArea FreeArea;
-typedef struct Context Context;
typedef enum EncryptMode {
ENCRYPT_OFF,
_VERITY_MODE_INVALID = -EINVAL,
} VerityMode;
-struct Partition {
+typedef struct Partition {
char *definition_path;
char **drop_in_files;
char *split_name_format;
char *split_path;
- Partition *siblings[_VERITY_MODE_MAX];
+ struct Partition *siblings[_VERITY_MODE_MAX];
- LIST_FIELDS(Partition, partitions);
-};
+ LIST_FIELDS(struct Partition, partitions);
+} Partition;
#define PARTITION_IS_FOREIGN(p) (!(p)->definition_path)
#define PARTITION_EXISTS(p) (!!(p)->current_partition)
uint64_t allocated;
};
-struct Context {
+typedef struct Context {
LIST_HEAD(Partition, partitions);
size_t n_partitions;
int backing_fd;
bool from_scratch;
-};
+} Context;
static const char *encrypt_mode_table[_ENCRYPT_MODE_MAX] = {
[ENCRYPT_OFF] = "off",