Libtrap: Internal development docs  1.16.1
Data Structures | Macros | Typedefs | Functions
ifc_file.h File Reference

TRAP file interfaces. More...

#include <limits.h>
#include "trap_ifc.h"
Include dependency graph for ifc_file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  file_buffer_s
 
struct  file_private_s
 

Macros

#define TIME_PARAM   "time="
 
#define TIME_PARAM_LEN   strlen(TIME_PARAM)
 
#define SIZE_PARAM   "size="
 
#define SIZE_PARAM_LEN   strlen(SIZE_PARAM)
 
#define TIME_FORMAT_STRING   ".%Y%m%d%H%M"
 
#define TIME_FORMAT_STRING_LEN   strlen(TIME_FORMAT_STRING)
 
#define FILE_SIZE_SUFFIX_LEN   6
 
#define FILENAME_TEMPLATE_LEN   PATH_MAX + 256
 

Typedefs

typedef struct file_buffer_s file_buffer_t
 
typedef struct file_private_s file_private_t
 

Functions

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_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 one output interface. More...
 

Detailed Description

TRAP file interfaces.

Author
Tomas Jansky jansk.nosp@m.to1@.nosp@m.fit.c.nosp@m.vut..nosp@m.cz
Date
2015

Definition in file ifc_file.h.

Macro Definition Documentation

◆ FILE_SIZE_SUFFIX_LEN

#define FILE_SIZE_SUFFIX_LEN   6

Definition at line 55 of file ifc_file.h.

◆ FILENAME_TEMPLATE_LEN

#define FILENAME_TEMPLATE_LEN   PATH_MAX + 256

Definition at line 56 of file ifc_file.h.

◆ SIZE_PARAM

#define SIZE_PARAM   "size="

Definition at line 51 of file ifc_file.h.

◆ SIZE_PARAM_LEN

#define SIZE_PARAM_LEN   strlen(SIZE_PARAM)

Definition at line 52 of file ifc_file.h.

◆ TIME_FORMAT_STRING

#define TIME_FORMAT_STRING   ".%Y%m%d%H%M"

Definition at line 53 of file ifc_file.h.

◆ TIME_FORMAT_STRING_LEN

#define TIME_FORMAT_STRING_LEN   strlen(TIME_FORMAT_STRING)

Definition at line 54 of file ifc_file.h.

◆ TIME_PARAM

#define TIME_PARAM   "time="

Definition at line 49 of file ifc_file.h.

◆ TIME_PARAM_LEN

#define TIME_PARAM_LEN   strlen(TIME_PARAM)

Definition at line 50 of file ifc_file.h.

Typedef Documentation

◆ file_buffer_t

typedef struct file_buffer_s file_buffer_t

◆ file_private_t