-ssize_t lttng_condition_create_from_buffer(
- const struct lttng_buffer_view *buffer,
+ssize_t lttng_condition_create_from_payload(
+ struct lttng_payload_view *view,
struct lttng_condition **condition)
{
ssize_t ret, condition_size = 0;
const struct lttng_condition_comm *condition_comm;
struct lttng_condition **condition)
{
ssize_t ret, condition_size = 0;
const struct lttng_condition_comm *condition_comm;
condition_size += sizeof(*condition_comm);
switch ((enum lttng_condition_type) condition_comm->condition_type) {
case LTTNG_CONDITION_TYPE_BUFFER_USAGE_LOW:
condition_size += sizeof(*condition_comm);
switch ((enum lttng_condition_type) condition_comm->condition_type) {
case LTTNG_CONDITION_TYPE_BUFFER_USAGE_LOW:
- if (create_from_buffer) {
- const struct lttng_buffer_view view =
- lttng_buffer_view_from_view(buffer,
+ if (create_from_payload) {
+ struct lttng_payload_view condition_view =
+ lttng_payload_view_from_view(view,