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