Cleanup: relayd: centralize thread stopping function
[lttng-tools.git] / src / bin / lttng-sessiond / trace-ust.h
index d58e37121696e3a4fda50fe0990316de7950229b..674c2e29247c4f4d1ba3779bbefbcbadc72318f3 100644 (file)
@@ -78,20 +78,14 @@ struct ltt_ust_domain_global {
 struct ltt_ust_session {
        uint64_t id;    /* Unique identifier of session */
        struct ltt_ust_domain_global domain_global;
-       struct agent agent;
+       /* Hash table of agent indexed by agent domain. */
+       struct lttng_ht *agents;
        /* UID/GID of the user owning the session */
        uid_t uid;
        gid_t gid;
        /* Is the session active meaning has is been started or stopped. */
        unsigned int active:1;
-       /*
-        * Two consumer_output object are needed where one is for the current
-        * output object and the second one is the temporary object used to store
-        * URI being set by the lttng_set_consumer_uri call. Once
-        * lttng_enable_consumer is called, the two pointers are swapped.
-        */
        struct consumer_output *consumer;
-       struct consumer_output *tmp_consumer;
        /* Sequence number for filters so the tracer knows the ordering. */
        uint64_t filter_seq_num;
        /* This indicates which type of buffer this session is set for. */
@@ -157,6 +151,8 @@ struct ltt_ust_event *trace_ust_find_event(struct lttng_ht *ht,
                struct lttng_event_exclusion *exclusion);
 struct ltt_ust_channel *trace_ust_find_channel_by_name(struct lttng_ht *ht,
                char *name);
+struct agent *trace_ust_find_agent(struct ltt_ust_session *session,
+               enum lttng_domain_type domain_type);
 
 /*
  * Create functions malloc() the data structure.
@@ -257,6 +253,12 @@ void trace_ust_delete_channel(struct lttng_ht *ht,
 {
        return;
 }
+static inline
+struct agent *trace_ust_find_agent(struct ltt_ust_session *session,
+               enum lttng_domain_type domain_type)
+{
+       return NULL;
+}
 
 #endif /* HAVE_LIBLTTNG_UST_CTL */
 
This page took 0.026759 seconds and 4 git commands to generate.