rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #ifndef _FTP_MANAGER_H
|
| 2 | #define _FTP_MANAGER_H
|
| 3 |
|
| 4 | #include "thread_pool.h"
|
| 5 | #include "list.h"
|
| 6 | #include "ftp/lynq_ftp.h"
|
| 7 | #include "common.h"
|
| 8 |
|
| 9 | typedef struct
|
| 10 | {
|
| 11 | int id;
|
| 12 | char *action;
|
| 13 | int (*ftp_action)(lynq_ftp_socker_info* FTP);
|
| 14 | }FTP_MAG_S;
|
| 15 |
|
| 16 |
|
| 17 | typedef struct FTP_LIST_LINK
|
| 18 | {
|
| 19 | struct list_head list;
|
| 20 | lynq_ftp_socker_info data;
|
| 21 | }FTP_LIST_LINK_S;
|
| 22 |
|
| 23 |
|
| 24 | void ftp_list_init(void);
|
| 25 | int ftp_list_locate(void);
|
| 26 | int ftp_param_verification(char result[][BUF_SIZE] , int line);
|
| 27 | int ftp_act_handler(thread_pool_t *pool);
|
| 28 |
|
| 29 | #endif |