mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- bugfixes for ftp server to work on windows, silly M$ compiler has issues with mixing C / C++ code so I had to make these changes
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void ftpInit(ftpFindExternalFTPServerIpType cb1, ftpAddUPNPPortForwardType cb2, ftpRemoveUPNPPortForwardType cb3);
|
||||
int ftpCreateAccount(const char* name, const char* passw, const char* root, int accRights);
|
||||
int ftpStart(int portNumber);
|
||||
int ftpShutdown(void);
|
||||
|
@@ -60,9 +60,22 @@ typedef uint16_t port_t;
|
||||
#define TRUE 1
|
||||
#endif
|
||||
|
||||
ip_t (*ftpFindExternalFTPServerIp)(ip_t clientIp);
|
||||
void (*ftpAddUPNPPortForward)(int internalPort, int externalPort);
|
||||
void (*ftpRemoveUPNPPortForward)(int internalPort, int externalPort);
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int VERBOSE_MODE_ENABLED;
|
||||
|
||||
typedef ip_t (*ftpFindExternalFTPServerIpType)(ip_t clientIp);
|
||||
typedef void (*ftpAddUPNPPortForwardType)(int internalPort, int externalPort);
|
||||
typedef void (*ftpRemoveUPNPPortForwardType)(int internalPort, int externalPort);
|
||||
|
||||
ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
|
||||
ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
|
||||
ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user