X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fevent.h;h=a85f0f3b569ff002471a2f49af679ae35082177b;hp=06a63ccba9dbb2626df9be08feb39707f0436d8b;hb=d31d3e8cf774b98a8ed46b8c7f6273364360f246;hpb=b4e3ceb9d379829bc5d6ec799f83086317aeafd8 diff --git a/include/lttng/event.h b/include/lttng/event.h index 06a63ccba..a85f0f3b5 100644 --- a/include/lttng/event.h +++ b/include/lttng/event.h @@ -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. *