sessiond: clean-up: trigger to unregister can be 'const'
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-commands.h
index 0f76ee5a60f520bccb4c6b699b1be89a396e35fc..50751a94d1ed4dc3c6cf6f2a4c68e55d6d4abf12 100644 (file)
@@ -39,8 +39,14 @@ struct notification_thread_command {
 
        enum notification_thread_command_type type;
        union {
-               /* Register/Unregister trigger. */
-               struct lttng_trigger *trigger;
+               /* Register trigger. */
+               struct {
+                       struct lttng_trigger *trigger;
+               } register_trigger;
+               /* Unregister trigger. */
+               struct {
+                       const struct lttng_trigger *trigger;
+               } unregister_trigger;
                /* Add channel. */
                struct {
                        struct {
@@ -102,7 +108,7 @@ enum lttng_error_code notification_thread_command_register_trigger(
 
 enum lttng_error_code notification_thread_command_unregister_trigger(
                struct notification_thread_handle *handle,
-               struct lttng_trigger *trigger);
+               const struct lttng_trigger *trigger);
 
 enum lttng_error_code notification_thread_command_add_channel(
                struct notification_thread_handle *handle,
This page took 0.024687 seconds and 4 git commands to generate.