Add serialization of trigger, condition and action classes
[lttng-tools.git] / include / lttng / condition / condition-internal.h
index a0a7c779378a3a873b17eda2445e9ca76fb1945e..62df6c1e812d49949f4fda6a3efc25eb5bb7ca10 100644 (file)
 
 typedef void (*condition_destroy_cb)(struct lttng_condition *condition);
 typedef bool (*condition_validate_cb)(struct lttng_condition *condition);
+typedef ssize_t (*condition_serialize_cb)(struct lttng_condition *condition,
+               char *buf);
 
 struct lttng_condition {
        enum lttng_condition_type type;
        condition_validate_cb validate;
+       condition_serialize_cb serialize;
        condition_destroy_cb destroy;
 };
 
+struct lttng_condition_comm {
+       int8_t condition_type;
+};
+
 LTTNG_HIDDEN
 bool lttng_condition_validate(struct lttng_condition *condition);
 
+LTTNG_HIDDEN
+ssize_t lttng_condition_serialize(struct lttng_condition *action, char *buf);
+
 #endif /* LTTNG_CONDITION_INTERNAL_H */
This page took 0.027742 seconds and 5 git commands to generate.