WiiFlow_Lite/source/network/FTP_Dir.hpp
fix94.1 4d03e0e2dc -modified the ftp server so it runs in a separate thread, meaning it can now run in the background
-added autostart ftp server to the startup settings
-added a new section, the [FTP] one to the wiiflow.ini, containing settings like autostart, password, port and allow active mode transfers
-updated english.ini
2013-09-05 23:52:21 +00:00

54 lines
1.5 KiB
C++

/****************************************************************************
* Copyright (C) 2013 FIX94
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef _FTP_DIR_H_
#define _FTP_DIR_H_
#include <sys/reent.h>
#include <sys/dirent.h>
#include <sys/unistd.h>
#include <gctypes.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
void ftp_init(void);
const char *ftp_getpath(void);
DIR *ftp_diropen();
void ftp_dirclose(DIR *dir);
int ftp_dirnext(DIR *dir, char *name);
int ftp_changedir(char *path);
int ftp_makedir(char *path);
FILE *ftp_fopen(char *path, char *type);
void ftp_fclose(FILE *fp);
int ftp_stat(char *file, struct stat *st);
int ftp_rename(char *path, char *new_name);
int ftp_delete(char *path);
bool ftp_startThread(void);
void ftp_endTread(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif