diff options
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index aab06d8b1..3f904d6f1 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -881,6 +881,12 @@ void learnImages(const QDir dir, int max_recursions, bool recursed) QtConcurrent::blockingMap(files, hashFile); } +extern "C" const char *local_file_path(struct picture *picture) +{ + QString localFileName = fileFromHash(picture->hash); + return strdup(qPrintable(localFileName)); +} + extern "C" void picture_load_exif_data(struct picture *p) { EXIFInfo exif; |