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 00059 CxArchive *cxOpenArchiveStream(FILE *fp); 00060 00074 CxArchive *cxOpenArchiveBuffer(char *buffer, size_t size); 00075 00089 void cxCloseArchive(CxArchive *archive); 00090 00107 CxStatus cxSaveArchive(CxArchive *archive, const char *filename); 00108 00109 #ifdef __cplusplus 00110 } 00111 #endif 00112 00113 #endif /* _LIBCOMPREX_ARCHIVE_IO_H_ */ 00114