diff options
author | sijanec <anton@sijanec.eu> | 2021-04-04 22:52:39 +0200 |
---|---|---|
committer | sijanec <anton@sijanec.eu> | 2021-04-04 22:52:39 +0200 |
commit | 4916ba77785633cd0d74a05802d0fc08764f40dc (patch) | |
tree | 747e53b5e64dbaaba71dbef5033424f2c5166067 /src/structs.c | |
parent | fixed dependency on stdin to pause (diff) | |
download | sear.c-4916ba77785633cd0d74a05802d0fc08764f40dc.tar sear.c-4916ba77785633cd0d74a05802d0fc08764f40dc.tar.gz sear.c-4916ba77785633cd0d74a05802d0fc08764f40dc.tar.bz2 sear.c-4916ba77785633cd0d74a05802d0fc08764f40dc.tar.lz sear.c-4916ba77785633cd0d74a05802d0fc08764f40dc.tar.xz sear.c-4916ba77785633cd0d74a05802d0fc08764f40dc.tar.zst sear.c-4916ba77785633cd0d74a05802d0fc08764f40dc.zip |
Diffstat (limited to '')
-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) { |