Rename firing policy to rate policy
[lttng-tools.git] / include / lttng / action / snapshot-session.h
index f8d7ee3665a0c61f42e713973418f34f591f4fad..faa9b9fab8d8f56082e59946145647f0d047b530 100644 (file)
@@ -14,6 +14,7 @@ extern "C" {
 
 struct lttng_action;
 struct lttng_snapshot_output;
+struct lttng_rate_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 rate 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_rate_policy(
+               struct lttng_action *action,
+               const struct lttng_rate_policy *policy);
+
+/*
+ * Get the rate 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_rate_policy(
+               const struct lttng_action *action,
+               const struct lttng_rate_policy **policy);
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.023609 seconds and 4 git commands to generate.