mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
initial
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package sqlite
|
||||
|
||||
import "core:c"
|
||||
|
||||
foreign import sqlite "system:SceSqlite_stub"
|
||||
|
||||
SceSqliteMallocMethods :: struct {
|
||||
xMalloc: #type ^proc "c" (_: c.int) -> rawptr,
|
||||
xRealloc: #type ^proc "c" (_: rawptr, __: c.int) -> rawptr,
|
||||
xFree: #type ^proc "c" (_: rawptr),
|
||||
}
|
||||
|
||||
@(link_prefix = "sceSqlite")
|
||||
foreign sqlite {
|
||||
/**
|
||||
* Wrapper for sqlite3_config(SQLITE_CONFIG_MALLOC)
|
||||
*
|
||||
* @param[in] methods - A proper set of memory allocation methods
|
||||
*
|
||||
* @return 0 on success, < 0 on error.
|
||||
*/
|
||||
ConfigMallocMethods :: proc(methods: ^SceSqliteMallocMethods) -> c.int ---
|
||||
}
|
||||
Reference in New Issue
Block a user