summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-03-06 19:27:28 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-08 07:46:50 -0800
commitcc3a184adfcf08744de1caf930430300656349a2 (patch)
treec84150e3110222adcb424f50b899cdd2df4b06ca /dive.h
parent6d0011947b0675de21e4010dedb14a94cd7f7873 (diff)
downloadsubsurface-cc3a184adfcf08744de1caf930430300656349a2.tar.gz
Add initial parser for git trees
It doesn't actually parse the files themselves, but it does walk the object tree and print out the dives and trips it finds. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index a87d05d7d..6d6edaae9 100644
--- a/dive.h
+++ b/dive.h
@@ -662,6 +662,8 @@ static inline struct dive *getDiveById(int id)
extern "C" {
#endif
+extern int report_error(const char *fmt, ...);
+
extern struct dive *find_dive_including(timestamp_t when);
extern bool dive_within_time_range(struct dive *dive, timestamp_t when, timestamp_t offset);
struct dive *find_dive_n_near(timestamp_t when, int n, timestamp_t offset);
@@ -686,6 +688,7 @@ extern void save_dives_logic(const char *filename, bool select_only);
extern void save_dive(FILE *f, struct dive *dive);
extern void export_dives_uddf(const char *filename, const bool selected);
extern int git_save_dives(int fd, bool select_only);
+extern int git_load_dives(char *where);
extern int subsurface_rename(const char *path, const char *newpath);
extern int subsurface_open(const char *path, int oflags, mode_t mode);