commit 02f3ca9b4280d57a17ea97453bff34d5cd42fdcc
Author: Alan McGovern <[email protected]>
Date: Wed Jun 9 16:07:59 2010 +0100
Add a StructLayout attribute to make sure we don't blow up.
Signed-off-by: Nathaniel McCallum <[email protected]>
bindings/mono/libgpod-sharp/Artwork.cs | 1 +
bindings/mono/libgpod-sharp/Chapter.cs | 1 +
bindings/mono/libgpod-sharp/Track.cs | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/bindings/mono/libgpod-sharp/Artwork.cs
b/bindings/mono/libgpod-sharp/Artwork.cs
index 9257e55..1de459e 100644
--- a/bindings/mono/libgpod-sharp/Artwork.cs
+++ b/bindings/mono/libgpod-sharp/Artwork.cs
@@ -24,6 +24,7 @@ namespace GPod {
using native;
namespace native {
+ [StructLayout (LayoutKind.Sequential)]
public struct Itdb_Artwork {
public IntPtr thumbnail;
public uint id;
diff --git a/bindings/mono/libgpod-sharp/Chapter.cs
b/bindings/mono/libgpod-sharp/Chapter.cs
index 1b7ef9c..5969080 100644
--- a/bindings/mono/libgpod-sharp/Chapter.cs
+++ b/bindings/mono/libgpod-sharp/Chapter.cs
@@ -22,6 +22,7 @@ namespace GPod {
using native;
namespace native {
+ [StructLayout (LayoutKind.Sequential)]
public struct Itdb_Chapter {
public uint startpos;
public string chaptertitle;
diff --git a/bindings/mono/libgpod-sharp/Track.cs
b/bindings/mono/libgpod-sharp/Track.cs
index 884b4b5..71e4745 100644
--- a/bindings/mono/libgpod-sharp/Track.cs
+++ b/bindings/mono/libgpod-sharp/Track.cs
@@ -23,6 +23,7 @@ namespace GPod {
using native;
namespace native {
+ [StructLayout (LayoutKind.Sequential)]
public struct Itdb_Track {
public IntPtr itdb;
public string title;
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2