Cleanup: jul.h include guards
[lttng-tools.git] / src / bin / lttng-sessiond / jul.h
index f7d3c48f8d078afd83eb4f015c3d6cb8ad3e3c72..72ca91c72bc52699aa4d413fac7cb7faad88087a 100644 (file)
@@ -15,8 +15,8 @@
  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef _JUL_H
-#define _JUL_H
+#ifndef LTTNG_SESSIOND_JUL_H
+#define LTTNG_SESSIOND_JUL_H
 
 #define _GNU_SOURCE
 #include <inttypes.h>
@@ -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 */
+#endif /* LTTNG_SESSIOND_JUL_H */
This page took 0.024179 seconds and 4 git commands to generate.