filter: index/unindex dives on loading or clearing logs

When loading dive data, populate the fulltext index. When clearing
dive data, free the fulltext index. When deleting a dive, remove it
from the fulltext index.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-02-16 22:26:47 +01:00 committed by Dirk Hohndel
parent 6434ad2628
commit d3f6e032cc
3 changed files with 20 additions and 0 deletions

View file

@ -140,6 +140,7 @@ struct dive_site;
struct dive_site_table;
struct dive_trip;
struct trip_table;
struct full_text_cache;
struct dive {
struct dive_trip *divetrip;
timestamp_t when;