Libtrap: Internal development docs
1.16.1
|
Modules | |
File_receiver | |
File_sender | |
Functions | |
void | file_destroy (void *priv) |
Close file and free allocated memory. More... | |
void | file_terminate (void *priv) |
Set interface state as terminated. More... | |
int | _mkdir (const char *path) |
Create path, recursive. More... | |
static void | file_create_dump (void *priv, uint32_t idx, const char *path) |
Create file dump with current configuration (for debugging) More... | |
int | create_next_filename (file_private_t *config) |
Create a new path and filename from the template created during interface initialization. New filename is stored in file_private_t->filename. More... | |
int | switch_file (file_private_t *c) |
Close previous file, open next file (name taken in file_private_t->filename). Negotiation must be performed after changing the file. More... | |
void | switch_file_wrapper (void *priv) |
int _mkdir | ( | const char * | path | ) |
Create path, recursive.
Author Jonathon Reinhart Adapted from https://gist.github.com/JonathonReinhart/8c0d90191c38af2dcadb102c4e202950
[in] | path | where file will be created |
Definition at line 122 of file ifc_file.c.
int create_next_filename | ( | file_private_t * | config | ) |
Create a new path and filename from the template created during interface initialization. New filename is stored in file_private_t->filename.
[in,out] | config | Pointer to module private data. |
Definition at line 194 of file ifc_file.c.
|
static |
Create file dump with current configuration (for debugging)
[in] | priv | pointer to module private data |
[in] | idx | number of interface |
[in] | path | path where dump file will be created |
Definition at line 158 of file ifc_file.c.
void file_destroy | ( | void * | priv | ) |
Close file and free allocated memory.
[in] | priv | pointer to module private data |
Definition at line 74 of file ifc_file.c.
void file_terminate | ( | void * | priv | ) |
Set interface state as terminated.
[in] | priv | pointer to module private data |
Definition at line 106 of file ifc_file.c.
int switch_file | ( | file_private_t * | c | ) |
Close previous file, open next file (name taken in file_private_t->filename). Negotiation must be performed after changing the file.
[in,out] | c | Pointer to module private data. |
Definition at line 277 of file ifc_file.c.
void switch_file_wrapper | ( | void * | priv | ) |
Definition at line 539 of file ifc_file.c.