X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Faction%2Frate-policy.h;fp=include%2Flttng%2Faction%2Frate-policy.h;h=1cd0126e3dd52b6eeeaac3fccb94cf82d6a20dcd;hp=a3a288a28e715754675ebe7da5a2aae244623ef2;hb=4bd69c5f1161cd065f487da0f4c1aa03a73c47e4;hpb=657d1bf105996bf8f6e13af697fb1112afa61b28 diff --git a/include/lttng/action/rate-policy.h b/include/lttng/action/rate-policy.h index a3a288a28..1cd0126e3 100644 --- a/include/lttng/action/rate-policy.h +++ b/include/lttng/action/rate-policy.h @@ -9,6 +9,7 @@ #define LTTNG_RATE_POLICY_H #include +#include #include struct lttng_rate_policy; @@ -36,7 +37,7 @@ enum lttng_rate_policy_type { /* * Get the type of a rate policy. */ -extern enum lttng_rate_policy_type lttng_rate_policy_get_type( +LTTNG_EXPORT extern enum lttng_rate_policy_type lttng_rate_policy_get_type( const struct lttng_rate_policy *policy); /* @@ -49,7 +50,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( +LTTNG_EXPORT extern struct lttng_rate_policy *lttng_rate_policy_every_n_create( uint64_t interval); /* @@ -59,7 +60,7 @@ 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( +LTTNG_EXPORT extern enum lttng_rate_policy_status lttng_rate_policy_every_n_get_interval( const struct lttng_rate_policy *policy, uint64_t *interval); /* @@ -73,7 +74,7 @@ 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( +LTTNG_EXPORT extern struct lttng_rate_policy *lttng_rate_policy_once_after_n_create( uint64_t threshold); /* @@ -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_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 }