This commit is contained in:
2024-05-11 23:24:13 +02:00
commit e66c5afde0
130 changed files with 17039 additions and 0 deletions
+23
View File
@@ -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 ---
}