diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-06-20 18:15:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-29 16:13:03 -0700 |
commit | 1fcf4f891d9530639c82cc72ad748b23b57a44a1 (patch) | |
tree | b39f4e445acfa2ecfff9831b5455a94f5b23fa5a /core/git-access.h | |
parent | 3bfd448b596017be28c4f8af5dbb70b67eb2fc6b (diff) | |
download | subsurface-1fcf4f891d9530639c82cc72ad748b23b57a44a1.tar.gz |
filter: implement loading of filter presets from git repositories
This is mostly copy and paste of other git loading code. Sadly,
it adds a lot of state to the parser-state. I wish we could pass
different parser states to the parser_* functions.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/git-access.h')
-rw-r--r-- | core/git-access.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/git-access.h b/core/git-access.h index b02bd3280..b980c5f9b 100644 --- a/core/git-access.h +++ b/core/git-access.h @@ -3,6 +3,7 @@ #define GITACCESS_H #include "git2.h" +#include "filterpreset.h" #ifdef __cplusplus extern "C" { @@ -19,7 +20,8 @@ extern struct git_repository *is_git_repository(const char *filename, const char extern int check_git_sha(const char *filename, git_repository **git_p, const char **branch_p); extern int sync_with_remote(struct git_repository *repo, const char *remote, const char *branch, enum remote_transport rt); extern int git_save_dives(struct git_repository *, const char *, const char *remote, bool select_only); -extern int git_load_dives(struct git_repository *repo, const char *branch, struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites); +extern int git_load_dives(struct git_repository *repo, const char *branch, struct dive_table *table, struct trip_table *trips, + struct dive_site_table *sites, filter_preset_table_t *filter_presets); extern const char *get_sha(git_repository *repo, const char *branch); extern int do_git_save(git_repository *repo, const char *branch, const char *remote, bool select_only, bool create_empty); extern const char *saved_git_id; |