00001 #ifndef HEADER_CURL_SERVER_GETPART_H 00002 #define HEADER_CURL_SERVER_GETPART_H 00003 /*************************************************************************** 00004 * _ _ ____ _ 00005 * Project ___| | | | _ \| | 00006 * / __| | | | |_) | | 00007 * | (__| |_| | _ <| |___ 00008 * \___|\___/|_| \_\_____| 00009 * 00010 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. 00011 * 00012 * This software is licensed as described in the file COPYING, which 00013 * you should have received as part of this distribution. The terms 00014 * are also available at https://curl.haxx.se/docs/copyright.html. 00015 * 00016 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 00017 * copies of the Software, and permit persons to whom the Software is 00018 * furnished to do so, under the terms of the COPYING file. 00019 * 00020 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 00021 * KIND, either express or implied. 00022 * 00023 ***************************************************************************/ 00024 #include "server_setup.h" 00025 00026 #define GPE_NO_BUFFER_SPACE -2 00027 #define GPE_OUT_OF_MEMORY -1 00028 #define GPE_OK 0 00029 #define GPE_END_OF_FILE 1 00030 00031 int getpart(char **outbuf, size_t *outlen, 00032 const char *main, const char *sub, FILE *stream); 00033 00034 #endif /* HEADER_CURL_SERVER_GETPART_H */