X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-timer.cpp;fp=src%2Fcommon%2Fconsumer%2Fconsumer-timer.cpp;h=864ef6e9f7b57bf0be8cf44df0df1c8d9540c048;hp=fa496336d8643e84018e2ca286018b70078fad50;hb=e665dfbce25215d5ec77ff03a279c7163b337db1;hpb=28ab034a2c3582d07d3423d2d746731f87d3969f diff --git a/src/common/consumer/consumer-timer.cpp b/src/common/consumer/consumer-timer.cpp index fa496336d..864ef6e9f 100644 --- a/src/common/consumer/consumer-timer.cpp +++ b/src/common/consumer/consumer-timer.cpp @@ -20,10 +20,10 @@ #include #include -typedef int (*sample_positions_cb)(struct lttng_consumer_stream *stream); -typedef int (*get_consumed_cb)(struct lttng_consumer_stream *stream, unsigned long *consumed); -typedef int (*get_produced_cb)(struct lttng_consumer_stream *stream, unsigned long *produced); -typedef int (*flush_index_cb)(struct lttng_consumer_stream *stream); +using sample_positions_cb = int (*)(struct lttng_consumer_stream *); +using get_consumed_cb = int (*)(struct lttng_consumer_stream *, unsigned long *); +using get_produced_cb = int (*)(struct lttng_consumer_stream *, unsigned long *); +using flush_index_cb = int (*)(struct lttng_consumer_stream *); static struct timer_signal_data timer_signal = { .tid = 0,