Skip to content
Snippets Groups Projects
Commit 321c873a authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Alexandre Viau
Browse files

configurationmanager: add debug output signal

- adds signal that can be emitted to pass debug data to a client

Change-Id: I5023b8aec91b46acf08a52e6b046765ba4c4786a
Tuleap: #790
parent afb5652b
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,8 @@ getSignalHandlers() ...@@ -73,6 +73,8 @@ getSignalHandlers()
exported_callback<DRing::ConfigurationSignal::GetHardwareAudioFormat>(), exported_callback<DRing::ConfigurationSignal::GetHardwareAudioFormat>(),
exported_callback<DRing::ConfigurationSignal::GetAppDataPath>(), exported_callback<DRing::ConfigurationSignal::GetAppDataPath>(),
#endif #endif
/* Debug */
exported_callback<DRing::DebugSignal::MessageSend>(),
/* Presence */ /* Presence */
exported_callback<DRing::PresenceSignal::NewServerSubscriptionRequest>(), exported_callback<DRing::PresenceSignal::NewServerSubscriptionRequest>(),
......
...@@ -268,4 +268,12 @@ struct ConfigurationSignal { ...@@ -268,4 +268,12 @@ struct ConfigurationSignal {
#endif #endif
}; };
// Can be used when a client's stdout is not available
struct DebugSignal {
struct MessageSend {
constexpr static const char* name = "MessageSend";
using cb_type = void(const std::string&);
};
};
} // namespace DRing } // namespace DRing
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment