Refactoring: add back constness of public API structures
[lttng-ust.git] / liblttng-ust / event-notifier-notification.c
index 422233265944f0dc991a90110f5027dabd508358..b3e2c94f1bd7a2d7180ad64256bcb325ea393e85 100644 (file)
@@ -14,6 +14,7 @@
 #include <usterr-signal-safe.h>
 #include <urcu/rculist.h>
 
+#include "lttng-tracer-core.h"
 #include "ust-events-internal.h"
 #include "../libmsgpack/msgpack.h"
 #include "lttng-bytecode.h"
@@ -63,7 +64,7 @@ void capture_enum(struct lttng_msgpack_writer *writer,
 
 static
 int64_t capture_sequence_element_signed(uint8_t *ptr,
-               struct lttng_ust_type_integer *integer_type)
+               const struct lttng_ust_type_integer *integer_type)
 {
        int64_t value;
        unsigned int size = integer_type->size;
@@ -112,7 +113,7 @@ int64_t capture_sequence_element_signed(uint8_t *ptr,
 
 static
 uint64_t capture_sequence_element_unsigned(uint8_t *ptr,
-               struct lttng_ust_type_integer *integer_type)
+               const struct lttng_ust_type_integer *integer_type)
 {
        uint64_t value;
        unsigned int size = integer_type->size;
@@ -163,8 +164,8 @@ static
 void capture_sequence(struct lttng_msgpack_writer *writer,
                struct lttng_interpreter_output *output)
 {
-       struct lttng_ust_type_integer *integer_type;
-       struct lttng_ust_type_common *nested_type;
+       const struct lttng_ust_type_integer *integer_type;
+       const struct lttng_ust_type_common *nested_type;
        uint8_t *ptr;
        bool signedness;
        int i;
This page took 0.024937 seconds and 4 git commands to generate.