mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
2f529e06f9
Signed-off-by: sweetlilmre <sweetlilmre@gmail.com>
22 lines
628 B
C
22 lines
628 B
C
#ifndef _RFS_TRANSPORTS_H
|
|
#define _RFS_TRANSPORTS_H
|
|
|
|
typedef void ( *p_read_request )( void );
|
|
typedef void ( *p_send_response )( void );
|
|
typedef void ( *p_cleanup )( void );
|
|
typedef struct
|
|
{
|
|
p_read_request f_read_request;
|
|
p_send_response f_send_response;
|
|
p_cleanup f_cleanup;
|
|
} RFS_TRANSPORT_DATA;
|
|
|
|
#define MAX_PACKET_SIZE 4096
|
|
|
|
extern const RFS_TRANSPORT_DATA *p_transport_data;
|
|
extern const RFS_TRANSPORT_DATA mem_transport_data;
|
|
extern const RFS_TRANSPORT_DATA udp_transport_data;
|
|
extern const RFS_TRANSPORT_DATA ser_transport_data;
|
|
extern u8 rfs_buffer[ MAX_PACKET_SIZE + ELUARPC_WRITE_REQUEST_EXTRA ];
|
|
|
|
#endif |