diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-06 19:27:28 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-08 07:46:50 -0800 |
commit | cc3a184adfcf08744de1caf930430300656349a2 (patch) | |
tree | c84150e3110222adcb424f50b899cdd2df4b06ca /dive.h | |
parent | 6d0011947b0675de21e4010dedb14a94cd7f7873 (diff) | |
download | subsurface-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |