X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fjul.h;h=1e32ea5558e9f756542c57d2a6a158c9ed03a815;hp=f7d3c48f8d078afd83eb4f015c3d6cb8ad3e3c72;hb=3c6a091f88fa6b237729cab17d6f6d227da82f59;hpb=f20baf8e44b5d8a1c90b8b029b876762f6f916a6 diff --git a/src/bin/lttng-sessiond/jul.h b/src/bin/lttng-sessiond/jul.h index f7d3c48f8..1e32ea555 100644 --- a/src/bin/lttng-sessiond/jul.h +++ b/src/bin/lttng-sessiond/jul.h @@ -91,6 +91,13 @@ struct jul_event { * for it. */ struct jul_domain { + /* + * This indicates if that domain is being used meaning if at least one + * event has been at some point in time added to it. This is used so when + * listing domains for a session, we can tell or not if the JUL is actually + * enabled. + */ + unsigned int being_used:1; /* * Contains JUL event indexed by name. */ @@ -124,5 +131,6 @@ void jul_destroy_app(struct jul_app *app); int jul_enable_event(struct jul_event *event); int jul_disable_event(struct jul_event *event); void jul_update(struct jul_domain *domain, int sock); +int jul_list_events(struct lttng_event **events); #endif /* _JUL_H */