[banshee] Hardware: Remove property-getter methods from IDevice



commit 21bc201b46377e3e3994a73f98b0ae9df990d5f2
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Sat Feb 19 12:09:26 2011 -0600

    Hardware: Remove property-getter methods from IDevice
    
    Only use them if building with the legacy ipod-sharp-based iPod support.

 build/build.rules.mk                               |    6 +++++-
 .../Banshee.Services/Banshee.Hardware/IDevice.cs   |    2 ++
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/build/build.rules.mk b/build/build.rules.mk
index 621d62c..9b2be41 100644
--- a/build/build.rules.mk
+++ b/build/build.rules.mk
@@ -26,6 +26,10 @@ if ENABLE_ATK
     ENABLE_ATK_FLAG = "-define:ENABLE_ATK"
 endif
 
+if ENABLE_IPOD
+    LEGACY_IPOD_FLAG = "-define:LEGACY_IPOD_SUPPORT"
+endif
+
 FILTERED_LINK = $(shell echo "$(LINK)" | $(UNIQUE_FILTER_PIPE))
 DEP_LINK = $(shell echo "$(LINK)" | $(UNIQUE_FILTER_PIPE) | sed s,-r:,,g | grep '$(top_builddir)/bin/')
 
@@ -65,7 +69,7 @@ $(ASSEMBLY_FILE): $(SOURCES_BUILD) $(RESOURCES_EXPANDED) $(DEP_LINK)
 		-nowarn:0278 -nowarn:0078 $$warn \
 		-define:HAVE_GTK_2_10 -define:NET_2_0 \
 		-debug -target:$(TARGET) -out:$@ \
-		$(BUILD_DEFINES) $(ENABLE_TESTS_FLAG) $(ENABLE_ATK_FLAG) \
+		$(BUILD_DEFINES) $(ENABLE_TESTS_FLAG) $(ENABLE_ATK_FLAG) $(LEGACY_IPOD_FLAG) \
 		$(FILTERED_LINK) $(RESOURCES_BUILD) $(SOURCES_BUILD)
 	@if [ -e $(srcdir)/$(notdir $  config) ]; then \
 		cp $(srcdir)/$(notdir $  config) $(top_builddir)/bin; \
diff --git a/src/Core/Banshee.Services/Banshee.Hardware/IDevice.cs b/src/Core/Banshee.Services/Banshee.Hardware/IDevice.cs
index 667dd20..c5a7962 100644
--- a/src/Core/Banshee.Services/Banshee.Hardware/IDevice.cs
+++ b/src/Core/Banshee.Services/Banshee.Hardware/IDevice.cs
@@ -41,6 +41,7 @@ namespace Banshee.Hardware
 
         IDeviceMediaCapabilities MediaCapabilities { get; }
 
+#if LEGACY_IPOD_SUPPORT
         bool PropertyExists (string key);
 
         string GetPropertyString (string key);
@@ -49,6 +50,7 @@ namespace Banshee.Hardware
         int GetPropertyInteger (string key);
         ulong GetPropertyUInt64 (string key);
         string [] GetPropertyStringList (string key);
+#endif
 
         IUsbDevice ResolveRootUsbDevice ();
         IUsbPortInfo ResolveUsbPortInfo ();



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