fetch.h (025bb05a82175fb55686c64a636cc439a40ffa72) fetch.h (38c7e4a631ce968b02e4a08944aabad9b57844e8)
1/*-
2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 73 unchanged lines hidden (view full) ---

82#define FETCH_TEMP 14
83#define FETCH_TIMEOUT 15
84#define FETCH_UNAVAIL 16
85#define FETCH_UNKNOWN 17
86#define FETCH_URL 18
87#define FETCH_VERBOSE 19
88
89/* FILE-specific functions */
1/*-
2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 73 unchanged lines hidden (view full) ---

82#define FETCH_TEMP 14
83#define FETCH_TIMEOUT 15
84#define FETCH_UNAVAIL 16
85#define FETCH_UNKNOWN 17
86#define FETCH_URL 18
87#define FETCH_VERBOSE 19
88
89/* FILE-specific functions */
90FILE *fetchXGetFile(struct url *, struct url_stat *, char *);
91FILE *fetchGetFile(struct url *, char *);
92FILE *fetchPutFile(struct url *, char *);
93int fetchStatFile(struct url *, struct url_stat *, char *);
94struct url_ent *fetchListFile(struct url *, char *);
90FILE *fetchXGetFile(struct url *, struct url_stat *, const char *);
91FILE *fetchGetFile(struct url *, const char *);
92FILE *fetchPutFile(struct url *, const char *);
93int fetchStatFile(struct url *, struct url_stat *, const char *);
94struct url_ent *fetchListFile(struct url *, const char *);
95
96/* HTTP-specific functions */
95
96/* HTTP-specific functions */
97FILE *fetchXGetHTTP(struct url *, struct url_stat *, char *);
98FILE *fetchGetHTTP(struct url *, char *);
99FILE *fetchPutHTTP(struct url *, char *);
100int fetchStatHTTP(struct url *, struct url_stat *, char *);
101struct url_ent *fetchListHTTP(struct url *, char *);
97FILE *fetchXGetHTTP(struct url *, struct url_stat *, const char *);
98FILE *fetchGetHTTP(struct url *, const char *);
99FILE *fetchPutHTTP(struct url *, const char *);
100int fetchStatHTTP(struct url *, struct url_stat *, const char *);
101struct url_ent *fetchListHTTP(struct url *, const char *);
102
103/* FTP-specific functions */
102
103/* FTP-specific functions */
104FILE *fetchXGetFTP(struct url *, struct url_stat *, char *);
105FILE *fetchGetFTP(struct url *, char *);
106FILE *fetchPutFTP(struct url *, char *);
107int fetchStatFTP(struct url *, struct url_stat *, char *);
108struct url_ent *fetchListFTP(struct url *, char *);
104FILE *fetchXGetFTP(struct url *, struct url_stat *, const char *);
105FILE *fetchGetFTP(struct url *, const char *);
106FILE *fetchPutFTP(struct url *, const char *);
107int fetchStatFTP(struct url *, struct url_stat *, const char *);
108struct url_ent *fetchListFTP(struct url *, const char *);
109
110/* Generic functions */
109
110/* Generic functions */
111FILE *fetchXGetURL(char *, struct url_stat *, char *);
112FILE *fetchGetURL(char *, char *);
113FILE *fetchPutURL(char *, char *);
114int fetchStatURL(char *, struct url_stat *, char *);
115struct url_ent *fetchListURL(char *, char *);
116FILE *fetchXGet(struct url *, struct url_stat *, char *);
117FILE *fetchGet(struct url *, char *);
118FILE *fetchPut(struct url *, char *);
119int fetchStat(struct url *, struct url_stat *, char *);
120struct url_ent *fetchList(struct url *, char *);
111FILE *fetchXGetURL(const char *, struct url_stat *, const char *);
112FILE *fetchGetURL(const char *, const char *);
113FILE *fetchPutURL(const char *, const char *);
114int fetchStatURL(const char *, struct url_stat *, const char *);
115struct url_ent *fetchListURL(const char *, const char *);
116FILE *fetchXGet(struct url *, struct url_stat *, const char *);
117FILE *fetchGet(struct url *, const char *);
118FILE *fetchPut(struct url *, const char *);
119int fetchStat(struct url *, struct url_stat *, const char *);
120struct url_ent *fetchList(struct url *, const char *);
121
122/* URL parsing */
121
122/* URL parsing */
123struct url *fetchMakeURL(char *, char *, int, char *, char *, char *);
124struct url *fetchParseURL(char *);
123struct url *fetchMakeURL(const char *, const char *, int,
124 const char *, const char *, const char *);
125struct url *fetchParseURL(const char *);
125void fetchFreeURL(struct url *);
126
127/* Last error code */
128extern int fetchLastErrCode;
129#define MAXERRSTRING 256
130extern char fetchLastErrString[MAXERRSTRING];
131extern int fetchTimeout;
132extern int fetchRestartCalls;
133
134#endif
126void fetchFreeURL(struct url *);
127
128/* Last error code */
129extern int fetchLastErrCode;
130#define MAXERRSTRING 256
131extern char fetchLastErrString[MAXERRSTRING];
132extern int fetchTimeout;
133extern int fetchRestartCalls;
134
135#endif