20 #ifndef __C_CREATEREPOLIB_COMPRESSION_WRAPPER_H__
21 #define __C_CREATEREPOLIB_COMPRESSION_WRAPPER_H__
93 const char *cr_compression_suffix(cr_CompressionType comtype);
115 #define cr_open(FILENAME, MODE, COMTYPE, ERR) \
116 cr_sopen(FILENAME, MODE, COMTYPE, NULL, ERR)
141 int cr_read(
CR_FILE *cr_file,
void *buffer,
unsigned int len, GError **err);
cr_ChecksumType checksum_type
int cr_printf(GError **err, CR_FILE *cr_file, const char *format,...)
int cr_close(CR_FILE *cr_file, GError **err)
cr_ContentStat * cr_contentstat_new(cr_ChecksumType type, GError **err)
void cr_contentstat_free(cr_ContentStat *cstat, GError **err)
CR_FILE * cr_sopen(const char *filename, cr_OpenMode mode, cr_CompressionType comtype, cr_ContentStat *stat, GError **err)
int cr_read(CR_FILE *cr_file, void *buffer, unsigned int len, GError **err)
struct _cr_ChecksumCtx cr_ChecksumCtx
int cr_puts(CR_FILE *cr_file, const char *str, GError **err)
cr_CompressionType cr_detect_compression(const char *filename, GError **err)
int cr_write(CR_FILE *cr_file, const void *buffer, unsigned int len, GError **err)
cr_CompressionType cr_compression_type(const char *name)
cr_ChecksumCtx * checksum_ctx