summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-05-25 16:24:31 +0000
committerdes <des@FreeBSD.org>2000-05-25 16:24:31 +0000
commite5d7688f99046a4b3022e13701fd346f5328d6d4 (patch)
treeab95bd3a9549fc63c0570b6e47ddc36c1afcbb85 /lib/libfetch/fetch.h
parent8e62250edde9eea0607bde13a83225e481f0e1ca (diff)
downloadFreeBSD-src-e5d7688f99046a4b3022e13701fd346f5328d6d4.zip
FreeBSD-src-e5d7688f99046a4b3022e13701fd346f5328d6d4.tar.gz
Dump com_err, it's a stinking crock of shit.
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r--lib/libfetch/fetch.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h
index 02df28a..beb43e6 100644
--- a/lib/libfetch/fetch.h
+++ b/lib/libfetch/fetch.h
@@ -31,9 +31,7 @@
#ifndef _FETCH_H_INCLUDED
#define _FETCH_H_INCLUDED
-#include <fetch_err.h>
-
-#define _LIBFETCH_VER "libfetch/1.0"
+#define _LIBFETCH_VER "libfetch/2.0"
#define URL_SCHEMELEN 16
#define URL_USERLEN 256
@@ -61,6 +59,27 @@ struct url_ent {
struct url_stat stat;
};
+/* Error codes */
+#define FETCH_ABORT 1
+#define FETCH_AUTH 2
+#define FETCH_DOWN 3
+#define FETCH_EXISTS 4
+#define FETCH_FULL 5
+#define FETCH_INFO 6
+#define FETCH_MEMORY 7
+#define FETCH_MOVED 8
+#define FETCH_NETWORK 9
+#define FETCH_OK 10
+#define FETCH_PROTO 11
+#define FETCH_RESOLV 12
+#define FETCH_SERVER 13
+#define FETCH_TEMP 14
+#define FETCH_TIMEOUT 15
+#define FETCH_UNAVAIL 16
+#define FETCH_UNKNOWN 17
+#define FETCH_URL 18
+#define FETCH_VERBOSE 19
+
/* FILE-specific functions */
FILE *fetchGetFile(struct url *, char *);
FILE *fetchPutFile(struct url *, char *);
@@ -96,6 +115,8 @@ void fetchFreeURL(struct url *);
/* Last error code */
extern int fetchLastErrCode;
+#define MAXERRSTRING 256
+extern char fetchLastErrString[MAXERRSTRING];
extern int fetchTimeout;
#endif
OpenPOWER on IntegriCloud