Refactoring: add back constness of public API structures
[lttng-ust.git] / liblttng-ust / event-notifier-notification.c
index b9b0a7c61412d3a392bb95a26cabb439884a039b..b3e2c94f1bd7a2d7180ad64256bcb325ea393e85 100644 (file)
@@ -64,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;
@@ -113,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;
@@ -164,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.024541 seconds and 4 git commands to generate.