struct sol_blob * sol_file_reader_to_blob(struct sol_file_reader *fr)
convert an open file reader to a blob.
void sol_file_reader_close(struct sol_file_reader *fr)
Closes a file reader, releasing its memory.
struct sol_file_reader * sol_file_reader_from_fd(int fd)
Create a file reader from a file descriptor.
These routines are used for Soletta types' manipulation.
struct sol_str_slice sol_file_reader_get_all(const struct sol_file_reader *fr)
Get the content of the file as a sol_str_slice.
const struct stat * sol_file_reader_get_stat(const struct sol_file_reader *fr)
Retrieve stat information from a file.
String slice type.
Definition: sol-str-slice.h:84
static FILE * fd
Definition: download.c:28
Data type describing the default blob implementation.
Definition: sol-types.h:468
struct sol_file_reader * sol_file_reader_open(const char *filename)
Open a file using its filename.
These are routines that Soletta provides for its string slice implementation.
struct sol_file_reader sol_file_reader
Opaque handler for a file reader.
Definition: sol-file-reader.h:38