- ssize_t ret, condition_size, evaluation_size, offset = 0;
- struct lttng_notification_comm notification_comm;
-
- if (!notification) {
- ret = -1;
+ int ret;
+ size_t header_offset, size_before_payload;
+ struct lttng_notification_comm notification_comm = { 0 };
+ struct lttng_notification_comm *header;
+
+ header_offset = buf->size;
+ ret = lttng_dynamic_buffer_append(buf, ¬ification_comm,
+ sizeof(notification_comm));
+ if (ret) {