1{-# LANGUAGE ForeignFunctionInterface #-}
3module Obelisk.ExecutableConfig.Internal.AssetManager where
6#include <android/asset_manager.h>
7#include <android/asset_manager_jni.h>
10import Foreign.C.String
14newtype JObject = JObject { unJObject :: Ptr JObject }
16newtype AAssetManager = AAssetManager { unAAssetManager :: Ptr AAssetManager }
18newtype AAsset = AAsset { unAAsset :: Ptr AAsset }
20foreign import ccall "ExecutableConfig_getAssets" getAssets :: IO JObject
22foreign import ccall "ExecutableConfig_aassetManagerFromJava" assetManagerFromJava :: JObject -> IO AAssetManager
24foreign import ccall "ExecutableConfig_freeAssetManager" freeAssetManager :: JObject -> IO ()
26foreign import ccall "AAssetManager_open" assetManager_open :: AAssetManager -> CString -> CInt -> IO AAsset
28foreign import ccall "AAsset_getBuffer" asset_getBuffer :: AAsset -> IO (Ptr CChar)
30foreign import ccall "AAsset_getLength" asset_getLength :: AAsset -> IO #{type off_t}
32foreign import ccall "AAsset_close" asset_close :: AAsset -> IO ()
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list