summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-07-11 18:56:01 +0000
committerdes <des@FreeBSD.org>1998-07-11 18:56:01 +0000
commit5b74d7e9c7c1f6bdcbae4e658c76c41016cdbf6b (patch)
tree4c94334611bca07668a0219331f52a4629e64811 /lib/libfetch/fetch.h
parentc39856b85e73a59eb926c7f6cc6a6b4097c4947b (diff)
downloadFreeBSD-src-5b74d7e9c7c1f6bdcbae4e658c76c41016cdbf6b.zip
FreeBSD-src-5b74d7e9c7c1f6bdcbae4e658c76c41016cdbf6b.tar.gz
Too many changes to list. Basically, FTP is nearly there and error
reporting is kinda sorted out. Now HTTP needs to catch up...
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r--lib/libfetch/fetch.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h
index 387d4c4..b536553 100644
--- a/lib/libfetch/fetch.h
+++ b/lib/libfetch/fetch.h
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$
+ * $Id: fetch.h,v 1.1.1.1 1998/07/09 16:52:41 des Exp $
*/
#ifndef _FETCH_H_INCLUDED
@@ -46,7 +46,6 @@ struct url_s {
char host[MAXHOSTNAMELEN+1];
char *doc;
int port;
- char *lasterr;
};
typedef struct url_s url_t;
@@ -56,7 +55,7 @@ FILE *fetchGetFile(url_t *, char *);
FILE *fetchPutFile(url_t *, char *);
/* HTTP-specific functions */
-char *fetchContentType(FILE *f);
+char *fetchContentType(FILE *);
FILE *fetchGetHTTP(url_t *, char *);
FILE *fetchPutHTTP(url_t *, char *);
@@ -65,10 +64,14 @@ FILE *fetchGetFTP(url_t *, char *);
FILE *fetchPutFTP(url_t *, char *);
/* Generic functions */
-url_t *fetchParseURL(char *URL);
-void fetchFreeURL(url_t *u);
+int fetchConnect(char *, int);
+url_t *fetchParseURL(char *);
+void fetchFreeURL(url_t *);
FILE *fetchGetURL(char *, char *);
FILE *fetchPutURL(char *, char *);
+/* Error code and string */
+extern int fetchLastErrCode;
+extern const char *fetchLastErrText;
#endif
OpenPOWER on IntegriCloud