summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-01-11 15:02:02 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-11 15:45:45 +0100
commitd7a523e33a6ddefb59bbcf51f03430b3ba3481ec (patch)
tree1c87512e0f20e4874696c39f54b74321275db8b7 /xmlsecurity
parent9d4bfc6162e1627f7bfe82f98a4ba4916296f5dd (diff)
xmlsecurity: mark two classes as public to be able to unit-test them
Change-Id: I64dbf379a2d01ff46c5c32655958c63b04d86895
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/Library_xmlsecurity.mk4
-rw-r--r--xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx3
-rw-r--r--xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx3
-rw-r--r--xmlsecurity/inc/xmlsecuritydllapi.h23
4 files changed, 31 insertions, 2 deletions
diff --git a/xmlsecurity/Library_xmlsecurity.mk b/xmlsecurity/Library_xmlsecurity.mk
index 354c451375c2..7ba5b46e4f74 100644
--- a/xmlsecurity/Library_xmlsecurity.mk
+++ b/xmlsecurity/Library_xmlsecurity.mk
@@ -16,6 +16,10 @@ $(eval $(call gb_Library_set_include,xmlsecurity,\
-I$(SRCDIR)/xmlsecurity/inc \
))
+$(eval $(call gb_Library_add_defs,xmlsecurity,\
+ -DXMLSECURITY_DLLIMPLEMENTATION \
+))
+
$(eval $(call gb_Library_use_external,xmlsecurity,boost_headers))
$(eval $(call gb_Library_set_precompiled_header,xmlsecurity,$(SRCDIR)/xmlsecurity/inc/pch/precompiled_xmlsecurity))
diff --git a/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
index 1e2db05762a3..06a666efb580 100644
--- a/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
+++ b/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
@@ -23,6 +23,7 @@
#include <com/sun/star/uno/Reference.h>
#include <rtl/ustring.hxx>
#include "xmlsecurity/sigstruct.hxx"
+#include "xmlsecuritydllapi.h"
#include <vector>
@@ -62,7 +63,7 @@ struct SignatureStreamHelper
};
-class DocumentSignatureHelper
+class XMLSECURITY_DLLPUBLIC DocumentSignatureHelper
{
public:
diff --git a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
index dd0032de5313..8babab5910ab 100644
--- a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
+++ b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
@@ -25,6 +25,7 @@
#include <tools/link.hxx>
#include <rtl/ustring.hxx>
#include <xmlsecurity/sigstruct.hxx>
+#include <xmlsecuritydllapi.h>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/xml/sax/XWriter.hpp>
@@ -87,7 +88,7 @@ struct XMLSignatureVerifyResult
**********************************************************/
-class XMLSignatureHelper
+class XMLSECURITY_DLLPUBLIC XMLSignatureHelper
{
private:
::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxCtx;
diff --git a/xmlsecurity/inc/xmlsecuritydllapi.h b/xmlsecurity/inc/xmlsecuritydllapi.h
new file mode 100644
index 000000000000..f0540c799b48
--- /dev/null
+++ b/xmlsecurity/inc/xmlsecuritydllapi.h
@@ -0,0 +1,23 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_XMLSECURITY_INC_XMLSECURITYDLLAPI_H
+#define INCLUDED_XMLSECURITY_INC_XMLSECURITYDLLAPI_H
+
+#include <sal/types.h>
+
+#if defined(XMLSECURITY_DLLIMPLEMENTATION)
+#define XMLSECURITY_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
+#else
+#define XMLSECURITY_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
+#endif
+
+#endif // INCLUDED_XMLSECURITY_INC_XMLSECURITYDLLAPI_H
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */