summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-30 18:29:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-19 13:11:10 -0700
commit6200909ba4ffba2d79770b7eacdb615eeb2c88c1 (patch)
treea5c63427daf5a3d73f179d5c63177edffe03c2e4 /core/dive.h
parent46c69fccb79911b4ef1bc12606f39b072cbf19d3 (diff)
downloadsubsurface-6200909ba4ffba2d79770b7eacdb615eeb2c88c1.tar.gz
Cleanup: move tag functions into own translation unit
Make dive.h a bit slimmer. It's only a drop in the bucket - but at least when modifying tag functions not the *whole* application is rebuilt anymore. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/core/dive.h b/core/dive.h
index c115f5c0f..a68336494 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -177,52 +177,6 @@ struct sample // BASE TYPE BYTES UNITS RANGE
// not calculated when planning a dive
}; // Total size of structure: 57 bytes, excluding padding at end
-struct divetag {
- /*
- * The name of the divetag. If a translation is available, name contains
- * the translated tag
- */
- char *name;
- /*
- * If a translation is available, we write the original tag to source.
- * This enables us to write a non-localized tag to the xml file.
- */
- char *source;
-};
-
-struct tag_entry {
- struct divetag *tag;
- struct tag_entry *next;
-};
-
-/*
- * divetags are only stored once, each dive only contains
- * a list of tag_entries which then point to the divetags
- * in the global g_tag_list
- */
-
-extern struct tag_entry *g_tag_list;
-
-struct divetag *taglist_add_tag(struct tag_entry **tag_list, const char *tag);
-struct tag_entry *taglist_added(struct tag_entry *original_list, struct tag_entry *new_list);
-
-/*
- * Writes all divetags form tag_list into internally allocated buffer
- * Function returns pointer to allocated buffer
- * Buffer contains comma separated list of tags names or null terminated string
- *
- * NOTE! The returned buffer must be freed once used.
- */
-char *taglist_get_tagstring(struct tag_entry *tag_list);
-
-/* cleans up a list: removes empty tags and duplicates */
-void taglist_cleanup(struct tag_entry **tag_list);
-
-void taglist_init_global();
-void taglist_free(struct tag_entry *tag_list);
-struct tag_entry *taglist_copy(struct tag_entry *s);
-bool taglist_contains(struct tag_entry *tag_list, const char *tag);
-
struct extra_data {
const char *key;
const char *value;