Lines Matching defs:hsp
40 void *hsp)
44 html_parser_char_parse(hsp, ((char *)buffer)[p]);
45 if(html_parser_cmp_tag(hsp, "a", 1))
46 if(html_parser_cmp_attr(hsp, "href", 4))
47 if(html_parser_is_in(hsp, HTML_VALUE_ENDED)) {
48 html_parser_val(hsp)[html_parser_val_length(hsp)] = '\0';
49 printf("%s\n", html_parser_val(hsp));
59 HTMLSTREAMPARSER *hsp;
68 hsp = html_parser_init();
70 html_parser_set_tag_to_lower(hsp, 1);
71 html_parser_set_attr_to_lower(hsp, 1);
72 html_parser_set_tag_buffer(hsp, tag, sizeof(tag));
73 html_parser_set_attr_buffer(hsp, attr, sizeof(attr));
74 html_parser_set_val_buffer(hsp, val, sizeof(val)-1);
78 curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
85 html_parser_cleanup(hsp);