Fix: comment not matching code
[lttng-tools.git] / src / bin / lttng-sessiond / jul.h
index f7d3c48f8d078afd83eb4f015c3d6cb8ad3e3c72..4aa0ef144dbbb78f33fb8aa07f095cb30f02fb04 100644 (file)
@@ -39,8 +39,9 @@ struct jul_register_msg {
 };
 
 /*
- * JUL application object created after a successful registration. This object
- * is kept inside an UST app.
+ * JUL application object created after a successful registration. This
+ * object is linked to its associated UST app by their PID through hash
+ * table lookups.
  */
 struct jul_app {
        /*
@@ -91,6 +92,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 +132,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 */
This page took 0.023696 seconds and 4 git commands to generate.