#include #include #include module Bindings.AudioFile.VFS where #strict_import import System.Posix.Types #starttype struct _AFvirtualfile # field read , FunPtr ( -> Ptr () -> CSize -> IO CSsize) # field length , FunPtr ( -> IO CLong) # field write , FunPtr ( -> Ptr () -> CSize -> IO CSsize) # field destroy, FunPtr ( -> IO ()) # field seek , FunPtr ( -> CLong -> CInt -> IO CLong) # field tell , FunPtr ( -> IO CLong) # field closure, Ptr () #stoptype #synonym_t AFvirtualfile, <_AFvirtualfile> #ccall af_virtual_file_new , IO (Ptr ) #ccall af_virtual_file_new_for_file, Ptr CFile -> IO (Ptr ) #ccall af_virtual_file_destroy , Ptr -> IO () #ccall af_fread , Ptr () -> CSize -> CSize -> Ptr -> IO CSize #ccall af_fwrite , Ptr () -> CSize -> CSize -> Ptr -> IO CSize #ccall af_fclose , Ptr -> IO CInt #ccall af_flength, Ptr -> IO CLong #ccall af_fseek , Ptr -> CLong -> CInt -> IO CInt #ccall af_ftell , Ptr -> IO CLong