Move helper declarations into a better header file

This way the helpers can be more easily used by other modules.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-21 06:37:24 -07:00
parent 9d8b05f47e
commit b27538feba
4 changed files with 5 additions and 4 deletions

View file

@ -6,5 +6,8 @@ bool canReachCloudServer();
void updateWindowTitle();
bool isCloudUrl(const char *filename);
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);
#endif // QTHELPERFROMC_H

View file

@ -1,4 +1,5 @@
#include "save-html.h"
#include "qthelperfromc.h"
#include "gettext.h"
#include "stdio.h"

View file

@ -23,8 +23,6 @@ void export_list(struct membuffer *b, const char *photos_dir, bool selected_only
void export_translation(const char *file_name);
extern void copy_image_and_overwrite(const char *cfileName, const char *cnewName);
extern char *get_file_name(const char *fileName);
#ifdef __cplusplus
}
#endif

View file

@ -13,6 +13,7 @@
#include "membuffer.h"
#include "strndup.h"
#include "git-access.h"
#include "qthelperfromc.h"
/*
* We're outputting utf8 in xml.
@ -360,8 +361,6 @@ static void save_dc(struct membuffer *b, struct dive *dive, struct divecomputer
put_format(b, " </divecomputer>\n");
}
extern char * hashstring(char * filename);
static void save_picture(struct membuffer *b, struct picture *pic)
{
put_string(b, " <picture filename='");