X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Factions%2Frate-policy.cpp;fp=src%2Fcommon%2Factions%2Frate-policy.cpp;h=c93ac0474347abed141d26cdcf1f53d262ea0215;hp=a25ee3e1572bfd79e6c5312f1cce8df32cea1d59;hb=e665dfbce25215d5ec77ff03a279c7163b337db1;hpb=28ab034a2c3582d07d3423d2d746731f87d3969f diff --git a/src/common/actions/rate-policy.cpp b/src/common/actions/rate-policy.cpp index a25ee3e15..c93ac0474 100644 --- a/src/common/actions/rate-policy.cpp +++ b/src/common/actions/rate-policy.cpp @@ -26,16 +26,15 @@ #define IS_ONCE_AFTER_N_RATE_POLICY(policy) \ (lttng_rate_policy_get_type(policy) == LTTNG_RATE_POLICY_TYPE_ONCE_AFTER_N) -typedef void (*rate_policy_destroy_cb)(struct lttng_rate_policy *rate_policy); -typedef int (*rate_policy_serialize_cb)(struct lttng_rate_policy *rate_policy, - struct lttng_payload *payload); -typedef bool (*rate_policy_equal_cb)(const struct lttng_rate_policy *a, - const struct lttng_rate_policy *b); -typedef ssize_t (*rate_policy_create_from_payload_cb)(struct lttng_payload_view *view, - struct lttng_rate_policy **rate_policy); -typedef struct lttng_rate_policy *(*rate_policy_copy_cb)(const struct lttng_rate_policy *source); -typedef enum lttng_error_code (*rate_policy_mi_serialize_cb)( - const struct lttng_rate_policy *rate_policy, struct mi_writer *writer); +using rate_policy_destroy_cb = void (*)(struct lttng_rate_policy *); +using rate_policy_serialize_cb = int (*)(struct lttng_rate_policy *, struct lttng_payload *); +using rate_policy_equal_cb = bool (*)(const struct lttng_rate_policy *, + const struct lttng_rate_policy *); +using rate_policy_create_from_payload_cb = ssize_t (*)(struct lttng_payload_view *, + struct lttng_rate_policy **); +using rate_policy_copy_cb = struct lttng_rate_policy *(*) (const struct lttng_rate_policy *); +using rate_policy_mi_serialize_cb = enum lttng_error_code (*)(const struct lttng_rate_policy *, + struct mi_writer *); struct lttng_rate_policy { enum lttng_rate_policy_type type;