[spice-xpi] Add missing logs when setting spice-xpi properties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]