blob: bb833ab36711432eba52b977d7e1d3bc303c896e [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#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
9typedef struct
10{
11 int id;
12 char *action;
13 int (*ftp_action)(lynq_ftp_socker_info* FTP);
14}FTP_MAG_S;
15
16
17typedef struct FTP_LIST_LINK
18{
19 struct list_head list;
20 lynq_ftp_socker_info data;
21}FTP_LIST_LINK_S;
22
23
24void ftp_list_init(void);
25int ftp_list_locate(void);
26int ftp_param_verification(char result[][BUF_SIZE] , int line);
27int ftp_act_handler(thread_pool_t *pool);
28
29#endif