Various fixes for prototype branch
[lttng-tools.git] / include / lttng / condition / evaluation-internal.h
index e73411d5c844e162602b6174d0378ae902afdeb6..f52707ca77dfe50a3e15bc12a69ae0e9d024e96b 100644 (file)
 #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 */
This page took 0.026747 seconds and 5 git commands to generate.