diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-31 14:00:05 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-31 14:05:11 +0100 |
commit | 7c94e01d9feff8e6c09c88a9e51c8d5a6cb61005 (patch) | |
tree | d2a7635629bdb897aaeba592a6c98dcae3450937 /common/propertymapper.h | |
parent | 380649c1eb762f5f7a10cd15d1c5e87f36b0638c (diff) | |
download | sink-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.h | 9 |
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 | */ |
30 | template <class T> | 31 | template <class T> |
31 | flatbuffers::uoffset_t variantToProperty(const QVariant &, flatbuffers::FlatBufferBuilder &fbb); | 32 | flatbuffers::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 | */ |
36 | template <typename T> | 37 | template <typename T> |
37 | QVariant propertyToVariant(const flatbuffers::String *); | 38 | QVariant SINKCOMMON_EXPORT propertyToVariant(const flatbuffers::String *); |
38 | template <typename T> | 39 | template <typename T> |
39 | QVariant propertyToVariant(uint8_t); | 40 | QVariant SINKCOMMON_EXPORT propertyToVariant(uint8_t); |
40 | template <typename T> | 41 | template <typename T> |
41 | QVariant propertyToVariant(const flatbuffers::Vector<uint8_t> *); | 42 | QVariant SINKCOMMON_EXPORT propertyToVariant(const flatbuffers::Vector<uint8_t> *); |
42 | 43 | ||
43 | 44 | ||
44 | /** | 45 | /** |