43 #ifndef _TRAP_IFC_FILE_H_ 44 #define _TRAP_IFC_FILE_H_ 49 #define TIME_PARAM "time=" 50 #define TIME_PARAM_LEN strlen(TIME_PARAM) 51 #define SIZE_PARAM "size=" 52 #define SIZE_PARAM_LEN strlen(SIZE_PARAM) 53 #define TIME_FORMAT_STRING ".%Y%m%d%H%M" 54 #define TIME_FORMAT_STRING_LEN strlen(TIME_FORMAT_STRING) 55 #define FILE_SIZE_SUFFIX_LEN 6 56 #define FILENAME_TEMPLATE_LEN PATH_MAX + 256
struct file_buffer_s file_buffer_t
#define FILENAME_TEMPLATE_LEN
uint32_t file_change_time
int create_file_send_ifc(trap_ctx_priv_t *ctx, const char *params, trap_output_ifc_t *ifc, uint32_t idx)
Allocate and initiate file output interface. This function is called by TRAP library to initialize on...
char filename_tmplt[FILENAME_TEMPLATE_LEN]
struct file_private_s file_private_t
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...
uint32_t file_change_size
Interface of TRAP interfaces.