aboutsummaryrefslogtreecommitdiffstats
path: root/qthelperfromc.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 07:43:35 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 12:49:05 -0700
commit31fbc167850572f034c7fbb8551e10e0cfd7ca29 (patch)
treea1f2389eb89263a3d731abd3c4ea5cd5d1d8c7da /qthelperfromc.h
parent785f9ba8356203b69672cc76b779b9458ccb9709 (diff)
downloadsubsurface-31fbc167850572f034c7fbb8551e10e0cfd7ca29.tar.gz
Git storage: implement picture loading from git
The interesting challenge here is what to do with the picture data stored in the git repository. If the pictures are already in the file system (for example because Subsurface is runnin on the same machine that this data file was saved on) it would be silly to extract them again every time the dive log is opened. So instead we try to figure out if the pictures can be located and only create local copies of them if that isn't the case. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelperfromc.h')
-rw-r--r--qthelperfromc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qthelperfromc.h b/qthelperfromc.h
index 6e8d92b9f..9a5e9551a 100644
--- a/qthelperfromc.h
+++ b/qthelperfromc.h
@@ -9,6 +9,8 @@ void subsurface_mkdir(const char *dir);
char *get_file_name(const char *fileName);
void copy_image_and_overwrite(const char *cfileName, const char *cnewName);
char *hashstring(char *filename);
+bool picture_exists(struct picture *picture);
const char *local_file_path(struct picture *picture);
+void savePictureLocal(struct picture *picture, const char *data, int len);
#endif // QTHELPERFROMC_H