more progress. removed the unions because they have a bigger size than the foreign procs expects and that messes things up

This commit is contained in:
2024-08-07 06:39:18 +02:00
parent ebafc90985
commit 50fb0bb5f9
13 changed files with 1482 additions and 221 deletions
+39
View File
@@ -0,0 +1,39 @@
//+build android
package android
foreign import android "system:android"
/** Flag for an obb file, returned by AObbInfo_getFlags(). */
ObbFlags :: enum i32 {
OVERLAY = 0x0001,
}
/** {@link AObbInfo} is an opaque type representing information for obb storage. */
AObbInfo :: struct{}
foreign android {
/**
* Scan an OBB and get information about it.
*/
AObbScanner_getObbInfo :: proc(filename: cstring) -> ^AObbInfo ---
/**
* Destroy the AObbInfo object. You must call this when finished with the object.
*/
AObbInfo_delete :: proc(obbInfo: ^AObbInfo) ---
/**
* Get the package name for the OBB.
*/
AObbInfo_getPackageName :: proc(obbInfo: ^AObbInfo) -> cstring ---
/**
* Get the version of an OBB file.
*/
AObbInfo_getVersion :: proc(obbInfo: ^AObbInfo) -> i32 ---
/**
* Get the flags of an OBB file.
*/
AObbInfo_getFlags :: proc(obbInfo: ^AObbInfo) -> ObbFlags ---
}