CLI: Implement lttng clear session command
[lttng-tools.git] / src / common / mi-lttng.c
index 0191cbd0f6d09f7e6c83db096027f209c7f91795..b4be5f4374fb16c5d23265c73fcd77d6a57be39c 100644 (file)
@@ -77,6 +77,7 @@ const char * const mi_lttng_element_command_version = "version";
 const char * const mi_lttng_element_command_rotate = "rotate";
 const char * const mi_lttng_element_command_enable_rotation = "enable-rotation";
 const char * const mi_lttng_element_command_disable_rotation = "disable-rotation";
+const char * const mi_lttng_element_command_clear = "clear";
 
 /* Strings related to version command */
 const char * const mi_lttng_element_version = "version";
@@ -1280,8 +1281,8 @@ int mi_lttng_event_userspace_probe(struct mi_writer *writer,
                struct lttng_event *event)
 {
        int ret;
-       struct lttng_userspace_probe_location *location;
-       struct lttng_userspace_probe_location_lookup_method *lookup_method;
+       const struct lttng_userspace_probe_location *location;
+       const struct lttng_userspace_probe_location_lookup_method *lookup_method;
        enum lttng_userspace_probe_location_lookup_method_type lookup_type;
 
        location = lttng_event_get_userspace_probe_location(event);
This page took 0.023742 seconds and 5 git commands to generate.