Fix: improve error message when UST support is disabled
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.h
index 92ac9c4e1e4af29af2f387cb82d50338fdb9bfcd..c9c47284c70a0a7a7558da949d839ceb2cbab7a6 100644 (file)
@@ -315,6 +315,12 @@ ssize_t ust_app_push_metadata(struct ust_registry_session *registry,
                struct consumer_socket *socket, int send_zero_data);
 void ust_app_destroy(struct ust_app *app);
 
+static inline
+int ust_app_supported(void)
+{
+       return 1;
+}
+
 #else /* HAVE_LIBLTTNG_UST_CTL */
 
 static inline
@@ -512,6 +518,12 @@ void ust_app_destroy(struct ust_app *app)
        return;
 }
 
+static inline
+int ust_app_supported(void)
+{
+       return 0;
+}
+
 #endif /* HAVE_LIBLTTNG_UST_CTL */
 
 #endif /* _LTT_UST_APP_H */
This page took 0.022989 seconds and 4 git commands to generate.