summaryrefslogtreecommitdiffstats
path: root/src/shared/gpt.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-01-17 11:34:13 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-01-23 23:32:13 +0100
commitdc972b0740714a9798fed0e20bc78efa0c5ad9a7 (patch)
treeb554833455f93a7f0dbbe8ffd7628d20d135bef8 /src/shared/gpt.h
parentshared/gpt: export gpt_partition_type_uuid_{to,from}_string functions (diff)
downloadsystemd-dc972b0740714a9798fed0e20bc78efa0c5ad9a7.tar.xz
systemd-dc972b0740714a9798fed0e20bc78efa0c5ad9a7.zip
systemd-id128: add new verb to print GPT partitions UUIDs
Diffstat (limited to 'src/shared/gpt.h')
-rw-r--r--src/shared/gpt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/gpt.h b/src/shared/gpt.h
index a07bd63017..dcceb076d6 100644
--- a/src/shared/gpt.h
+++ b/src/shared/gpt.h
@@ -73,3 +73,10 @@ const char *gpt_partition_type_uuid_to_string_harder(
sd_id128_t id,
char buffer[static ID128_UUID_STRING_MAX]);
int gpt_partition_type_uuid_from_string(const char *s, sd_id128_t *ret);
+
+typedef struct GptPartitionType {
+ sd_id128_t uuid;
+ const char *name;
+} GptPartitionType;
+
+extern const GptPartitionType gpt_partition_type_table[];