summaryrefslogtreecommitdiff
path: root/src/shared/gpt.h
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-11-23 17:52:27 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2021-11-24 14:47:21 +0100
commit51d1c8f2feef9eac7c242354a79559ccc2dff174 (patch)
treec04fbf32113e160b4bb75296645229585707fc76 /src/shared/gpt.h
parent3c58ae13134abad5fb8ba10d6cc2345fcde8f19c (diff)
downloadsystemd-51d1c8f2feef9eac7c242354a79559ccc2dff174.tar.gz
gpt: Store the architecture in GptPartitionType
We also add a function gpt_partition_type_uuid_to_arch() to get the architecture of a partition type uuid.
Diffstat (limited to 'src/shared/gpt.h')
-rw-r--r--src/shared/gpt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/gpt.h b/src/shared/gpt.h
index fb9fb48546..9b335d02aa 100644
--- a/src/shared/gpt.h
+++ b/src/shared/gpt.h
@@ -5,6 +5,7 @@
#include "sd-id128.h"
+#include "architecture.h"
#include "id128-util.h"
#define GPT_ROOT_ALPHA SD_ID128_MAKE(65,23,f8,ae,3e,b1,4e,2a,a0,5a,18,b6,95,ae,65,6f)
@@ -288,9 +289,12 @@ const char *gpt_partition_type_uuid_to_string_harder(
char buffer[static ID128_UUID_STRING_MAX]);
int gpt_partition_type_uuid_from_string(const char *s, sd_id128_t *ret);
+Architecture gpt_partition_type_uuid_to_arch(sd_id128_t id);
+
typedef struct GptPartitionType {
sd_id128_t uuid;
const char *name;
+ Architecture arch;
} GptPartitionType;
extern const GptPartitionType gpt_partition_type_table[];