26 lines
		
	
	
		
			636 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			636 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef FTP_MANAGER_H
 | |
| #define FTP_MANAGER_H
 | |
| #ifdef __cplusplus
 | |
| extern "C"
 | |
| {
 | |
| #endif
 | |
|     typedef enum
 | |
|     {
 | |
|         FTP_SSL_FLAG_ENABLE = 0,
 | |
|         FTP_SSL_FLAG_DISABLE,
 | |
|         FTP_SSL_FLAG_END
 | |
|     } FtpSslFlag;
 | |
|     typedef struct ftp_config
 | |
|     {
 | |
|         const char *url;
 | |
|         const FtpSslFlag ftpsFlag;
 | |
|         const char *user;
 | |
|         const char *password;
 | |
|     } FtpConfig;
 | |
|     int ftp_manager_init(const FtpConfig config);
 | |
|     int ftp_manager_uninit(void);
 | |
|     int ftp_upload_file(const char *file_name, const char *file_path, unsigned int time_out);
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| #endif // !FTP_MANAGER_H
 |