diff options
Diffstat (limited to 'include/ftplib.h')
-rw-r--r-- | include/ftplib.h | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/include/ftplib.h b/include/ftplib.h index 75a90ae..8eb722f 100644 --- a/include/ftplib.h +++ b/include/ftplib.h @@ -1,28 +1,33 @@ /***************************************************************************/ /* ftplib.h - header file for callable ftp access routines */ /* Copyright (C) 1996, 1997 Thomas Pfau, pfau@cnj.digex.net */ -/* 73 Catherine Street, South Bound Brook, NJ, 08880 */ -/* */ -/* This library is free software; you can redistribute it and/or */ -/* modify it under the terms of the GNU Library General Public */ -/* License as published by the Free Software Foundation; either */ -/* version 2 of the License, or (at your option) any later version. */ -/* */ -/* This library 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 */ -/* Library General Public License for more details. */ -/* */ -/* You should have received a copy of the GNU Library General Public */ -/* License along with this progam; if not, write to the */ -/* Free Software Foundation, Inc., 59 Temple Place - Suite 330, */ -/* Boston, MA 02111-1307, USA. */ -/* */ +/* 73 Catherine Street, South Bound Brook, NJ, 08880 */ +/* */ +/* This library is free software; you can redistribute it and/or */ +/* modify it under the terms of the GNU Library General Public */ +/* License as published by the Free Software Foundation; either */ +/* version 2 of the License, or (at your option) any later version. */ +/* */ +/* This library 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 */ +/* Library General Public License for more details. */ +/* */ +/* You should have received a copy of the GNU Library General Public */ +/* License along with this progam; if not, write to the */ +/* Free Software Foundation, Inc., 59 Temple Place - Suite 330, */ +/* Boston, MA 02111-1307, USA. */ +/* */ /***************************************************************************/ #if !defined(__FTPLIB_H) #define __FTPLIB_H +#ifndef _FTPLIB_NO_COMPAT +#define _FTPLIB_NO_COMPAT +#endif + + #if defined(__unix__) || defined(VMS) #define GLOBALDEF #define GLOBALREF extern @@ -50,13 +55,14 @@ /* connection modes */ #define FTPLIB_PASSIVE 1 #define FTPLIB_PORT 2 - /* connection option names */ #define FTPLIB_CONNMODE 1 #define FTPLIB_CALLBACK 2 #define FTPLIB_IDLETIME 3 #define FTPLIB_CALLBACKARG 4 #define FTPLIB_CALLBACKBYTES 5 +#define FTPLIB_CALLBACK_WRITER 6 +#define FTPLIB_CALLBACK_WRITERARG 7 #ifdef __cplusplus extern "C" { @@ -64,6 +70,7 @@ extern "C" { typedef struct NetBuf netbuf; typedef int (*FtpCallback)(netbuf *nControl, int xfered, void *arg); +typedef int (*FtpCallbackWriter)(netbuf *nControl, const void *buffer, size_t size, void *arg); /* v1 compatibility stuff */ #if !defined(_FTPLIB_NO_COMPAT) |