Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 264) sorted by relevance

1234567891011

/curl/lib/
H A Dllist.c82 DEBUGASSERT(list); in Curl_llist_insert_next()
90 ne->_list = list; in Curl_llist_insert_next()
115 ++list->_size; in Curl_llist_insert_next()
131 DEBUGASSERT(list); in Curl_llist_append()
134 Curl_llist_insert_next(list, list->_tail, p, ne); in Curl_llist_append()
148 list = e->_list; in Curl_node_uremove()
149 DEBUGASSERT(list); in Curl_node_uremove()
156 if(!list->_head) in Curl_node_uremove()
181 --list->_size; in Curl_node_uremove()
184 if(list->_dtor) in Curl_node_uremove()
[all …]
H A Dslist.c41 if(!list) in slist_get_last()
45 item = list; in slist_get_last()
76 if(!list) in Curl_slist_append_nodup()
79 last = slist_get_last(list); in Curl_slist_append_nodup()
81 return list; in Curl_slist_append_nodup()
99 list = Curl_slist_append_nodup(list, dupdata); in curl_slist_append()
100 if(!list) in curl_slist_append()
103 return list; in curl_slist_append()
131 void curl_slist_free_all(struct curl_slist *list) in curl_slist_free_all() argument
136 if(!list) in curl_slist_free_all()
[all …]
/curl/src/
H A Dslist_wc.c46 if(!list) { in slist_wc_append()
49 if(!list) { in slist_wc_append()
54 list->first = new_item; in slist_wc_append()
55 list->last = new_item; in slist_wc_append()
56 return list; in slist_wc_append()
59 list->last->next = new_item; in slist_wc_append()
60 list->last = list->last->next; in slist_wc_append()
61 return list; in slist_wc_append()
67 if(!list) in slist_wc_free_all()
70 curl_slist_free_all(list->first); in slist_wc_free_all()
[all …]
/curl/tests/libtest/
H A Dlib1955.c32 struct curl_slist *list = NULL; in test() local
52 list = curl_slist_append(list, "test3: 1234"); in test()
53 if(!list) in test()
59 curl_slist_append(list, "Content-Type: application/json"); in test()
65 curl_slist_append(list, "test2;"); in test()
70 curl_slist_append(list, "test1:"); in test()
74 curl_slist_append(list, "test0"); in test()
76 curl_slist_append(list, "test_space: t\ts m\t end "); in test()
77 curl_slist_append(list, "tesMixCase: MixCase"); in test()
78 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
[all …]
H A Dlib1964.c33 struct curl_slist *list = NULL, *tmp; in test() local
49 list = curl_slist_append(list, "Content-Type: application/json"); in test()
50 tmp = curl_slist_append(list, "X-Xxx-Date: 19700101T000000Z"); in test()
51 if(!list || !tmp) { in test()
55 list = tmp; in test()
56 easy_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
63 curl_slist_free_all(list); in test()
H A Dlib1956.c32 struct curl_slist *list = NULL; in test() local
52 list = curl_slist_append(list, "Content-Type: application/json"); in test()
53 if(!list) in test()
59 curl_slist_append(list, "X-Xxx-Content-Sha256: " in test()
61 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
68 curl_slist_free_all(list); in test()
H A Dlib1957.c32 struct curl_slist *list = NULL; in test() local
52 list = curl_slist_append(list, "Content-Type: application/json"); in test()
53 if(!list) in test()
59 curl_slist_append(list, "X-Xxx-Content-Sha256: arbitrary"); in test()
60 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
67 curl_slist_free_all(list); in test()
H A Dlib1958.c32 struct curl_slist *list = NULL; in test() local
52 list = curl_slist_append(list, "Content-Type: application/json"); in test()
53 if(!list) in test()
59 curl_slist_append(list, "X-Xxx-Content-Sha256: \tarbitrary "); in test()
60 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
67 curl_slist_free_all(list); in test()
H A Dlib1959.c32 struct curl_slist *list = NULL; in test() local
52 list = curl_slist_append(list, "Content-Type: application/json"); in test()
53 if(!list) in test()
59 curl_slist_append(list, "X-Xxx-Content-Sha256: " in test()
62 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
69 curl_slist_free_all(list); in test()
H A Dlib1975.c42 struct curl_slist *list = NULL; in test() local
64 list = curl_slist_append(list, "Content-Type: application/json"); in test()
65 if(!list) in test()
67 curl_slist_append(list, "X-Amz-Content-Sha256: " in test()
69 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
80 curl_slist_free_all(list); in test()
H A Dlib1598.c37 static int trailers_callback(struct curl_slist **list, void *userdata) in trailers_callback() argument
42 nlist = curl_slist_append(*list, "my-super-awesome-trailer: trail1"); in trailers_callback()
46 *list = nlist2; in trailers_callback()
62 struct curl_slist *hhl = NULL, *list; in test()
82 list = curl_slist_append(hhl, "Transfer-Encoding: chunked"); in test()
83 if(!list) in test()
85 hhl = list; in test()
H A Dlib1973.c32 struct curl_slist *list = NULL; in test() local
53 list = curl_slist_append(list, "Content-Type: application/json"); in test()
54 if(!list) in test()
56 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
67 curl_slist_free_all(list); in test()
H A Dlib1970.c32 struct curl_slist *list = NULL; in test() local
54 list = curl_slist_append(list, "Content-Type: application/json"); in test()
55 if(!list) in test()
57 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
68 curl_slist_free_all(list); in test()
H A Dlib1971.c42 struct curl_slist *list = NULL; in test() local
64 list = curl_slist_append(list, "Content-Type: application/json"); in test()
65 if(!list) in test()
67 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
78 curl_slist_free_all(list); in test()
H A Dlib1972.c34 struct curl_slist *list = NULL; in test() local
64 list = curl_slist_append(list, "Content-Type: application/json"); in test()
65 if(!list) in test()
67 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
78 curl_slist_free_all(list); in test()
H A Dlib1933.c33 struct curl_slist *list = NULL; in test() local
55 list = curl_slist_append(list, "Content-Type: application/json"); in test()
56 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
63 curl_slist_free_all(list); in test()
H A Dlib1934.c33 struct curl_slist *list = NULL; in test() local
56 list = curl_slist_append(list, "Content-Type: application/json"); in test()
57 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
64 curl_slist_free_all(list); in test()
/curl/tests/unit/
H A Dunit2604.c60 struct set list[] = { variable
85 list[0].cp = calloc(1, too_long + 1);
87 memset((void *)list[0].cp, 'a', too_long);
89 for(i = 0; list[i].home; i++) {
91 const char *cp = list[i].cp;
94 list[i].cp, list[i].home, list[i].result);
95 if(result != list[i].result) {
100 if(cp && strcmp(cp, list[i].next)) {
102 cp, list[i].next);
107 path, list[i].expect);
[all …]
H A Dunit1654.c60 fail_unless(Curl_llist_count(&asi->list) == 4, "wrong number of entries");
66 fail_unless(Curl_llist_count(&asi->list) == 5, "wrong number of entries");
71 fail_unless(Curl_llist_count(&asi->list) == 6, "wrong number of entries");
78 fail_unless(Curl_llist_count(&asi->list) == 8, "wrong number of entries");
84 fail_unless(Curl_llist_count(&asi->list) == 9, "wrong number of entries");
91 fail_unless(Curl_llist_count(&asi->list) == 10, "wrong number of entries");
98 fail_unless(Curl_llist_count(&asi->list) == 12, "wrong number of entries");
104 fail_unless(Curl_llist_count(&asi->list) == 10, "wrong number of entries");
/curl/tests/
H A Ddirectories.pm209 my ($list) = $_[0];
211 my $type = $$list{'type'};
212 my $eol = $$list{'eol'};
213 my $list_ref = $$list{'files'};
259 my $list = $lists{$list_type};
260 if($list) {
261 my $files = $list->{'files'};
282 my $list = $lists{$list_type};
283 if($list) {
284 my $files = $list->{'files'};
[all …]
/curl/docs/libcurl/opts/
H A DCURLOPT_MAIL_RCPT.md17 CURLOPT_MAIL_RCPT - list of SMTP mail recipients
30 Pass a pointer to a linked list of recipients to pass to the server in your
31 SMTP mail request. The linked list should be a fully valid list of
33 create the list and curl_slist_free_all(3) to clean up an entire list.
47 When performing a mailing list expand (**EXPN** command), each recipient
48 should be specified using the mailing list name, such as `Friends` or
68 struct curl_slist *list;
69 list = curl_slist_append(NULL, "root@localhost");
70 list = curl_slist_append(list, "person@example.com");
72 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, list);
[all …]
H A DCURLOPT_HTTP200ALIASES.md30 Pass a pointer to a linked list of *aliases* to be treated as valid HTTP 200
34 of such. By including this string in your list of aliases, the response gets
37 The linked list should be a fully valid list of struct curl_slist structs, and
38 be properly filled in. Use curl_slist_append(3) to create the list and
39 curl_slist_free_all(3) to clean up an entire list.
47 libcurl does not copy the list, it needs to be kept around until after the
63 struct curl_slist *list;
66 list = curl_slist_append(NULL, "ICY 200 OK");
67 list = curl_slist_append(list, "WEIRDO 99 FINE");
69 curl_easy_setopt(curl, CURLOPT_HTTP200ALIASES, list);
[all …]
H A DCURLOPT_PROXYHEADER.md30 Pass a pointer to a linked list of HTTP headers to pass in your HTTP request
31 sent to a proxy. The rules for this list is identical to the
39 following the request-line are headers. Adding this method line in this list
42 Using this option multiple times makes the last set list override the previous
45 libcurl does not copy the list, it needs to be kept around until after the
61 struct curl_slist *list;
67 list = curl_slist_append(NULL, "Shoesize: 10");
68 list = curl_slist_append(list, "Accept:");
70 curl_easy_setopt(curl, CURLOPT_PROXYHEADER, list);
74 curl_slist_free_all(list); /* free the list again */
/curl/docs/libcurl/
H A Dcurl_slist_append.md23 struct curl_slist *curl_slist_append(struct curl_slist *list,
29 curl_slist_append(3) appends a string to a linked list of strings. The
30 existing **list** should be passed as the first argument and the new list is
31 returned from this function. Pass in NULL in the **list** argument to create
32 a new list. The specified **string** has been appended when this function
35 The list should be freed again (after usage) with
67 curl_slist_free_all(slist); /* free the list again */
75 A null pointer is returned if anything went wrong, otherwise the new list
76 pointer is returned. To avoid overwriting an existing non-empty list on
77 failure, the new list should be returned to a temporary variable which can
[all …]
/curl/docs/examples/
H A Dsslbackend.c49 const curl_ssl_backend **list; in main() local
52 result = curl_global_sslset(CURLSSLBACKEND_NONE, NULL, &list); in main()
55 for(i = 0; list[i]; i++) in main()
57 i, list[i]->name, list[i]->id); in main()

Completed in 26 milliseconds

1234567891011