summaryrefslogtreecommitdiffstats
path: root/common/clientapi.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/clientapi.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/clientapi.h')
-rw-r--r--common/clientapi.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/clientapi.h b/common/clientapi.h
index 64c4f64..bd52c3e 100644
--- a/common/clientapi.h
+++ b/common/clientapi.h
@@ -20,6 +20,7 @@
20 20
21#pragma once 21#pragma once
22 22
23#include <sinkcommon_export.h>
23#include <QString> 24#include <QString>
24#include <QSharedPointer> 25#include <QSharedPointer>
25 26
@@ -38,7 +39,7 @@ class Notification;
38/** 39/**
39 * Store interface used in the client API. 40 * Store interface used in the client API.
40 */ 41 */
41class Store { 42class SINKCOMMON_EXPORT Store {
42public: 43public:
43 static QString storageLocation(); 44 static QString storageLocation();
44 static QByteArray resourceName(const QByteArray &instanceIdentifier); 45 static QByteArray resourceName(const QByteArray &instanceIdentifier);
@@ -121,10 +122,10 @@ public:
121 122
122namespace Resources { 123namespace Resources {
123 template <class DomainType> 124 template <class DomainType>
124 KAsync::Job<void> inspect(const Inspection &inspectionCommand); 125 KAsync::Job<void> SINKCOMMON_EXPORT inspect(const Inspection &inspectionCommand);
125} 126}
126 127
127class Notifier { 128class SINKCOMMON_EXPORT Notifier {
128public: 129public:
129 Notifier(const QSharedPointer<ResourceAccess> &resourceAccess); 130 Notifier(const QSharedPointer<ResourceAccess> &resourceAccess);
130 // Notifier(const QByteArray &resource); 131 // Notifier(const QByteArray &resource);