blob: 5e3bd75647f68a06726ab6b4efe5e2024688b6a3 [file] [log] [blame]
9487f7f2011-08-03 07:05:30 -07001#ifndef __FILE_H
2#define __FILE_H
3
4/***************************************************************************
5 * _ _ ____ _
6 * Project ___| | | | _ \| |
7 * / __| | | | |_) | |
8 * | (__| |_| | _ <| |___
9 * \___|\___/|_| \_\_____|
10 *
11 * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
12 *
13 * This software is licensed as described in the file COPYING, which
14 * you should have received as part of this distribution. The terms
15 * are also available at http://curl.haxx.se/docs/copyright.html.
16 *
17 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18 * copies of the Software, and permit persons to whom the Software is
19 * furnished to do so, under the terms of the COPYING file.
20 *
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
23 *
24 ***************************************************************************/
25
26
27/****************************************************************************
28 * FILE unique setup
29 ***************************************************************************/
30struct FILEPROTO {
31 char *path; /* the path we operate on */
32 char *freepath; /* pointer to the allocated block we must free, this might
33 differ from the 'path' pointer */
34 int fd; /* open file descriptor to read from! */
35};
36
37#ifndef CURL_DISABLE_FILE
38extern const struct Curl_handler Curl_handler_file;
39#endif
40#endif