From 8665f6a432525473b9dcba296394e68a8f49d9f2 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 5 Mar 2021 11:47:33 -0500 Subject: [PATCH] Move 'struct lttng_enabler' to private headers This is an API change but the major SONAME bump to '1' gives us the opportunity to hide symbols that should have been private from the start. Change-Id: I2f6df1d8e5844aeb2e3311e7fb3608e9d55ebec5 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- include/lttng/ust-events.h | 21 --------------------- liblttng-ust/ust-events-internal.h | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 68f2a70a..e0d82aec 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -352,27 +352,6 @@ struct lttng_probe_desc { /* Data structures used by the tracer. */ -enum lttng_enabler_format_type { - LTTNG_ENABLER_FORMAT_STAR_GLOB, - LTTNG_ENABLER_FORMAT_EVENT, -}; - -/* - * Enabler field, within whatever object is enabling an event. Target of - * backward reference. - */ -struct lttng_enabler { - enum lttng_enabler_format_type format_type; - - /* head list of struct lttng_ust_filter_bytecode_node */ - struct cds_list_head filter_bytecode_head; - /* head list of struct lttng_ust_excluder_node */ - struct cds_list_head excluder_head; - - struct lttng_ust_event event_param; - unsigned int enabled:1; -}; - struct tp_list_entry { struct lttng_ust_tracepoint_iter tp; struct cds_list_head head; diff --git a/liblttng-ust/ust-events-internal.h b/liblttng-ust/ust-events-internal.h index e46a8b7c..1305a61f 100644 --- a/liblttng-ust/ust-events-internal.h +++ b/liblttng-ust/ust-events-internal.h @@ -15,6 +15,27 @@ #include #include +enum lttng_enabler_format_type { + LTTNG_ENABLER_FORMAT_STAR_GLOB, + LTTNG_ENABLER_FORMAT_EVENT, +}; + +/* + * Enabler field, within whatever object is enabling an event. Target of + * backward reference. + */ +struct lttng_enabler { + enum lttng_enabler_format_type format_type; + + /* head list of struct lttng_ust_filter_bytecode_node */ + struct cds_list_head filter_bytecode_head; + /* head list of struct lttng_ust_excluder_node */ + struct cds_list_head excluder_head; + + struct lttng_ust_event event_param; + unsigned int enabled:1; +}; + struct lttng_event_enabler { struct lttng_enabler base; struct cds_list_head node; /* per-session list of enablers */ -- 2.34.1