projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b52dc7
)
shared: Add GPT_PARTITION_TYPE_UUID_TO_STRING_HARDER()
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Thu, 22 Sep 2022 12:54:33 +0000
(14:54 +0200)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Thu, 22 Sep 2022 12:54:55 +0000
(14:54 +0200)
src/shared/gpt.h
patch
|
blob
|
history
diff --git
a/src/shared/gpt.h
b/src/shared/gpt.h
index f6ed2d3eb5ecb10ce8c88d6bd2005e1c8b4b4d42..f673194d4af9f9df5cfdcf7c2c53d0791afd0f1f 100644
(file)
--- a/
src/shared/gpt.h
+++ b/
src/shared/gpt.h
@@
-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 {