summaryrefslogtreecommitdiff
path: root/lib/sqfs/comp/internal.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-05 19:08:10 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-05 19:08:10 +0200
commitf8a92529ec04b560b5b9e647b976892412f78134 (patch)
tree5308d7f500df46ef64423708ed40a37675f4020c /lib/sqfs/comp/internal.h
parent320ae4f8e752f6652c7b5c8201d7267cd4de17c1 (diff)
Fix API visibility for libsquashfs.so
This commit adds a "predef.h" header to libsquashfs that exposes two macros, SQFS_API and SQFS_INTERNAL that are used to explicilty set the visibiliy of stuff that ends up in libsquashfs to default or hidden. For compatibillity with Windows which may at some point eventually be considered, the SQFS_API define is set to dllexport IF the cpp symbol SQFS_BUILDING_DLL is defined and set to import otherwise. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp/internal.h')
-rw-r--r--lib/sqfs/comp/internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sqfs/comp/internal.h b/lib/sqfs/comp/internal.h
index 1f76a45..117bb82 100644
--- a/lib/sqfs/comp/internal.h
+++ b/lib/sqfs/comp/internal.h
@@ -9,21 +9,29 @@
#include "config.h"
+#include "sqfs/predef.h"
#include "sqfs/compress.h"
#include "util.h"
+SQFS_INTERNAL
int sqfs_generic_write_options(int fd, const void *data, size_t size);
+SQFS_INTERNAL
int sqfs_generic_read_options(int fd, void *data, size_t size);
+SQFS_INTERNAL
sqfs_compressor_t *xz_compressor_create(const sqfs_compressor_config_t *cfg);
+SQFS_INTERNAL
sqfs_compressor_t *gzip_compressor_create(const sqfs_compressor_config_t *cfg);
+SQFS_INTERNAL
sqfs_compressor_t *lzo_compressor_create(const sqfs_compressor_config_t *cfg);
+SQFS_INTERNAL
sqfs_compressor_t *lz4_compressor_create(const sqfs_compressor_config_t *cfg);
+SQFS_INTERNAL
sqfs_compressor_t *zstd_compressor_create(const sqfs_compressor_config_t *cfg);
#endif /* INTERNAL_H */