Index: System.Data.SQLite/UnsafeNativeMethods.cs ================================================================== --- System.Data.SQLite/UnsafeNativeMethods.cs +++ System.Data.SQLite/UnsafeNativeMethods.cs @@ -3564,13 +3564,28 @@ /////////////////////////////////////////////////////////////////////////// #region session extension #if INTEROP_SESSION_EXTENSION +#if !PLATFORM_COMPACTFRAMEWORK + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] +#endif internal delegate int xSessionFilter(IntPtr context, byte[] tblName); + +#if !PLATFORM_COMPACTFRAMEWORK + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] +#endif internal delegate SQLiteChangeSetConflictResult xSessionConflict(IntPtr context, SQLiteChangeSetConflictType type, IntPtr iterator); + +#if !PLATFORM_COMPACTFRAMEWORK + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] +#endif internal delegate SQLiteErrorCode xSessionInput(IntPtr context, IntPtr pData, ref int nData); + +#if !PLATFORM_COMPACTFRAMEWORK + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] +#endif internal delegate SQLiteErrorCode xSessionOutput(IntPtr context, IntPtr pData, int nData); /////////////////////////////////////////////////////////////////////////// #if !PLATFORM_COMPACTFRAMEWORK @@ -3812,11 +3827,11 @@ internal static extern SQLiteErrorCode sqlite3changegroup_output_strm(IntPtr changeGroup, xSessionOutput xOutput, IntPtr pOut); #endif #endregion #endregion - /////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////// #region sqlite interop api calls (.NET Compact Framework only) #if PLATFORM_COMPACTFRAMEWORK && !SQLITE_STANDARD [DllImport(SQLITE_DLL)] internal static extern void sqlite3_last_insert_rowid_interop(IntPtr db, ref long rowId);