summaryrefslogtreecommitdiffstats
path: root/genimage.h
diff options
context:
space:
mode:
authorStefan Sørensen <stefan.sorensen@spectralink.com>2019-01-16 10:12:04 +0100
committerStefan Sørensen <stefan.sorensen@spectralink.com>2019-02-12 09:29:54 +0100
commit2c92297e8a6f81224d65e274ecd4ac846e3b2667 (patch)
treefd1581b6e2c56f051f4569accf32c6540555aad4 /genimage.h
parent3f830849fc742bf5e81d627bc0d17177308e1606 (diff)
downloadgenimage-2c92297e8a6f81224d65e274ecd4ac846e3b2667.tar.gz
genimage-2c92297e8a6f81224d65e274ecd4ac846e3b2667.tar.xz
hdimage: Add GPT support
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Diffstat (limited to 'genimage.h')
-rw-r--r--genimage.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/genimage.h b/genimage.h
index d243f3c..60874e9 100644
--- a/genimage.h
+++ b/genimage.h
@@ -1,6 +1,8 @@
#ifndef __PTX_IMAGE_H
#define __PTX_IMAGE_H
+#include <stdint.h>
+#include <confuse.h>
#include "list.h"
struct image_handler;
@@ -41,6 +43,8 @@ struct partition {
int autoresize;
int in_partition_table;
const char *name;
+ const char *partition_type_uuid;
+ const char *partition_uuid;
};
struct image {
@@ -142,4 +146,11 @@ static inline const char *imageoutfile(const struct image *image)
{
return image->outfile;
}
+
+int uuid_validate(const char *str);
+void uuid_parse(const char *str, unsigned char *uuid);
+char *uuid_random(void);
+
+uint32_t crc32(const void *data, size_t len);
+
#endif /* __PTX_IMAGE_H */