mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-12 14:36:17 +00:00
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:
parent
9d8b05f47e
commit
b27538feba
4 changed files with 5 additions and 4 deletions
|
@ -6,5 +6,8 @@ bool canReachCloudServer();
|
||||||
void updateWindowTitle();
|
void updateWindowTitle();
|
||||||
bool isCloudUrl(const char *filename);
|
bool isCloudUrl(const char *filename);
|
||||||
void subsurface_mkdir(const char *dir);
|
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
|
#endif // QTHELPERFROMC_H
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include "save-html.h"
|
#include "save-html.h"
|
||||||
|
#include "qthelperfromc.h"
|
||||||
#include "gettext.h"
|
#include "gettext.h"
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,6 @@ void export_list(struct membuffer *b, const char *photos_dir, bool selected_only
|
||||||
|
|
||||||
void export_translation(const char *file_name);
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#include "membuffer.h"
|
#include "membuffer.h"
|
||||||
#include "strndup.h"
|
#include "strndup.h"
|
||||||
#include "git-access.h"
|
#include "git-access.h"
|
||||||
|
#include "qthelperfromc.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We're outputting utf8 in xml.
|
* 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");
|
put_format(b, " </divecomputer>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char * hashstring(char * filename);
|
|
||||||
|
|
||||||
static void save_picture(struct membuffer *b, struct picture *pic)
|
static void save_picture(struct membuffer *b, struct picture *pic)
|
||||||
{
|
{
|
||||||
put_string(b, " <picture filename='");
|
put_string(b, " <picture filename='");
|
||||||
|
|
Loading…
Add table
Reference in a new issue