Build fix: specialization of template in different namespace
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.hpp
index f9238edc35c0830c28b6e6e9702358b3f9fed801..0db462e7d7fe22d8eb8194c1418e2ca7ab8541e4 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "trace-ust.hpp"
 #include "ust-registry.hpp"
+#include "ust-registry-session.hpp"
 #include "session.hpp"
 
 #define UST_APP_EVENT_LIST_SIZE 32
@@ -325,19 +326,20 @@ struct ust_app {
        struct lttng_ht *token_to_event_notifier_rule_ht;
 };
 
+namespace fmt {
 template <>
-struct fmt::formatter<ust_app> : fmt::formatter<std::string> {
+struct formatter<ust_app> : formatter<std::string> {
        template <typename FormatCtx>
        typename FormatCtx::iterator format(const ust_app& app, FormatCtx& ctx)
        {
-               return fmt::format_to(ctx.out(),
+               return format_to(ctx.out(),
                                "{{ procname = `{}`, ppid = {}, pid = {}, uid = {}, gid = {}, version = {}.{}, registration time = {} }}",
                                app.name, app.ppid, app.pid, app.uid, app.gid, app.v_major,
                                app.v_minor,
                                lttng::utils::time_to_iso8601_str(app.registration_time));
        }
 };
-
+} /* namespace fmt */
 
 #ifdef HAVE_LIBLTTNG_UST_CTL
 
@@ -376,7 +378,7 @@ int ust_app_recv_notify(int sock);
 void ust_app_add(struct ust_app *app);
 struct ust_app *ust_app_create(struct ust_register_msg *msg, int sock);
 void ust_app_notify_sock_unregister(int sock);
-ssize_t ust_app_push_metadata(const ust_registry_session::locked_ptr& registry,
+ssize_t ust_app_push_metadata(const lttng::sessiond::ust::registry_session::locked_ptr& registry,
                struct consumer_socket *socket,
                int send_zero_data);
 void ust_app_destroy(struct ust_app *app);
@@ -626,7 +628,7 @@ void ust_app_notify_sock_unregister(int sock __attribute__((unused)))
 
 static inline
 ssize_t ust_app_push_metadata(
-               ust_registry_session *registry __attribute__((unused)),
+               lttng::sessiond::ust::registry_session *registry __attribute__((unused)),
                struct consumer_socket *socket __attribute__((unused)),
                int send_zero_data __attribute__((unused)))
 {
This page took 0.026851 seconds and 4 git commands to generate.