X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Faction%2Fsnapshot-session.h;h=71af0563afbc2a6c83e32236c51f03f68d1f0ce3;hp=f8d7ee3665a0c61f42e713973418f34f591f4fad;hb=d35c7a3876fe55d0b6595c72e83e33d9f24e22c1;hpb=3474dcb1f4031cbd69fd39eb9a561cce3ddd6d63 diff --git a/include/lttng/action/snapshot-session.h b/include/lttng/action/snapshot-session.h index f8d7ee366..71af0563a 100644 --- a/include/lttng/action/snapshot-session.h +++ b/include/lttng/action/snapshot-session.h @@ -14,6 +14,7 @@ extern "C" { struct lttng_action; struct lttng_snapshot_output; +struct lttng_firing_policy; /* * Create a newly allocated snapshot-session action object. @@ -60,6 +61,27 @@ extern enum lttng_action_status lttng_action_snapshot_session_get_output( const struct lttng_action *action, const struct lttng_snapshot_output **output); +/* + * Set the firing policy of a snapshot session action. + * + * Returns LTTNG_ACTION_STATUS_OK on success, + * LTTNG_ACTION_STATUS_ERROR on internal error, + * LTTNG_ACTION_STATUS_INVALID if invalid parameters are passed. + */ +extern enum lttng_action_status lttng_action_snapshot_session_set_firing_policy( + struct lttng_action *action, + const struct lttng_firing_policy *policy); + +/* + * Get the firing policy of a snapshot session action. + * + * Returns LTTNG_ACTION_STATUS_OK on success, + * LTTNG_ACTION_STATUS_INVALID if invalid parameters are passed. + */ +extern enum lttng_action_status lttng_action_snapshot_session_get_firing_policy( + const struct lttng_action *action, + const struct lttng_firing_policy **policy); + #ifdef __cplusplus } #endif