summaryrefslogtreecommitdiffstats
path: root/common/propertymapper.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-31 14:00:05 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-31 14:05:11 +0100
commit7c94e01d9feff8e6c09c88a9e51c8d5a6cb61005 (patch)
treed2a7635629bdb897aaeba592a6c98dcae3450937 /common/propertymapper.h
parent380649c1eb762f5f7a10cd15d1c5e87f36b0638c (diff)
downloadsink-7c94e01d9feff8e6c09c88a9e51c8d5a6cb61005.tar.gz
sink-7c94e01d9feff8e6c09c88a9e51c8d5a6cb61005.zip
Explicitly state visibility
This cuts the exportet symbols from 12k to 2k and the library size from 16Mb to 14Mb, which isn't great but still an improvement. About 30% of the symbols are coming from the Store:: interface. nm -C -D /work/install/lib64/libsinkcommon.so.0.1
Diffstat (limited to 'common/propertymapper.h')
-rw-r--r--common/propertymapper.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/propertymapper.h b/common/propertymapper.h
index 94c9224..940fcee 100644
--- a/common/propertymapper.h
+++ b/common/propertymapper.h
@@ -19,6 +19,7 @@
19 19
20#pragma once 20#pragma once
21 21
22#include <sinkcommon_export.h>
22#include <QVariant> 23#include <QVariant>
23#include <QByteArray> 24#include <QByteArray>
24#include <functional> 25#include <functional>
@@ -28,17 +29,17 @@
28 * Defines how to convert qt primitives to flatbuffer ones 29 * Defines how to convert qt primitives to flatbuffer ones
29 */ 30 */
30template <class T> 31template <class T>
31flatbuffers::uoffset_t variantToProperty(const QVariant &, flatbuffers::FlatBufferBuilder &fbb); 32flatbuffers::uoffset_t SINKCOMMON_EXPORT variantToProperty(const QVariant &, flatbuffers::FlatBufferBuilder &fbb);
32 33
33/** 34/**
34 * Defines how to convert flatbuffer primitives to qt ones 35 * Defines how to convert flatbuffer primitives to qt ones
35 */ 36 */
36template <typename T> 37template <typename T>
37QVariant propertyToVariant(const flatbuffers::String *); 38QVariant SINKCOMMON_EXPORT propertyToVariant(const flatbuffers::String *);
38template <typename T> 39template <typename T>
39QVariant propertyToVariant(uint8_t); 40QVariant SINKCOMMON_EXPORT propertyToVariant(uint8_t);
40template <typename T> 41template <typename T>
41QVariant propertyToVariant(const flatbuffers::Vector<uint8_t> *); 42QVariant SINKCOMMON_EXPORT propertyToVariant(const flatbuffers::Vector<uint8_t> *);
42 43
43 44
44/** 45/**