|
Libtrap: Internal development docs
1.16.1
|
|
Functions | |
| int | file_recv (void *priv, void *data, uint32_t *size, int timeout) |
| Read data from a file. More... | |
| char * | file_recv_ifc_get_id (void *priv) |
| uint8_t | file_recv_ifc_is_conn (void *priv) |
| int | create_file_recv_ifc (trap_ctx_priv_t *ctx, const char *params, trap_input_ifc_t *ifc, uint32_t idx) |
| Allocate and initiate file input interface. This function is called by TRAP library to initialize one input interface. More... | |
| int create_file_recv_ifc | ( | trap_ctx_priv_t * | ctx, |
| const char * | params, | ||
| trap_input_ifc_t * | ifc, | ||
| uint32_t | idx | ||
| ) |
Allocate and initiate file input interface. This function is called by TRAP library to initialize one input interface.
| [in,out] | ctx | Pointer to the private libtrap context data (trap_ctx_init()). |
| [in] | params | Configuration string containing file_name, where file_name is a path to a file from which data is to be read |
| [in,out] | ifc | IFC interface used for calling file module. |
| [in] | idx | Index of IFC that is created. |
Definition at line 432 of file ifc_file.c.
| int file_recv | ( | void * | priv, |
| void * | data, | ||
| uint32_t * | size, | ||
| int | timeout | ||
| ) |
Read data from a file.
| [in] | priv | pointer to module private data |
| [out] | data | pointer to a memory block in which data is to be stored |
| [out] | size | pointer to a memory block in which size of read data is to be stored |
| [in] | timeout | NOT USED IN THIS INTERFACE |
Definition at line 309 of file ifc_file.c.
| char* file_recv_ifc_get_id | ( | void * | priv | ) |
Definition at line 404 of file ifc_file.c.
| uint8_t file_recv_ifc_is_conn | ( | void * | priv | ) |
Definition at line 409 of file ifc_file.c.
1.8.14