21#ifndef OSCAP_ACQUIRE_H_
22#define OSCAP_ACQUIRE_H_
36char *oscap_acquire_temp_dir(
void);
42void oscap_acquire_cleanup_dir(
char **dir_path);
53int oscap_acquire_temp_file(
const char *dir,
const char *
template,
char **filename);
60bool oscap_acquire_url_is_supported(
const char *url);
67char *oscap_acquire_url_to_filename(
const char *url);
76oscap_acquire_url_download(
const char *url,
size_t* memory_size);
84char *oscap_acquire_guess_realpath(
const char *filepath);
92int oscap_acquire_mkdir_p(
const char* path);
100int oscap_acquire_ensure_parent_dir(
const char *filepath);
111write_to_memory_callback(
char *ptr,
size_t size,
size_t nmemb,
void *userdata);
121char *oscap_acquire_pipe_to_string(
int fd);