X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Factions%2Faction.c;h=6894036cb779d09ced9c5acee4dacf9a2e99d876;hp=982ca45ff27619f3c52d1ba6a15e937ae4b2b647;hb=6acb3f46333c25d5a2f3a3ff8158956a4689031e;hpb=869a3c2d29b8c75cc3b30f76ebd38c9a8b239018;ds=sidebyside diff --git a/src/common/actions/action.c b/src/common/actions/action.c index 982ca45ff..6894036cb 100644 --- a/src/common/actions/action.c +++ b/src/common/actions/action.c @@ -22,6 +22,20 @@ enum lttng_action_type lttng_action_get_type_const( return action->type; } +LTTNG_HIDDEN +void lttng_action_init( + struct lttng_action *action, + enum lttng_action_type type, + action_validate_cb validate, + action_serialize_cb serialize, + action_destroy_cb destroy) +{ + action->type = type; + action->validate = validate; + action->serialize = serialize; + action->destroy = destroy; +} + void lttng_action_destroy(struct lttng_action *action) { if (!action) {