diff options
Diffstat (limited to 'src/structs.c')
-rw-r--r-- | src/structs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/structs.c b/src/structs.c index b99f1eb..2d83f74 100644 --- a/src/structs.c +++ b/src/structs.c @@ -36,9 +36,14 @@ struct sc_result { time_t date; /* some search engines like to extract a date from a website, store that here - not implemented */ unsigned short int rating; /* some search engines like to extract a rating from a website, store that here */ /* not implementd */ unsigned short int rating_max; /* max rating when above is used /\ */ /* not implemented yet */ + char * breadcrumbs; /* yesfree - google has nice breadcrumbs, when hovering over the URL requires too much time (: */ }; struct sc_result * sc_result_init () { struct sc_result * r = calloc(1, sizeof(struct sc_result)); + r->url = NULL; + r->desc = NULL; + r->title = NULL; + r->breadcrumbs = NULL; return r; } int sc_result_free (struct sc_result * r) { @@ -47,6 +52,7 @@ int sc_result_free (struct sc_result * r) { free(r->url); free(r->desc); free(r->title); + free(r->breadcrumbs); free(r); return 1; } @@ -65,6 +71,7 @@ struct sc_query * sc_query_init () { q->results[i] = sc_result_init(); q->results[i]->query = q; } + q->string = NULL; return q; } int sc_query_free (struct sc_query * q) { |