Build fix: missing initializer for member 'payload'
[lttng-tools.git] / src / common / notification.cpp
index 77e61f21ae60c7a6168ed0feca12fabea758b943..51e5693cd464fb2bb4ebd96c0c60862da6b5ca3d 100644 (file)
@@ -40,9 +40,11 @@ int lttng_notification_serialize(const struct lttng_notification *notification,
 {
        int ret;
        size_t header_offset, size_before_payload;
-       struct lttng_notification_comm notification_comm = { 0 };
+       struct lttng_notification_comm notification_comm;
        struct lttng_notification_comm *header;
 
+       notification_comm.length = 0;
+
        header_offset = payload->buffer.size;
        ret = lttng_dynamic_buffer_append(&payload->buffer, &notification_comm,
                        sizeof(notification_comm));
@@ -175,6 +177,24 @@ const struct lttng_evaluation *lttng_notification_get_evaluation(
        return notification ? notification->evaluation : NULL;
 }
 
+const struct lttng_condition *lttng_notification_get_const_condition(
+               const struct lttng_notification *notification)
+{
+       return notification ? lttng_trigger_get_const_condition(notification->trigger) : NULL;
+}
+
+const struct lttng_evaluation *lttng_notification_get_const_evaluation(
+               const struct lttng_notification *notification)
+{
+       return notification ? notification->evaluation : NULL;
+}
+
+const struct lttng_trigger *lttng_notification_get_const_trigger(
+               const struct lttng_notification *notification)
+{
+       return notification ? notification->trigger : NULL;
+}
+
 const struct lttng_trigger *lttng_notification_get_trigger(
                struct lttng_notification *notification)
 {
This page took 0.024094 seconds and 4 git commands to generate.