diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-07-14 13:24:19 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-07-14 13:24:19 +0100 |
commit | 72be5b5baf1923fa224492c238fbb0739babff78 (patch) | |
tree | dbfed74f09ca7d3a771da987f6d61408d70218cf /tools/libxl/libxl_uuid.h | |
parent | 30c794d5c5cb8cb16ccf1b8c8b755db8d80dfeee (diff) | |
download | xen-72be5b5baf1923fa224492c238fbb0739babff78.tar.gz xen-72be5b5baf1923fa224492c238fbb0739babff78.tar.bz2 xen-72be5b5baf1923fa224492c238fbb0739babff78.zip |
libxl: add LIBXL_MAC_{FMT,FMTLEN,BYTES}
Modelled after LIBXL_UUID_... (where I also add FMTLEN).
signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_uuid.h')
-rw-r--r-- | tools/libxl/libxl_uuid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxl/libxl_uuid.h b/tools/libxl/libxl_uuid.h index e68ab6c14e..03dc2df32b 100644 --- a/tools/libxl/libxl_uuid.h +++ b/tools/libxl/libxl_uuid.h @@ -16,6 +16,7 @@ #define __LIBXL_UUID_H__ #define LIBXL_UUID_FMT "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx" +#define LIBXL_UUID_FMTLEN ((2*16)+4) /* 16 hex bytes plus 4 hypens */ #define LIBXL__UUID_BYTES(uuid) uuid[0], uuid[1], uuid[2], uuid[3], \ uuid[4], uuid[5], uuid[6], uuid[7], \ uuid[8], uuid[9], uuid[10], uuid[11], \ |