2012-12-28 15:03:09 +04:00
|
|
|
#ifndef HEADER_CURL_FILE_H
|
|
|
|
#define HEADER_CURL_FILE_H
|
2002-09-03 15:52:59 +04:00
|
|
|
/***************************************************************************
|
2005-02-09 16:06:40 +03:00
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
1999-12-29 17:20:26 +03:00
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2019-11-03 01:41:43 +03:00
|
|
|
* Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
|
1999-12-29 17:20:26 +03:00
|
|
|
*
|
2002-09-03 15:52:59 +04:00
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
2016-02-03 02:19:02 +03:00
|
|
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
2005-02-09 16:06:40 +03:00
|
|
|
*
|
2001-01-03 12:29:33 +03:00
|
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
* copies of the Software, and permit persons to whom the Software is
|
2002-09-03 15:52:59 +04:00
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
1999-12-29 17:20:26 +03:00
|
|
|
*
|
2001-01-03 12:29:33 +03:00
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
1999-12-29 17:20:26 +03:00
|
|
|
*
|
2002-09-03 15:52:59 +04:00
|
|
|
***************************************************************************/
|
2009-12-13 01:17:51 +03:00
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* FILE unique setup
|
|
|
|
***************************************************************************/
|
|
|
|
struct FILEPROTO {
|
|
|
|
char *path; /* the path we operate on */
|
|
|
|
char *freepath; /* pointer to the allocated block we must free, this might
|
|
|
|
differ from the 'path' pointer */
|
|
|
|
int fd; /* open file descriptor to read from! */
|
|
|
|
};
|
|
|
|
|
2002-06-11 15:13:01 +04:00
|
|
|
#ifndef CURL_DISABLE_FILE
|
2007-10-12 17:36:37 +04:00
|
|
|
extern const struct Curl_handler Curl_handler_file;
|
1999-12-29 17:20:26 +03:00
|
|
|
#endif
|
2012-12-28 15:03:09 +04:00
|
|
|
|
|
|
|
#endif /* HEADER_CURL_FILE_H */
|