head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.8 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.4 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.2 pkgsrc-2011Q2-base:1.2 pkgsrc-2010Q1:1.1.0.2 pkgsrc-2010Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2010.05.17.17.46.44; author drochner; state dead; branches; next 1.1; 1.1 date 2010.02.16.12.16.23; author drochner; state Exp; branches; next ; desc @@ 1.2 log @update to 0.6.2 changes: fixes, cleanup, translation updates @ text @$NetBSD: patch-aa,v 1.1 2010/02/16 12:16:23 drochner Exp $ --- lib/libgphoto2-sharp/CameraFile.cs.orig 2009-11-04 19:34:32.000000000 +0000 +++ lib/libgphoto2-sharp/CameraFile.cs @@@@ -76,11 +76,19 @@@@ namespace LibGPhoto2 } [DllImport ("libgphoto2.so")] +#if LONG_IS_64BITS internal static extern ErrorCode gp_file_append (HandleRef file, byte[] data, ulong size); +#else + internal static extern ErrorCode gp_file_append (HandleRef file, byte[] data, uint size); +#endif public void Append (byte[] data) { +#if LONG_IS_64BITS Error.CheckError (gp_file_append (this.Handle, data, (ulong)data.Length)); +#else + Error.CheckError (gp_file_append (this.Handle, data, (uint)data.Length)); +#endif } [DllImport ("libgphoto2.so")] @@@@ -223,11 +231,19 @@@@ namespace LibGPhoto2 } [DllImport ("libgphoto2.so")] +#if LONG_IS_64BITS internal static extern ErrorCode gp_file_set_data_and_size (HandleRef file, byte[] data, ulong size); +#else + internal static extern ErrorCode gp_file_set_data_and_size (HandleRef file, byte[] data, uint size); +#endif public void SetDataAndSize (byte[] data) { +#if LONG_IS_64BITS Error.CheckError (gp_file_set_data_and_size (this.Handle, data, (ulong)data.Length)); +#else + Error.CheckError (gp_file_set_data_and_size (this.Handle, data, (uint)data.Length)); +#endif } [DllImport ("libgphoto2.so")] @ 1.1 log @fix some C-long vs. C#-long mismatches (on 32-bit systems) in libgphoto glue code, makes photo import directly from the camera work better for me @ text @d1 1 a1 1 $NetBSD$ @