System.Data.SQLite
Check-in [bad97b09fc]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The delegates used for native callbacks from the SQLite core library must be marked as 'cdecl'.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | sessions
Files: files | file ages | folders
SHA1: bad97b09fc658fdbc3c5269f44fae6aec443b24b
User & Date: mistachkin 2017-10-09 16:09:46
Context
2017-10-10
01:26
More adjustments for the INTEROP_SESSION_EXTENSION define. check-in: 51aeb4bf30 user: mistachkin tags: sessions
2017-10-09
16:09
The delegates used for native callbacks from the SQLite core library must be marked as 'cdecl'. check-in: bad97b09fc user: mistachkin tags: sessions
2017-10-08
22:00
Merge updates from trunk. check-in: 4919dd2ea9 user: mistachkin tags: sessions
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/UnsafeNativeMethods.cs.

  3562   3562   #endif
  3563   3563       #endregion
  3564   3564   
  3565   3565       ///////////////////////////////////////////////////////////////////////////
  3566   3566   
  3567   3567       #region session extension
  3568   3568   #if INTEROP_SESSION_EXTENSION
         3569  +#if !PLATFORM_COMPACTFRAMEWORK
         3570  +    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         3571  +#endif
  3569   3572       internal delegate int xSessionFilter(IntPtr context, byte[] tblName);
         3573  +
         3574  +#if !PLATFORM_COMPACTFRAMEWORK
         3575  +    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         3576  +#endif
  3570   3577       internal delegate SQLiteChangeSetConflictResult xSessionConflict(IntPtr context, SQLiteChangeSetConflictType type, IntPtr iterator);
         3578  +
         3579  +#if !PLATFORM_COMPACTFRAMEWORK
         3580  +    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         3581  +#endif
  3571   3582       internal delegate SQLiteErrorCode xSessionInput(IntPtr context, IntPtr pData, ref int nData);
         3583  +
         3584  +#if !PLATFORM_COMPACTFRAMEWORK
         3585  +    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         3586  +#endif
  3572   3587       internal delegate SQLiteErrorCode xSessionOutput(IntPtr context, IntPtr pData, int nData);
  3573   3588   
  3574   3589       ///////////////////////////////////////////////////////////////////////////
  3575   3590   
  3576   3591   #if !PLATFORM_COMPACTFRAMEWORK
  3577   3592       [DllImport(SQLITE_DLL, CallingConvention = CallingConvention.Cdecl)]
  3578   3593   #else
................................................................................
  3810   3825       [DllImport(SQLITE_DLL)]
  3811   3826   #endif
  3812   3827       internal static extern SQLiteErrorCode sqlite3changegroup_output_strm(IntPtr changeGroup, xSessionOutput xOutput, IntPtr pOut);
  3813   3828   #endif
  3814   3829       #endregion
  3815   3830       #endregion
  3816   3831   
  3817         -    ///////////////////////////////////////////////////////////////////////////
         3832  +      ///////////////////////////////////////////////////////////////////////////
  3818   3833   
  3819   3834       #region sqlite interop api calls (.NET Compact Framework only)
  3820   3835   #if PLATFORM_COMPACTFRAMEWORK && !SQLITE_STANDARD
  3821   3836       [DllImport(SQLITE_DLL)]
  3822   3837       internal static extern void sqlite3_last_insert_rowid_interop(IntPtr db, ref long rowId);
  3823   3838   
  3824   3839       [DllImport(SQLITE_DLL)]