commit ff25962618e91fed42a9a3d64c05ce3c8e314cc2
Author: Alan McGovern <[email protected]>
Date: Sun Aug 29 23:31:34 2010 +0100
[mono] wrap the itdb_start/stop_sync methods
bindings/mono/libgpod-sharp/ITDB.cs | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/bindings/mono/libgpod-sharp/ITDB.cs
b/bindings/mono/libgpod-sharp/ITDB.cs
index 5e42d9a..a1e0b80 100644
--- a/bindings/mono/libgpod-sharp/ITDB.cs
+++ b/bindings/mono/libgpod-sharp/ITDB.cs
@@ -87,6 +87,12 @@ namespace GPod {
[DllImport ("gpod")]
internal static extern IntPtr
itdb_playlist_by_name(HandleRef itdb, string name);
+
+ [DllImport ("gpod")]
+ internal static extern bool itdb_start_sync (IntPtr
itdb);
+
+ [DllImport ("gpod")]
+ internal static extern bool itdb_stop_sync (IntPtr
itdb);
}
}
@@ -160,6 +166,16 @@ namespace GPod {
return result;
}
+ public bool StartSync ()
+ {
+ return Itdb_iTunesDB.itdb_start_sync (Native);
+ }
+
+ public bool StopSync ()
+ {
+ return Itdb_iTunesDB.itdb_stop_sync (Native);
+ }
+
public bool Write() {
IntPtr gerror;
bool res = Itdb_iTunesDB.itdb_write(Handle, out gerror);
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2