.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / include / lttng / action / rate-policy.h
index a3a288a28e715754675ebe7da5a2aae244623ef2..229e14c0da4ecf4876b144b395deb0a24f471340 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef LTTNG_RATE_POLICY_H
 #define LTTNG_RATE_POLICY_H
 
+#include <lttng/lttng-export.h>
+
 #include <inttypes.h>
 #include <sys/types.h>
 
@@ -36,8 +38,8 @@ enum lttng_rate_policy_type {
 /*
  * Get the type of a rate policy.
  */
-extern enum lttng_rate_policy_type lttng_rate_policy_get_type(
-               const struct lttng_rate_policy *policy);
+LTTNG_EXPORT extern enum lttng_rate_policy_type
+lttng_rate_policy_get_type(const struct lttng_rate_policy *policy);
 
 /*
  * Create a rate_policy of type `every n`.
@@ -49,8 +51,7 @@ extern enum lttng_rate_policy_type lttng_rate_policy_get_type(
  * rate_policy objects must be destroyed using the lttng_rate_policy_destroy()
  * function.
  */
-extern struct lttng_rate_policy *lttng_rate_policy_every_n_create(
-               uint64_t interval);
+LTTNG_EXPORT extern struct lttng_rate_policy *lttng_rate_policy_every_n_create(uint64_t interval);
 
 /*
  * Get the interval of a every N rate policy.
@@ -59,8 +60,8 @@ extern struct lttng_rate_policy *lttng_rate_policy_every_n_create(
  * on success, LTTNG_RATE_FIRING_POLICY_STATUS_INVALID if an invalid
  * parameter is passed.
  */
-extern enum lttng_rate_policy_status lttng_rate_policy_every_n_get_interval(
-               const struct lttng_rate_policy *policy, uint64_t *interval);
+LTTNG_EXPORT extern enum lttng_rate_policy_status
+lttng_rate_policy_every_n_get_interval(const struct lttng_rate_policy *policy, uint64_t *interval);
 
 /*
  * Create a rate_policy of type `once after N`.
@@ -73,8 +74,8 @@ extern enum lttng_rate_policy_status lttng_rate_policy_every_n_get_interval(
  * rate_policy objects must be destroyed using the lttng_rate_policy_destroy()
  * function.
  */
-extern struct lttng_rate_policy *lttng_rate_policy_once_after_n_create(
-               uint64_t threshold);
+LTTNG_EXPORT extern struct lttng_rate_policy *
+lttng_rate_policy_once_after_n_create(uint64_t threshold);
 
 /*
  * Get the threshold of a once after N rate policy.
@@ -83,14 +84,14 @@ extern struct lttng_rate_policy *lttng_rate_policy_once_after_n_create(
  * on success, LTTNG_RATE_POLICY_STATUS_INVALID if an invalid
  * parameter is passed.
  */
-extern enum lttng_rate_policy_status
-lttng_rate_policy_once_after_n_get_threshold(
-               const struct lttng_rate_policy *policy, uint64_t *threshold);
+LTTNG_EXPORT extern enum lttng_rate_policy_status
+lttng_rate_policy_once_after_n_get_threshold(const struct lttng_rate_policy *policy,
+                                            uint64_t *threshold);
 
 /*
  * Destroy (frees) a rate policy object.
  */
-extern void lttng_rate_policy_destroy(struct lttng_rate_policy *policy);
+LTTNG_EXPORT extern void lttng_rate_policy_destroy(struct lttng_rate_policy *policy);
 
 #ifdef __cplusplus
 }
This page took 0.024021 seconds and 4 git commands to generate.