X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fmetadata-bucket.hpp;h=ca9ee28c5adaa8ac7beb359259ccbcfb0aea936a;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hp=2c6961c88d2df0acb42942b4027313019900d6b2;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/consumer/metadata-bucket.hpp b/src/common/consumer/metadata-bucket.hpp index 2c6961c88..ca9ee28c5 100644 --- a/src/common/consumer/metadata-bucket.hpp +++ b/src/common/consumer/metadata-bucket.hpp @@ -12,21 +12,19 @@ struct metadata_bucket; -typedef ssize_t (*metadata_bucket_flush_cb)( - const struct stream_subbuffer *buffer, void *data); +using metadata_bucket_flush_cb = ssize_t (*)(const struct stream_subbuffer *, void *); enum metadata_bucket_status { METADATA_BUCKET_STATUS_OK, METADATA_BUCKET_STATUS_ERROR, }; -struct metadata_bucket *metadata_bucket_create( - metadata_bucket_flush_cb flush, void *data); +struct metadata_bucket *metadata_bucket_create(metadata_bucket_flush_cb flush, void *data); void metadata_bucket_destroy(struct metadata_bucket *bucket); enum metadata_bucket_status metadata_bucket_fill(struct metadata_bucket *bucket, - const struct stream_subbuffer *buffer); + const struct stream_subbuffer *buffer); void metadata_bucket_reset(struct metadata_bucket *bucket);