ust-ctl: use fixed-size integer rather than enum
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Jul 2016 20:27:54 +0000 (16:27 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Jul 2016 20:27:54 +0000 (16:27 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/lttng-ust-ctl.h

index c0723d095ab7002c821901ac9c1cae124a8f2b62..8ee80bac4ec8d50b845182da4848db3ab12f9242 100644 (file)
@@ -272,7 +272,7 @@ struct ustctl_integer_type {
        uint32_t signedness;
        uint32_t reverse_byte_order;
        uint32_t base;          /* 2, 8, 10, 16, for pretty print */
-       enum ustctl_string_encodings encoding;
+       int32_t encoding;
        uint16_t alignment;     /* in bits */
        char padding[USTCTL_UST_INTEGER_TYPE_PADDING];
 } LTTNG_PACKED;
@@ -309,7 +309,7 @@ struct ustctl_enum_entry {
 union _ustctl_basic_type {
        struct ustctl_integer_type integer;
        struct {
-               enum ustctl_string_encodings encoding;
+               int32_t encoding;
        } string;
        struct ustctl_float_type _float;
        struct {
This page took 0.026584 seconds and 5 git commands to generate.