00001 #ifndef HEADER_CURL_SLIST_WC_H 00002 #define HEADER_CURL_SLIST_WC_H 00003 /*************************************************************************** 00004 * _ _ ____ _ 00005 * Project ___| | | | _ \| | 00006 * / __| | | | |_) | | 00007 * | (__| |_| | _ <| |___ 00008 * \___|\___/|_| \_\_____| 00009 * 00010 * Copyright (C) 1998 - 2015, 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 00025 #include "tool_setup.h" 00026 #ifndef CURL_DISABLE_LIBCURL_OPTION 00027 00028 /* linked-list structure with last node cache for easysrc */ 00029 struct slist_wc { 00030 struct curl_slist *first; 00031 struct curl_slist *last; 00032 }; 00033 00034 /* 00035 * NAME curl_slist_wc_append() 00036 * 00037 * DESCRIPTION 00038 * 00039 * Appends a string to a linked list. If no list exists, it will be created 00040 * first. Returns the new list, after appending. 00041 */ 00042 struct slist_wc *slist_wc_append(struct slist_wc *, const char *); 00043 00044 /* 00045 * NAME curl_slist_free_all() 00046 * 00047 * DESCRIPTION 00048 * 00049 * free a previously built curl_slist_wc. 00050 */ 00051 void slist_wc_free_all(struct slist_wc *); 00052 00053 #endif /* CURL_DISABLE_LIBCURL_OPTION */ 00054 00055 #endif /* HEADER_CURL_SLIST_WC_H */ 00056