Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions
sol-file-reader.h File Reference
#include "sol-str-slice.h"
#include "sol-types.h"

Go to the source code of this file.

Typedefs

typedef struct sol_file_reader sol_file_reader
 Opaque handler for a file reader. More...
 

Functions

void sol_file_reader_close (struct sol_file_reader *fr)
 Closes a file reader, releasing its memory. More...
 
struct sol_file_readersol_file_reader_from_fd (int fd)
 Create a file reader from a file descriptor. More...
 
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. More...
 
const struct stat * sol_file_reader_get_stat (const struct sol_file_reader *fr)
 Retrieve stat information from a file. More...
 
struct sol_file_readersol_file_reader_open (const char *filename)
 Open a file using its filename. More...
 
struct sol_blobsol_file_reader_to_blob (struct sol_file_reader *fr)
 convert an open file reader to a blob. More...