00001 00023 #ifndef _LIBCOMPREX_ARCHIVE_IO_H_ 00024 #define _LIBCOMPREX_ARCHIVE_IO_H_ 00025 00026 #include <libcomprex/archive.h> 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00045 CxArchive *cxOpenArchive(const char *path); 00046 00060 CxArchive *cxOpenArchiveFromHandle(CxFile *file, CxAccessMode mode); 00061 00074 CxArchive *cxOpenArchiveStream(FILE *fp); 00075 00089 CxArchive *cxOpenArchiveBuffer(char *buffer, size_t size); 00090 00104 void cxCloseArchive(CxArchive *archive); 00105 00122 CxStatus cxSaveArchive(CxArchive *archive, const char *filename); 00123 00132 CxStatus cxExtractArchive(CxArchive *archive); 00133 00134 #ifdef __cplusplus 00135 } 00136 #endif 00137 00138 #endif /* _LIBCOMPREX_ARCHIVE_IO_H_ */ 00139