Fix: event notifier: notification send should be a callback
[lttng-ust.git] / include / lttng / ust-events.h
index 721b0aed7ec57024a14b047ca291f89732b8e480..98513891501306f9bbd9095f64800e4e61bddc2e 100644 (file)
@@ -64,6 +64,7 @@ struct lttng_session;
 struct lttng_ust_lib_ring_buffer_ctx;
 struct lttng_ust_context_app;
 struct lttng_event_field;
+struct lttng_event_notifier;
 struct lttng_event_notifier_group;
 
 /*
@@ -511,9 +512,12 @@ struct lttng_event {
 
 struct lttng_event_notifier {
        uint64_t user_token;
+       uint64_t error_counter_index;
        int enabled;
        int registered;                 /* has reg'd tracepoint probe */
        size_t num_captures;            /* Needed to allocate the msgpack array. */
+       void (*notification_send)(struct lttng_event_notifier *event_notifier,
+               const char *stack_data);
        struct cds_list_head filter_bytecode_runtime_head;
        struct cds_list_head capture_bytecode_runtime_head;
        int has_enablers_without_bytecode;
@@ -750,10 +754,6 @@ int lttng_session_disable(struct lttng_session *session);
 int lttng_session_statedump(struct lttng_session *session);
 void lttng_session_destroy(struct lttng_session *session);
 
-void lttng_event_notifier_notification_send(
-               struct lttng_event_notifier *event_notifier,
-               const char *stack_data);
-
 struct lttng_channel *lttng_channel_create(struct lttng_session *session,
                                       const char *transport_name,
                                       void *buf_addr,
@@ -780,8 +780,6 @@ struct lttng_counter *lttng_ust_counter_create(
                const char *counter_transport_name,
                size_t number_dimensions, const struct lttng_counter_dimension *dimensions);
 
-void synchronize_trace(void);
-
 int lttng_probe_register(struct lttng_probe_desc *desc);
 void lttng_probe_unregister(struct lttng_probe_desc *desc);
 void lttng_probe_provider_unregister_events(struct lttng_probe_desc *desc);
This page took 0.023171 seconds and 4 git commands to generate.