diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-06-14 11:55:06 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-29 16:13:03 -0700 |
commit | cef15c978d466af37a0f453c50f2e8942ed7cdc2 (patch) | |
tree | 92ccf895cf19b9cc3969e5dfc4ef61a9bdc14527 /core/parse.h | |
parent | 4a78f5798ac23d5742e47a2aa99c81493d6b280d (diff) | |
download | subsurface-cef15c978d466af37a0f453c50f2e8942ed7cdc2.tar.gz |
cleanup: move function declarations from dive.h to parse.h
The parse_* functions should probably be declared in parse.h.
Arguably, parse_xml_init() and parse_xml_exit() should be moved
to an init.h file, however that doesn't yet exist.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/parse.h')
-rw-r--r-- | core/parse.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/parse.h b/core/parse.h index 41c1f18ba..e291d7e2c 100644 --- a/core/parse.h +++ b/core/parse.h @@ -120,6 +120,9 @@ void utf8_string(char *buffer, void *_res); void add_dive_site(char *ds_name, struct dive *dive, struct parser_state *state); int atoi_n(char *ptr, unsigned int len); +void parse_xml_init(void); +int parse_xml_buffer(const char *url, const char *buf, int size, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites, const char **params); +void parse_xml_exit(void); int parse_dm4_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites); int parse_dm5_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites); int parse_seac_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites); |