X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-commands.h;fp=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-commands.h;h=50751a94d1ed4dc3c6cf6f2a4c68e55d6d4abf12;hp=0f76ee5a60f520bccb4c6b699b1be89a396e35fc;hb=ac16173e318279dee29504820e3c2ad8ea597712;hpb=2fb5e9b7971e2408dce182fcf7e87cd81dcb388b diff --git a/src/bin/lttng-sessiond/notification-thread-commands.h b/src/bin/lttng-sessiond/notification-thread-commands.h index 0f76ee5a6..50751a94d 100644 --- a/src/bin/lttng-sessiond/notification-thread-commands.h +++ b/src/bin/lttng-sessiond/notification-thread-commands.h @@ -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,