21 #ifndef OSCAP_ACQUIRE_H_
22 #define OSCAP_ACQUIRE_H_
37 char *oscap_acquire_temp_dir(
void);
43 void oscap_acquire_cleanup_dir(
char **dir_path);
54 int oscap_acquire_temp_file(
const char *dir,
const char *
template,
char **filename);
61 bool oscap_acquire_url_is_supported(
const char *url);
68 char *oscap_acquire_url_to_filename(
const char *url);
77 oscap_acquire_url_download(
const char *url,
size_t* memory_size);
85 char *oscap_acquire_guess_realpath(
const char *filepath);
93 int oscap_acquire_mkdir_p(
const char* path);
101 int oscap_acquire_ensure_parent_dir(
const char *filepath);
112 write_to_memory_callback(
char *ptr,
size_t size,
size_t nmemb,
void *userdata);
123 char *oscap_acquire_pipe_to_string(
int fd);