00001 /* 00002 * vfs_async.c 00003 * Copyright 2010 William Pitcock 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions are met: 00007 * 00008 * 1. Redistributions of source code must retain the above copyright notice, 00009 * this list of conditions, and the following disclaimer. 00010 * 00011 * 2. Redistributions in binary form must reproduce the above copyright notice, 00012 * this list of conditions, and the following disclaimer in the documentation 00013 * provided with the distribution. 00014 * 00015 * This software is provided "as is" and without any warranty, express or 00016 * implied. In no event shall the authors be liable for any damages arising from 00017 * the use of this software. 00018 */ 00019 00020 #ifndef LIBAUDCORE_VFS_ASYNC_H 00021 #define LIBAUDCORE_VFS_ASYNC_H 00022 00023 #include <libaudcore/vfs.h> 00024 00025 typedef bool_t (*VFSConsumer)(void * buf, int64_t size, void * userdata); 00026 00027 void vfs_async_file_get_contents(const char *filename, VFSConsumer cons_f, void * userdata); 00028 00029 #endif