#include <stdbool.h>
typedef void (*evaluation_destroy_cb)(struct lttng_evaluation *evaluation);
+typedef ssize_t (*evaluation_serialize_cb)(struct lttng_evaluation *evaluation,
+ char *buf);
struct lttng_evaluation_comm {
/* enum lttng_condition_type type */
int8_t type;
+ char payload[];
} LTTNG_PACKED;
struct lttng_evaluation {
enum lttng_condition_type type;
+ evaluation_serialize_cb serialize;
evaluation_destroy_cb destroy;
};
+LTTNG_HIDDEN
+ssize_t lttng_evaluation_create_from_buffer(const char *buf,
+ struct lttng_evaluation **evaluation);
+
+LTTNG_HIDDEN
+ssize_t lttng_evaluation_serialize(struct lttng_evaluation *evaluation,
+ char *buf);
+
#endif /* LTTNG_EVALUATION_INTERNAL_H */