code cleanup & fix compile with pico-sdk 2.2.0
This commit is contained in:
-14
@@ -28,21 +28,7 @@ struct ws_state {
|
||||
typedef void (* tWSHandler ) (uint8_t *data, uint16_t len);
|
||||
typedef void (* tWSOpenHandler ) (struct ws_state * wss);
|
||||
|
||||
static struct ws_state* ws_state_alloc(void);
|
||||
static void ws_state_init(struct ws_state *wss);
|
||||
static void ws_state_free(struct ws_state *wss);
|
||||
void ws_server_init(void);
|
||||
static void ws_server_init_pcb( struct altcp_pcb *pcb, uint16_t port);
|
||||
static err_t ws_accept(void *arg, struct altcp_pcb *pcb, err_t err);
|
||||
static err_t ws_recv(void *arg, struct altcp_pcb *pcb, struct pbuf *p, err_t err);
|
||||
static err_t ws_sent(void *arg, struct altcp_pcb *pcb, uint16_t len);
|
||||
static void ws_err (void *arg, err_t err);
|
||||
static err_t ws_close_conn(struct altcp_pcb *pcb, struct ws_state *wss);
|
||||
static err_t ws_close_or_abort_conn(struct altcp_pcb *pcb, struct ws_state *wss, uint8_t abort_conn);
|
||||
static err_t ws_poll(void *arg, struct altcp_pcb *pcb);
|
||||
static err_t ws_handshake(struct altcp_pcb *pcb, struct ws_state *wss, struct pbuf *p);
|
||||
static err_t ws_read(struct altcp_pcb *pcb, struct ws_state *wss, struct pbuf *p);
|
||||
static err_t ws_send(struct ws_state *wss, uint8_t *data, uint16_t len);
|
||||
void ws_send_all(uint8_t *data, uint16_t len);
|
||||
void ws_set_receive_handler( tWSHandler ws_handler);
|
||||
void ws_set_open_handler( tWSOpenHandler ws_handler);
|
||||
|
||||
Reference in New Issue
Block a user