Add lttng_event_get_filter_string() to liblttng-ctl
[lttng-tools.git] / include / lttng / event.h
index 06a63ccba9dbb2626df9be08feb39707f0436d8b..a85f0f3b569ff002471a2f49af679ae35082177b 100644 (file)
@@ -295,6 +295,18 @@ struct lttng_event_field {
 extern int lttng_list_events(struct lttng_handle *handle,
                const char *channel_name, struct lttng_event **events);
 
+/*
+ * Get the filter string of a specific LTTng event.
+ *
+ * If the call is successful, then the filter string's address is put
+ * in *filter_string. If the event has no filter string, *filter_string
+ * is set to NULL. The caller does NOT own *filter_string.
+ *
+ * Returns 0 on success, or a negative LTTng error code on error.
+ */
+extern int lttng_event_get_filter_string(struct lttng_event *event,
+               const char **filter_string);
+
 /*
  * List the available tracepoints of a specific lttng domain.
  *
This page took 0.022971 seconds and 4 git commands to generate.