20 #ifndef __C_CREATEREPOLIB_MISC_H__
21 #define __C_CREATEREPOLIB_MISC_H__
29 #include <curl/curl.h>
30 #include "compression_wrapper.h"
31 #include "constants.h"
39 #define CR_UNUSED(x) (void)(x)
86 static inline int cr_is_primary(
const char *filename) {
87 if (!strncmp(filename,
"/etc/", 5))
89 if (!strcmp(filename,
"/usr/lib/sendmail"))
91 if (strstr(filename,
"bin/"))
138 #define CR_COPY_ERR 1
151 void cr_download(CURL *handle,
153 const char *destination,
223 GLogLevelFlags log_level,
224 const gchar *message,
235 GLogLevelFlags log_level,
236 const gchar *message,