UST 2.0 support
[lttng-tools.git] / ltt-sessiond / ust-ctl.h
index 36a3e8794c12c0c1831136470cda6519f58b94d2..a592abf2276d70cbfc7806a95873dfc53873e0dc 100644 (file)
@@ -3,8 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+ * as published by the Free Software Foundation; only version 2
+ * of the License.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 #ifndef _LTT_UST_CTL_H
 #define _LTT_UST_CTL_H
 
-#include "ltt-sessiond.h"
-#include "session.h"
+#include <lttng/lttng.h>
 
-int get_trace_count_per_session(struct ltt_session *session);
-void get_traces_per_session(struct ltt_session *session, struct lttng_trace *traces);
-int ust_create_trace(struct command_ctx *cmd_ctx);
-int ust_start_trace(struct command_ctx *cmd_ctx);
-int ust_stop_trace(struct command_ctx *cmd_ctx);
+#include "trace-ust.h"
 
-#endif /* _LTT_TRACE_H */
+#ifdef CONFIG_LTTNG_TOOLS_HAVE_UST
+
+int ustctl_register_done(int sock);
+int ustctl_create_channel(int sock, struct ltt_ust_session *session,
+               struct lttng_channel *channel);
+int ustctl_create_session(int sock, struct ltt_ust_session *session);
+int ustctl_destroy_session(int sock, struct ltt_ust_session *session);
+int ustctl_disable_channel(int sock, struct ltt_ust_session *session,
+               struct ltt_ust_channel *chan);
+int ustctl_enable_channel(int sock, struct ltt_ust_session *session,
+               struct ltt_ust_channel *chan);
+
+#else
+
+static inline
+int ustctl_register_done(int sock)
+{
+       return -ENOSYS;
+}
+static inline
+int ustctl_create_channel(int sock, struct ltt_ust_session *session,
+               struct lttng_channel *channel)
+{
+       return -ENOSYS;
+}
+static inline
+int ustctl_create_session(int sock, struct ltt_ust_session *session)
+{
+       return -ENOSYS;
+}
+static inline
+int ustctl_destroy_session(int sock, struct ltt_ust_session *session)
+{
+       return -ENOSYS;
+}
+static inline
+int ustctl_disable_channel(int sock, struct ltt_ust_session *session,
+               struct ltt_ust_channel *chan)
+{
+       return -ENOSYS;
+}
+static inline
+int ustctl_enable_channel(int sock, struct ltt_ust_session *session,
+               struct ltt_ust_channel *chan)
+{
+       return -ENOSYS;
+}
+
+#endif
+
+#endif /* _LTT_UST_CTL_H */
This page took 0.023576 seconds and 4 git commands to generate.