Lines Matching refs:hsp
38 void *hsp)
42 html_parser_char_parse(hsp, ((char *)buffer)[p]);
43 if (html_parser_cmp_tag(hsp, "a", 1))
44 if (html_parser_cmp_attr(hsp, "href", 4))
45 if (html_parser_is_in(hsp, HTML_VALUE_ENDED)) {
46 html_parser_val(hsp)[html_parser_val_length(hsp)] = '\0';
47 printf("%s\n", html_parser_val(hsp));
57 HTMLSTREAMPARSER *hsp;
66 hsp = html_parser_init();
68 html_parser_set_tag_to_lower(hsp, 1);
69 html_parser_set_attr_to_lower(hsp, 1);
70 html_parser_set_tag_buffer(hsp, tag, sizeof(tag));
71 html_parser_set_attr_buffer(hsp, attr, sizeof(attr));
72 html_parser_set_val_buffer(hsp, val, sizeof(val)-1);
76 curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
83 html_parser_cleanup(hsp);