2012-04-10 23:32:06 +08:00
|
|
|
#ifndef HEADER_CURL_SERVER_GETPART_H
|
|
|
|
#define HEADER_CURL_SERVER_GETPART_H
|
2004-02-20 15:19:01 +08:00
|
|
|
/***************************************************************************
|
2004-11-29 20:10:09 +08:00
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
2004-02-20 15:19:01 +08:00
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2020-03-23 21:44:29 +08:00
|
|
|
* Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2004-02-20 15:19:01 +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.
|
2004-11-29 20:10:09 +08:00
|
|
|
*
|
2004-02-20 15:19:01 +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
|
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2012-04-10 23:32:06 +08:00
|
|
|
#include "server_setup.h"
|
2010-02-14 21:14:17 +08:00
|
|
|
|
|
|
|
#define GPE_NO_BUFFER_SPACE -2
|
|
|
|
#define GPE_OUT_OF_MEMORY -1
|
|
|
|
#define GPE_OK 0
|
|
|
|
#define GPE_END_OF_FILE 1
|
|
|
|
|
|
|
|
int getpart(char **outbuf, size_t *outlen,
|
|
|
|
const char *main, const char *sub, FILE *stream);
|
|
|
|
|
2012-04-10 23:32:06 +08:00
|
|
|
#endif /* HEADER_CURL_SERVER_GETPART_H */
|