mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
4a78f5798a
commit
cef15c978d
4 changed files with 5 additions and 4 deletions
|
@ -275,10 +275,6 @@ extern bool time_during_dive_with_offset(const struct dive *dive, timestamp_t wh
|
|||
/* Check if two dive computer entries are the exact same dive (-1=no/0=maybe/1=yes) */
|
||||
extern int match_one_dc(const struct divecomputer *a, const struct divecomputer *b);
|
||||
|
||||
extern void parse_xml_init(void);
|
||||
extern 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);
|
||||
extern void parse_xml_exit(void);
|
||||
|
||||
extern int save_dives(const char *filename);
|
||||
extern int save_dives_logic(const char *filename, bool select_only, bool anonymize);
|
||||
extern int save_dive(FILE *f, struct dive *dive, bool anonymize);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "core/color.h"
|
||||
#include "core/downloadfromdcthread.h" // for fill_computer_list
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/parse.h"
|
||||
#include "core/qt-gui.h"
|
||||
#include "core/qthelper.h"
|
||||
#include "core/subsurfacestartup.h"
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "core/dive.h"
|
||||
#include "core/color.h"
|
||||
#include "core/downloadfromdcthread.h"
|
||||
#include "core/parse.h"
|
||||
#include "core/qt-gui.h"
|
||||
#include "core/qthelper.h"
|
||||
#include "core/subsurfacestartup.h"
|
||||
|
|
Loading…
Reference in a new issue