summaryrefslogtreecommitdiff
path: root/lib/slist.h
diff options
context:
space:
mode:
authorPatrick Monnerat <pm@datasphere.ch>2013-07-15 16:53:43 +0200
committerPatrick Monnerat <pm@datasphere.ch>2013-07-15 16:53:43 +0200
commit964a7600b98dbdd4f03205b17ef93ef7850186fe (patch)
treef1e0ae785d5f39bb914e434e523f3320519099e6 /lib/slist.h
parent9c15325d34798501266146dffc2bfbe7cb788102 (diff)
downloadcurl-964a7600b98dbdd4f03205b17ef93ef7850186fe.tar.gz
slist.c, slist.h, cookie.c: new internal procedure Curl_slist_append_nodup()
Diffstat (limited to 'lib/slist.h')
-rw-r--r--lib/slist.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/slist.h b/lib/slist.h
index aede1f041..ea7dcc48b 100644
--- a/lib/slist.h
+++ b/lib/slist.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -29,5 +29,12 @@
*/
struct curl_slist *Curl_slist_duplicate(struct curl_slist *inlist);
+/*
+ * Curl_slist_append_nodup() takes ownership of the given string and appends
+ * it to the list.
+ */
+struct curl_slist *Curl_slist_append_nodup(struct curl_slist *list,
+ char *data);
+
#endif /* HEADER_CURL_SLIST_H */