createrepo_c library
C library for metadata manipulation
|
Datové struktry | |
struct | CR_FILE |
Definice maker | |
#define | CR_CW_OK 0 |
#define | CR_CW_ERR -1 |
Funkce | |
const char * | cr_compression_suffix (cr_CompressionType comtype) |
cr_CompressionType | cr_detect_compression (const char *filename) |
CR_FILE * | cr_open (const char *filename, cr_OpenMode mode, cr_CompressionType comtype) |
int | cr_read (CR_FILE *cr_file, void *buffer, unsigned int len) |
int | cr_write (CR_FILE *cr_file, const void *buffer, unsigned int len) |
int | cr_puts (CR_FILE *cr_file, const char *str) |
int | cr_printf (CR_FILE *cr_file, const char *format,...) |
int | cr_close (CR_FILE *cr_file) |
#define CR_CW_ERR -1 |
Return value - Error
Definice je uvedena na řádku 62 v souboru compression_wrapper.h.
#define CR_CW_OK 0 |
Return value - Everything all right
Definice je uvedena na řádku 61 v souboru compression_wrapper.h.
enum cr_CompressionType |
Compression type.
Definice je uvedena na řádku 33 v souboru compression_wrapper.h.
enum cr_OpenMode |
Open modes.
Hodnoty výčtu | |
---|---|
CR_CW_MODE_READ |
Read mode |
CR_CW_MODE_WRITE |
Write mode |
Definice je uvedena na řádku 45 v souboru compression_wrapper.h.
int cr_close | ( | CR_FILE * | cr_file | ) |
const char* cr_compression_suffix | ( | cr_CompressionType | comtype | ) |
Returns a common suffix for the specified cr_CompressionType.
comtype | compression type |
cr_CompressionType cr_detect_compression | ( | const char * | filename | ) |
Detect a compression type of the specified file.
filename | filename |
CR_FILE* cr_open | ( | const char * | filename, |
cr_OpenMode | mode, | ||
cr_CompressionType | comtype | ||
) |
Open/Create the specified file.
filename | filename |
mode | open mode |
comtype | type of compression |
int cr_printf | ( | CR_FILE * | cr_file, |
const char * | format, | ||
... | |||
) |
Writes a formatted string into the cr_file.
cr_file | CR_FILE pointer |
format | format string |
... | list of additional arguments as specified in format |
int cr_puts | ( | CR_FILE * | cr_file, |
const char * | str | ||
) |
Writes the string pointed by str into the cr_file.
cr_file | CR_FILE pointer |
str | null terminated ('\0') string |
int cr_read | ( | CR_FILE * | cr_file, |
void * | buffer, | ||
unsigned int | len | ||
) |