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/log.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/log.h')
-rw-r--r-- | common/log.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/common/log.h b/common/log.h index 483f16f..35b628c 100644 --- a/common/log.h +++ b/common/log.h | |||
@@ -1,5 +1,6 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include <sinkcommon_export.h> | ||
3 | #include <QDebug> | 4 | #include <QDebug> |
4 | 5 | ||
5 | namespace Sink { | 6 | namespace Sink { |
@@ -12,13 +13,13 @@ enum DebugLevel { | |||
12 | Error | 13 | Error |
13 | }; | 14 | }; |
14 | 15 | ||
15 | QByteArray debugLevelName(DebugLevel debugLevel); | 16 | QByteArray SINKCOMMON_EXPORT debugLevelName(DebugLevel debugLevel); |
16 | DebugLevel debugLevelFromName(const QByteArray &name); | 17 | DebugLevel SINKCOMMON_EXPORT debugLevelFromName(const QByteArray &name); |
17 | 18 | ||
18 | void setDebugOutputLevel(DebugLevel); | 19 | void SINKCOMMON_EXPORT setDebugOutputLevel(DebugLevel); |
19 | DebugLevel debugOutputLevel(); | 20 | DebugLevel SINKCOMMON_EXPORT debugOutputLevel(); |
20 | 21 | ||
21 | QDebug debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0); | 22 | QDebug SINKCOMMON_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0); |
22 | 23 | ||
23 | } | 24 | } |
24 | } | 25 | } |