X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Faction%2Faction-internal.h;h=df400d5a3527588ddea04d928a0041785dae5022;hp=746b0a4d8ed0d3250181261d402e708479ea9d7c;hb=9b63a4aa352c184984395c097f86d5e54c295012;hpb=a58c490f0bff52a73717d31d04d1472629180de2 diff --git a/include/lttng/action/action-internal.h b/include/lttng/action/action-internal.h index 746b0a4d8..df400d5a3 100644 --- a/include/lttng/action/action-internal.h +++ b/include/lttng/action/action-internal.h @@ -21,11 +21,14 @@ #include #include #include +#include #include +#include typedef bool (*action_validate_cb)(struct lttng_action *action); typedef void (*action_destroy_cb)(struct lttng_action *action); -typedef ssize_t (*action_serialize_cb)(struct lttng_action *action, char *buf); +typedef int (*action_serialize_cb)(struct lttng_action *action, + struct lttng_dynamic_buffer *buf); struct lttng_action { enum lttng_action_type type; @@ -43,10 +46,15 @@ LTTNG_HIDDEN bool lttng_action_validate(struct lttng_action *action); LTTNG_HIDDEN -ssize_t lttng_action_serialize(struct lttng_action *action, char *buf); +int lttng_action_serialize(struct lttng_action *action, + struct lttng_dynamic_buffer *buf); LTTNG_HIDDEN ssize_t lttng_action_create_from_buffer(const struct lttng_buffer_view *view, struct lttng_action **action); +LTTNG_HIDDEN +enum lttng_action_type lttng_action_get_type_const( + const struct lttng_action *action); + #endif /* LTTNG_ACTION_INTERNAL_H */