X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Faction%2Fstop-session.h;h=5b223ef23fbfa846a893b5a266801388a8f87941;hb=4bd69c5f1161cd065f487da0f4c1aa03a73c47e4;hp=f4f598f2d7c5138dab60341c94ac08384df80a3b;hpb=a5ec75db878313d37198b9b7683c8140f0198998;p=lttng-tools.git diff --git a/include/lttng/action/stop-session.h b/include/lttng/action/stop-session.h index f4f598f2d..5b223ef23 100644 --- a/include/lttng/action/stop-session.h +++ b/include/lttng/action/stop-session.h @@ -8,8 +8,10 @@ #ifndef LTTNG_ACTION_STOP_SESSION_H #define LTTNG_ACTION_STOP_SESSION_H +#include + struct lttng_action; -struct lttng_firing_policy; +struct lttng_rate_policy; #ifdef __cplusplus extern "C" { @@ -25,42 +27,42 @@ extern "C" { * Returns a new action on success, NULL on failure. This action must be * destroyed using lttng_action_destroy(). */ -extern struct lttng_action *lttng_action_stop_session_create(void); +LTTNG_EXPORT extern struct lttng_action *lttng_action_stop_session_create(void); /* * Set the session name of an lttng_action object of type * LTTNG_ACTION_TYPE_STOP_SESSION. */ -extern enum lttng_action_status lttng_action_stop_session_set_session_name( +LTTNG_EXPORT extern enum lttng_action_status lttng_action_stop_session_set_session_name( struct lttng_action *action, const char *session_name); /* * Get the session name of an lttng_action object of type * LTTNG_ACTION_TYPE_STOP_SESSION. */ -extern enum lttng_action_status lttng_action_stop_session_get_session_name( +LTTNG_EXPORT extern enum lttng_action_status lttng_action_stop_session_get_session_name( const struct lttng_action *action, const char **session_name); /* - * Set the firing policy of a stop session action. + * Set the rate policy of a stop 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_stop_session_set_firing_policy( +LTTNG_EXPORT extern enum lttng_action_status lttng_action_stop_session_set_rate_policy( struct lttng_action *action, - const struct lttng_firing_policy *policy); + const struct lttng_rate_policy *policy); /* - * Get the firing policy of a stop session action. + * Get the rate policy of a stop 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_stop_session_get_firing_policy( +LTTNG_EXPORT extern enum lttng_action_status lttng_action_stop_session_get_rate_policy( const struct lttng_action *action, - const struct lttng_firing_policy **policy); + const struct lttng_rate_policy **policy); #ifdef __cplusplus }