aboutsummaryrefslogtreecommitdiffstats
path: root/taxonomy.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-13 15:18:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-13 15:21:30 -0700
commite82f8ea565a68aa1fa980cb12c1f136b1d4a57f9 (patch)
treebf6e7eedb5132ea1920636ed7943be10ce823ecc /taxonomy.h
parent94d3aa04dccc3c10980188bd357618e2a9f2fa83 (diff)
downloadsubsurface-e82f8ea565a68aa1fa980cb12c1f136b1d4a57f9.tar.gz
Geo taxonomy: correctly store / update the categories
Don't throw away data unless new data has been received. And don't store multiple copies of the same category. And most importantly, never write past the end of the array. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'taxonomy.h')
-rw-r--r--taxonomy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/taxonomy.h b/taxonomy.h
index bc42c6119..51245d562 100644
--- a/taxonomy.h
+++ b/taxonomy.h
@@ -33,6 +33,7 @@ struct taxonomy_data {
struct taxonomy *alloc_taxonomy();
void free_taxonomy(struct taxonomy_data *t);
+int taxonomy_index_for_category(struct taxonomy_data *t, enum taxonomy_category cat);
#ifdef __cplusplus
}