10 #define __AFW_FILE_H__
34 afw_file_mode_write_new,
35 afw_file_mode_write_existing
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
const afw_utf8_t * afw_file_insure_full_path(const afw_utf8_t *path, const afw_pool_t *p, afw_xctx_t *xctx)
Return full file path.
void afw_file_from_memory(const afw_utf8_t *file_path, const afw_memory_t *from_memory, afw_file_mode_t mode, afw_xctx_t *xctx)
Write a file from a memory.
const afw_memory_t * afw_file_to_memory(const afw_utf8_t *file_path, apr_size_t file_size, const afw_pool_t *p, afw_xctx_t *xctx)
Read a file into a memory in a specifed pool.
const afw_adaptor_t * afw_file_adaptor_create_cede_p(const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
Create a file adaptor.
void afw_file_delete(const afw_utf8_t *file_path, afw_xctx_t *xctx)
Delete file.
enum afw_file_mode_e afw_file_mode_t
const afw_adaptor_factory_t * afw_file_adaptor_factory_get()
Get the factory for file adaptor.
Interface afw_adaptor_factory public struct.
Interface afw_adaptor public struct.
Struct for memory pointer and size.
Interface afw_object public struct.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Interface afw_xctx public struct.