summaryrefslogtreecommitdiffstats
path: root/lib/uuid/uuid.h
diff options
context:
space:
mode:
authorJoe Thornber <thornber@redhat.com>2001-12-11 11:40:34 +0000
committerJoe Thornber <thornber@redhat.com>2001-12-11 11:40:34 +0000
commitdb73838ca4b5b66a3d9883d18cf3436155af2703 (patch)
treeed0b57381536c7e1e2b2e2b5bfd51d352cc56dd9 /lib/uuid/uuid.h
parent52864eda2e5929ce0baceec224bc55da7157515f (diff)
downloadlvm2-db73838ca4b5b66a3d9883d18cf3436155af2703.tar.gz
lvm2-db73838ca4b5b66a3d9883d18cf3436155af2703.tar.xz
lvm2-db73838ca4b5b66a3d9883d18cf3436155af2703.zip
o Pretty print and read for uuid's
Diffstat (limited to 'lib/uuid/uuid.h')
-rw-r--r--lib/uuid/uuid.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/uuid/uuid.h b/lib/uuid/uuid.h
index 15de1b7d..8e4a3ded 100644
--- a/lib/uuid/uuid.h
+++ b/lib/uuid/uuid.h
@@ -19,4 +19,15 @@ int id_create(struct id *id);
int id_valid(struct id *id);
int id_cmp(struct id *lhs, struct id *rhs);
+/*
+ * Fills 'buffer' with a more human readable form
+ * of the uuid.
+ */
+int id_write_format(struct id *id, char *buffer, size_t size);
+
+/*
+ * Reads a formatted uuid.
+ */
+int id_read_format(struct id *id, char *buffer);
+
#endif