Implement firing policy for the snapshot session action
[lttng-tools.git] / include / lttng / action / snapshot-session.h
index f8d7ee3665a0c61f42e713973418f34f591f4fad..71af0563afbc2a6c83e32236c51f03f68d1f0ce3 100644 (file)
@@ -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
This page took 0.023079 seconds and 4 git commands to generate.