summaryrefslogtreecommitdiff
path: root/goo/gfile.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2021-01-17 18:31:19 +0100
committerAlbert Astals Cid <tsdgeos@yahoo.es>2021-03-01 21:37:34 +0000
commitce1fcd4352f920a59d965310440be18ff48acb8f (patch)
tree63eade90c9942eb9da6e6e526941c5723ef95ef9 /goo/gfile.h
parentd1e5c5b29214d82f43eb72d51b2df5184fcbbe33 (diff)
Hide symbols by default
Use cmake for better import/export defines
Diffstat (limited to 'goo/gfile.h')
-rw-r--r--goo/gfile.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/goo/gfile.h b/goo/gfile.h
index 4eb2cf4a..97cd517f 100644
--- a/goo/gfile.h
+++ b/goo/gfile.h
@@ -36,6 +36,7 @@
#define GFILE_H
#include "poppler-config.h"
+#include "poppler_private_export.h"
#include <cstdio>
#include <cstdlib>
#include <cstddef>
@@ -82,27 +83,27 @@ typedef long long Goffset;
// Append a file name to a path string. <path> may be an empty
// string, denoting the current directory). Returns <path>.
-extern GooString *appendToPath(GooString *path, const char *fileName);
+extern GooString POPPLER_PRIVATE_EXPORT *appendToPath(GooString *path, const char *fileName);
#ifndef _WIN32
// Open a file descriptor
// Could be implemented on WIN32 too, but the only external caller of
// this function is not used on WIN32
-extern int openFileDescriptor(const char *path, int flags);
+extern int POPPLER_PRIVATE_EXPORT openFileDescriptor(const char *path, int flags);
#endif
// Open a file. On Windows, this converts the path from UTF-8 to
// UCS-2 and calls _wfopen (if available). On other OSes, this simply
// calls fopen.
-extern FILE *openFile(const char *path, const char *mode);
+extern FILE POPPLER_PRIVATE_EXPORT *openFile(const char *path, const char *mode);
// Just like fgets, but handles Unix, Mac, and/or DOS end-of-line
// conventions.
-extern char *getLine(char *buf, int size, FILE *f);
+extern char POPPLER_PRIVATE_EXPORT *getLine(char *buf, int size, FILE *f);
// Like fseek/ftell but uses platform specific variants that support large files
-extern int Gfseek(FILE *f, Goffset offset, int whence);
-extern Goffset Gftell(FILE *f);
+extern int POPPLER_PRIVATE_EXPORT Gfseek(FILE *f, Goffset offset, int whence);
+extern Goffset POPPLER_PRIVATE_EXPORT Gftell(FILE *f);
// Largest offset supported by Gfseek/Gftell
extern Goffset GoffsetMax();
@@ -111,7 +112,7 @@ extern Goffset GoffsetMax();
// GooFile
//------------------------------------------------------------------------
-class GooFile
+class POPPLER_PRIVATE_EXPORT GooFile
{
public:
GooFile(const GooFile &) = delete;