You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Stub some stuff
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
|
||||
#define _LARGEFILE64_SOURCE
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdint.h>
|
||||
@@ -90,6 +92,14 @@ struct AAssetManager * AAssetManager_fromJava(JNIEnv *env, jobject assetManager)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int AAsset_read(struct AAsset *asset, void *buf, size_t count) {
|
||||
return read(asset->fd, buf, count);
|
||||
}
|
||||
|
||||
off64_t AAsset_seek64(struct AAsset *asset, off64_t offset, int whence) {
|
||||
return lseek64(asset->fd, offset, whence);
|
||||
}
|
||||
|
||||
void AAsset_close(struct AAsset *asset)
|
||||
{
|
||||
int fd = asset->fd;
|
||||
|
||||
Reference in New Issue
Block a user