ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_hit_list_t Struct Reference

Bounded list of titled hits plus the raw anchor tally. More...

#include <mdl_extract.h>

Collaboration diagram for mdl_hit_list_t:

Data Fields

mdl_hit_t hits [k_mdl_max_hits]
 Deduplicated titled hits.
size_t count
 Number of valid hits.
size_t anchors_seen
 Total resolvable <a href> anchors.

Detailed Description

Bounded list of titled hits plus the raw anchor tally.

anchors_seen counts every <a> with a resolvable href scanned on the page (before the result filter), so a caller can tell a page that rendered links but matched none (zero results) from one that carried no links at all (the markup changed or the request was blocked). Large enough to prefer file scope over a deep stack.

Invariant
count <= k_mdl_max_hits; every stored URL is unique.
See also
mdl_extract_hits()
mdl_search_classify()
Since
0.1.0

Definition at line 68 of file mdl_extract.h.

Field Documentation

◆ anchors_seen

size_t mdl_hit_list_t::anchors_seen

Total resolvable <a href> anchors.

Definition at line 71 of file mdl_extract.h.

Referenced by internal_emit_hit(), internal_print_zero(), mdl_extract_hits(), and mdl_search_classify().

◆ count

◆ hits

mdl_hit_t mdl_hit_list_t::hits[k_mdl_max_hits]

The documentation for this struct was generated from the following file: