Refactoring: struct lttng_ust_channel_ops
[lttng-ust.git] / liblttng-ust / lttng-ring-buffer-metadata-client.h
index ae606b4cc21a577cd0b85746ef273d8bc4f357a4..2b2aae7dc9920b5a5ce56e9401d3831450ce1cfa 100644 (file)
@@ -320,15 +320,18 @@ static struct lttng_transport lttng_relay_transport = {
        .ops = {
                .struct_size = sizeof(struct lttng_ust_channel_ops),
 
-               .channel_create = _channel_create,
-               .channel_destroy = lttng_channel_destroy,
+               .priv = __LTTNG_COMPOUND_LITERAL(struct lttng_ust_channel_ops_private, {
+                       .pub = &lttng_relay_transport.ops,
+                       .channel_create = _channel_create,
+                       .channel_destroy = lttng_channel_destroy,
+                       .packet_avail_size = lttng_packet_avail_size,
+                       .is_finalized = lttng_is_finalized,
+                       .is_disabled = lttng_is_disabled,
+                       .flush_buffer = lttng_flush_buffer,
+               }),
                .event_reserve = lttng_event_reserve,
                .event_commit = lttng_event_commit,
                .event_write = lttng_event_write,
-               .packet_avail_size = lttng_packet_avail_size,
-               .is_finalized = lttng_is_finalized,
-               .is_disabled = lttng_is_disabled,
-               .flush_buffer = lttng_flush_buffer,
        },
        .client_config = &client_config,
 };
This page took 0.024105 seconds and 4 git commands to generate.