X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fcondition%2Fevaluation-internal.h;h=45a72daa0401a5ec920d19a9991f46b21719c8e6;hb=9b63a4aa352c184984395c097f86d5e54c295012;hp=95119b37e97ea6bdab84d2814d6a42baa9653a5d;hpb=3647288fe42b25340f905046f3bd9aef21e12aaa;p=lttng-tools.git diff --git a/include/lttng/condition/evaluation-internal.h b/include/lttng/condition/evaluation-internal.h index 95119b37e..45a72daa0 100644 --- a/include/lttng/condition/evaluation-internal.h +++ b/include/lttng/condition/evaluation-internal.h @@ -26,7 +26,8 @@ #include typedef void (*evaluation_destroy_cb)(struct lttng_evaluation *evaluation); -typedef int (*evaluation_serialize_cb)(struct lttng_evaluation *evaluation, +typedef int (*evaluation_serialize_cb)( + const struct lttng_evaluation *evaluation, struct lttng_dynamic_buffer *buf); struct lttng_evaluation_comm { @@ -41,12 +42,16 @@ struct lttng_evaluation { evaluation_destroy_cb destroy; }; +LTTNG_HIDDEN +void lttng_evaluation_init(struct lttng_evaluation *evaluation, + enum lttng_condition_type type); + LTTNG_HIDDEN ssize_t lttng_evaluation_create_from_buffer(const struct lttng_buffer_view *view, struct lttng_evaluation **evaluation); LTTNG_HIDDEN -int lttng_evaluation_serialize(struct lttng_evaluation *evaluation, +int lttng_evaluation_serialize(const struct lttng_evaluation *evaluation, struct lttng_dynamic_buffer *buf); #endif /* LTTNG_EVALUATION_INTERNAL_H */