X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Faction%2Frate-policy-internal.h;h=2f8267a31ad9b47ad23be80cf597f78d4f19045d;hb=740da7d5000ca1ffdcf14bda5096bf7ccfb86bdd;hp=03f6d973603783c243083f73442f18a1ccf88367;hpb=7f4d5b07cf7be895b38b69073389a4fcc318ec29;p=lttng-tools.git diff --git a/include/lttng/action/rate-policy-internal.h b/include/lttng/action/rate-policy-internal.h index 03f6d9736..2f8267a31 100644 --- a/include/lttng/action/rate-policy-internal.h +++ b/include/lttng/action/rate-policy-internal.h @@ -11,30 +11,39 @@ #include #include #include +#include #include -LTTNG_HIDDEN +#ifdef __cplusplus +extern "C" { +#endif + +struct mi_writer; + int lttng_rate_policy_serialize(struct lttng_rate_policy *rate_policy, struct lttng_payload *buf); -LTTNG_HIDDEN ssize_t lttng_rate_policy_create_from_payload(struct lttng_payload_view *view, struct lttng_rate_policy **rate_policy); -LTTNG_HIDDEN bool lttng_rate_policy_is_equal(const struct lttng_rate_policy *a, const struct lttng_rate_policy *b); -LTTNG_HIDDEN const char *lttng_rate_policy_type_string( enum lttng_rate_policy_type rate_policy_type); -LTTNG_HIDDEN struct lttng_rate_policy *lttng_rate_policy_copy( const struct lttng_rate_policy *source); -LTTNG_HIDDEN bool lttng_rate_policy_should_execute( const struct lttng_rate_policy *policy, uint64_t counter); +enum lttng_error_code lttng_rate_policy_mi_serialize( + const struct lttng_rate_policy *policy, + struct mi_writer *writer); + +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_RATE_POLICY */