X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Faction%2Frotate-session.h;h=b05cd8426c581cbc1d1616bbfb3f7b0b8844ab04;hb=c2c584344de5929117f84f3a2a9ad3f5e3c578ca;hp=750c0739a48eba337f6787a6c388a3ebfce13d43;hpb=193cc91116c28031986caa999aba72de60a9a774;p=lttng-tools.git diff --git a/include/lttng/action/rotate-session.h b/include/lttng/action/rotate-session.h index 750c0739a..b05cd8426 100644 --- a/include/lttng/action/rotate-session.h +++ b/include/lttng/action/rotate-session.h @@ -9,6 +9,7 @@ #define LTTNG_ACTION_ROTATE_SESSION_H struct lttng_action; +struct lttng_firing_policy; #ifdef __cplusplus extern "C" { @@ -40,6 +41,27 @@ extern enum lttng_action_status lttng_action_rotate_session_set_session_name( extern enum lttng_action_status lttng_action_rotate_session_get_session_name( const struct lttng_action *action, const char **session_name); +/* + * Set the firing policy of a rotate 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_rotate_session_set_firing_policy( + struct lttng_action *action, + const struct lttng_firing_policy *policy); + +/* + * Get the firing policy of a rotate 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_rotate_session_get_firing_policy( + const struct lttng_action *action, + const struct lttng_firing_policy **policy); + #ifdef __cplusplus } #endif