Commit 321c873a authored by atraczyk's avatar atraczyk 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
...@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment