[Spice-devel] [spice-xpi] Add missing logs when setting spice-xpi properties
Christophe Fergeau
cfergeau at redhat.com
Tue Jun 9 00:58:38 PDT 2015
spice-xpi was not logging changes to the smartcard, color-depth,
disable-effects and proxy properties
Resolves: rhbz#1049486
---
SpiceXPI/src/plugin/plugin.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp
index fdb4954..fa2c2d1 100644
--- a/SpiceXPI/src/plugin/plugin.cpp
+++ b/SpiceXPI/src/plugin/plugin.cpp
@@ -432,12 +432,14 @@ void nsPluginInstance::SetFullScreen(bool aFullScreen)
/* attribute boolean Smartcard; */
bool nsPluginInstance::GetSmartcard() const
{
+ LOG_DEBUG(m_smartcard);
return m_smartcard;
}
void nsPluginInstance::SetSmartcard(bool aSmartcard)
{
m_smartcard = aSmartcard;
+ LOG_DEBUG(m_smartcard);
}
/* attribute string Title; */
@@ -558,28 +560,33 @@ void nsPluginInstance::SetUsbAutoShare(bool aUsbAutoShare)
/* attribute string ColorDepth; */
char *nsPluginInstance::GetColorDepth() const
{
+ LOG_DEBUG(m_color_depth);
return stringCopy(m_color_depth);
}
void nsPluginInstance::SetColorDepth(const char *aColorDepth)
{
m_color_depth = aColorDepth;
+ LOG_DEBUG(m_color_depth);
}
/* attribute string DisableEffects; */
char *nsPluginInstance::GetDisableEffects() const
{
+ LOG_DEBUG(m_disable_effects);
return stringCopy(m_disable_effects);
}
void nsPluginInstance::SetDisableEffects(const char *aDisableEffects)
{
m_disable_effects = aDisableEffects;
+ LOG_DEBUG(m_disable_effects);
}
/* attribute string Proxy; */
char *nsPluginInstance::GetProxy() const
{
+ LOG_DEBUG(m_proxy);
return stringCopy(m_proxy);
}
@@ -587,6 +594,7 @@ void nsPluginInstance::SetProxy(const char *aProxy)
{
m_proxy = aProxy;
m_external_controller->SetProxy(m_proxy);
+ LOG_DEBUG(m_proxy);
}
void nsPluginInstance::WriteToPipe(const void *data, uint32_t size)
--
2.4.2
More information about the Spice-devel
mailing list