commit 812a64a36a17d6ac3b50441b0e779f6f90d5ee5a
Author: Alex Launi <[email protected]>
Date: Sun Aug 15 10:25:50 2010 -0400
Change GetXXXDir method parameters from a mountpoint to a GPod.Device
There will be future optimization work in libgpod for doing these methods
with
a Device. This is forward porting. For now they just access the
Device.Mountpoint
property and call the current function.
Signed-off-by: Nathaniel McCallum <[email protected]>
bindings/mono/libgpod-sharp/ITDB.cs | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/bindings/mono/libgpod-sharp/ITDB.cs
b/bindings/mono/libgpod-sharp/ITDB.cs
index dbfef8b..5e42d9a 100644
--- a/bindings/mono/libgpod-sharp/ITDB.cs
+++ b/bindings/mono/libgpod-sharp/ITDB.cs
@@ -111,30 +111,30 @@ namespace GPod {
return res;
}
- public static string GetLocalPath (string mountPoint, Track
track)
+ public static string GetLocalPath (Device device, Track track)
{
string ipodPath = track.IpodPath.Replace (":",
"/").Substring (1);
- return System.IO.Path.Combine (mountPoint, ipodPath);
+ return System.IO.Path.Combine (device.Mountpoint,
ipodPath);
}
- public static string GetDestFileName (string mountpoint, string
localFile)
+ public static string GetDestFileName (Device device, string
localFile)
{
// itdb_cp_get_dest_filename (HandleRef track, string
mountpoint, string filename, ref IntPtr error);
IntPtr error = IntPtr.Zero;
- string result = Itdb_iTunesDB.itdb_cp_get_dest_filename
(IntPtr.Zero, mountpoint, localFile, ref error);
+ string result = Itdb_iTunesDB.itdb_cp_get_dest_filename
(IntPtr.Zero, device.Mountpoint, localFile, ref error);
if (error != IntPtr.Zero)
throw new GException (error);
return result;
}
- public static string GetControlPath (string mountpoint)
+ public static string GetControlPath (Device device)
{
- return Itdb_iTunesDB.itdb_get_control_dir (mountpoint);
+ return Itdb_iTunesDB.itdb_get_control_dir
(device.Mountpoint);
}
- public static string GetMusicPath (string mountpoint)
+ public static string GetMusicPath (Device device)
{
- return Itdb_iTunesDB.itdb_get_music_dir (mountpoint);
+ return Itdb_iTunesDB.itdb_get_music_dir
(device.Mountpoint);
}
public IList<Track> Tracks
{ get { return new ITDBTrackList(true, Handle, ((Itdb_iTunesDB
*) Native)->tracks); } }
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2