]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: Add GPT_PARTITION_TYPE_UUID_TO_STRING_HARDER()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 Sep 2022 12:54:33 +0000 (14:54 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 Sep 2022 12:54:55 +0000 (14:54 +0200)
src/shared/gpt.h

index f6ed2d3eb5ecb10ce8c88d6bd2005e1c8b4b4d42..f673194d4af9f9df5cfdcf7c2c53d0791afd0f1f 100644 (file)
@@ -16,6 +16,9 @@ const char *gpt_partition_type_uuid_to_string_harder(
                 char buffer[static SD_ID128_UUID_STRING_MAX]);
 int gpt_partition_type_uuid_from_string(const char *s, sd_id128_t *ret);
 
+#define GPT_PARTITION_TYPE_UUID_TO_STRING_HARDER(id) \
+        gpt_partition_type_uuid_to_string_harder((id), (char[SD_ID128_UUID_STRING_MAX]) {})
+
 Architecture gpt_partition_type_uuid_to_arch(sd_id128_t id);
 
 typedef struct GptPartitionType {