2012-12-28 19:03:09 +08:00
|
|
|
#ifndef HEADER_CURL_FILE_H
|
|
|
|
#define HEADER_CURL_FILE_H
|
2002-09-03 19:52:59 +08:00
|
|
|
/***************************************************************************
|
2005-02-09 21:06:40 +08:00
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
1999-12-29 22:20:26 +08:00
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2023-01-02 20:51:48 +08:00
|
|
|
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
1999-12-29 22:20:26 +08:00
|
|
|
*
|
2002-09-03 19:52:59 +08:00
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
* are also available at https://curl.se/docs/copyright.html.
|
2005-02-09 21:06:40 +08:00
|
|
|
*
|
2001-01-03 17:29:33 +08: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 19:52:59 +08:00
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
1999-12-29 22:20:26 +08:00
|
|
|
*
|
2001-01-03 17:29:33 +08:00
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
1999-12-29 22:20:26 +08:00
|
|
|
*
|
2022-05-17 17:16:50 +08:00
|
|
|
* SPDX-License-Identifier: curl
|
|
|
|
*
|
2002-09-03 19:52:59 +08:00
|
|
|
***************************************************************************/
|
2009-12-13 06:17:51 +08: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 19:13:01 +08:00
|
|
|
#ifndef CURL_DISABLE_FILE
|
2007-10-12 21:36:37 +08:00
|
|
|
extern const struct Curl_handler Curl_handler_file;
|
1999-12-29 22:20:26 +08:00
|
|
|
#endif
|
2012-12-28 19:03:09 +08:00
|
|
|
|
|
|
|
#endif /* HEADER_CURL_FILE_H */
|