mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -04:00
Fix BlockDB not working on mono.
This commit is contained in:
parent
a6884182ac
commit
40f567bc86
@ -98,61 +98,61 @@ namespace MCGalaxy.SQL.Native {
|
||||
return chars;
|
||||
}
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_open_v2(byte[] filename, out IntPtr db, int flags, IntPtr vfs);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_close(IntPtr db);
|
||||
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_bind_int(IntPtr stmt, int index, int value);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_bind_parameter_index(IntPtr stmt, byte[] name);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_bind_text(IntPtr stmt, int index, byte* text, int textLen, IntPtr reserved);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_finalize(IntPtr stmt);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_prepare_v2(IntPtr db, byte[] sql, int nBytes, out IntPtr stmt, out IntPtr sqlTail);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_reset(IntPtr stmt);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_step(IntPtr stmt);
|
||||
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_column_count(IntPtr stmt);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_column_type(IntPtr stmt, int iCol);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern IntPtr sqlite3_column_name(IntPtr stmt, int iCol);
|
||||
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern double sqlite3_column_double(IntPtr stmt, int iCol);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_column_int(IntPtr stmt, int iCol);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern long sqlite3_column_int64(IntPtr stmt, int iCol);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern IntPtr sqlite3_column_text(IntPtr stmt, int iCol);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern IntPtr sqlite3_column_blob(IntPtr stmt, int iCol);
|
||||
|
||||
[DllImport("sqlite3.dll", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("sqlite3", CallingConvention = conv), SuppressUnmanagedCodeSecurity]
|
||||
public static extern int sqlite3_column_bytes(IntPtr stmt, int iCol);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user