mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-16 02:19:18 +08:00
22 lines
504 B
C
22 lines
504 B
C
static bool mock_init(struct mg_tcpip_if *ifp) {
|
|
(void) ifp;
|
|
return true;
|
|
}
|
|
|
|
static size_t mock_tx(const void *buf, size_t len, struct mg_tcpip_if *ifp) {
|
|
(void) buf, (void) len, (void) ifp;
|
|
return len;
|
|
}
|
|
|
|
static size_t mock_rx(void *buf, size_t len, struct mg_tcpip_if *ifp) {
|
|
(void) buf, (void) len, (void) ifp;
|
|
return 0;
|
|
}
|
|
|
|
static bool mock_up(struct mg_tcpip_if *ifp) {
|
|
(void) ifp;
|
|
return true;
|
|
}
|
|
|
|
struct mg_tcpip_driver mg_tcpip_driver_mock = {mock_init, mock_tx, mock_rx, mock_up};
|