Refactoring: struct lttng_ust_channel_ops
[lttng-ust.git] / include / lttng / ust-events.h
index 703bd24cc06d4bb8da1c24655fde73a5dd7ba844..5025b1877f58d9e1e337b757a9bae6de54a6e6f4 100644 (file)
@@ -438,6 +438,7 @@ struct lttng_ust_event_notifier {
 
 struct lttng_ust_lib_ring_buffer_channel;
 struct lttng_ust_shm_handle;
+struct lttng_ust_channel_ops_private;
 
 /*
  * IMPORTANT: this structure is part of the ABI between the probe and
@@ -451,32 +452,13 @@ struct lttng_ust_shm_handle;
 struct lttng_ust_channel_ops {
        uint32_t struct_size;
 
-       struct lttng_channel *(*channel_create)(const char *name,
-                       void *buf_addr,
-                       size_t subbuf_size, size_t num_subbuf,
-                       unsigned int switch_timer_interval,
-                       unsigned int read_timer_interval,
-                       unsigned char *uuid,
-                       uint32_t chan_id,
-                       const int *stream_fds, int nr_stream_fds,
-                       int64_t blocking_timeout);
-       void (*channel_destroy)(struct lttng_channel *chan);
+       struct lttng_ust_channel_ops_private *priv;     /* Private channel ops interface */
+
        int (*event_reserve)(struct lttng_ust_lib_ring_buffer_ctx *ctx,
                             uint32_t event_id);
        void (*event_commit)(struct lttng_ust_lib_ring_buffer_ctx *ctx);
        void (*event_write)(struct lttng_ust_lib_ring_buffer_ctx *ctx,
                        const void *src, size_t len);
-       /*
-        * packet_avail_size returns the available size in the current
-        * packet. Note that the size returned is only a hint, since it
-        * may change due to concurrent writes.
-        */
-       size_t (*packet_avail_size)(struct lttng_ust_lib_ring_buffer_channel *chan,
-                                   struct lttng_ust_shm_handle *handle);
-       int (*is_finalized)(struct lttng_ust_lib_ring_buffer_channel *chan);
-       int (*is_disabled)(struct lttng_ust_lib_ring_buffer_channel *chan);
-       int (*flush_buffer)(struct lttng_ust_lib_ring_buffer_channel *chan,
-                           struct lttng_ust_shm_handle *handle);
        void (*event_strcpy)(struct lttng_ust_lib_ring_buffer_ctx *ctx,
                        const char *src, size_t len);
 
This page took 0.023338 seconds and 4 git commands to generate.