summaryrefslogtreecommitdiff
path: root/qemu-common.h
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2011-01-26 11:54:58 +0100
committerKevin Wolf <kwolf@redhat.com>2011-01-31 10:03:00 +0100
commitd7142456c4c0a8793a7888e00ef7fbf0553f9c66 (patch)
treea054e5ca4a3b5f94b2bd1479c916a123aaa6fb7f /qemu-common.h
parentd0dcac833a767dade968a07aba4d116f162ebc72 (diff)
downloadqemu-d7142456c4c0a8793a7888e00ef7fbf0553f9c66.tar.gz
qemu-d7142456c4c0a8793a7888e00ef7fbf0553f9c66.tar.bz2
qemu-d7142456c4c0a8793a7888e00ef7fbf0553f9c66.zip
Add documentation for STRTOSZ_DEFSUFFIX_ macros
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r--qemu-common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h
index c351131623..79e1149ea1 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -153,6 +153,13 @@ int qemu_fls(int i);
int qemu_fdatasync(int fd);
int fcntl_setfl(int fd, int flag);
+/*
+ * strtosz() suffixes used to specify the default treatment of an
+ * argument passed to strtosz() without an explicit suffix.
+ * These should be defined using upper case characters in the range
+ * A-Z, as strtosz() will use qemu_toupper() on the given argument
+ * prior to comparison.
+ */
#define STRTOSZ_DEFSUFFIX_TB 'T'
#define STRTOSZ_DEFSUFFIX_GB 'G'
#define STRTOSZ_DEFSUFFIX_MB 'M'