about summary refs log tree commit diff stats
path: root/part_ids.h
diff options
context:
space:
mode:
authorPeter H. Froehlich <peter.hans.froehlich@gmail.com>2021-04-23 17:59:31 +0200
committerPeter H. Froehlich <peter.hans.froehlich@gmail.com>2021-04-23 17:59:31 +0200
commit9e51cfbfd2ab013cb5e8474e74a499827f73318f (patch)
tree67a859ab30bdf013bf289bcd108d18fbe3805390 /part_ids.h
parent5ce6e90c70378c63044b526f6a8196645971576a (diff)
downloadmkgpt-9e51cfbfd2ab013cb5e8474e74a499827f73318f.tar.gz
Replace fstypes.[ch] and make --type work for real.
Diffstat (limited to 'part_ids.h')
-rw-r--r--part_ids.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/part_ids.h b/part_ids.h
new file mode 100644
index 0000000..d686e0b
--- /dev/null
+++ b/part_ids.h
@@ -0,0 +1,19 @@
+#pragma once
+
+/* SPDX-License-Identifier: MIT */
+
+#ifndef PART_IDS_H
+#define PART_IDS_H
+
+#include "guid.h"
+
+/* Length of string-format GUID *excluding* NUL terminator. */
+#define GUID_STRLEN (sizeof("ABCDEF01-2345-6789-ABCD-EF0123456789") - 1)
+
+int
+valid_string_guid(const char str[GUID_STRLEN]);
+
+int
+parse_guid(const char *str, GUID *guid);
+
+#endif