diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-11 15:02:02 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-11 15:45:45 +0100 |
commit | d7a523e33a6ddefb59bbcf51f03430b3ba3481ec (patch) | |
tree | 1c87512e0f20e4874696c39f54b74321275db8b7 /xmlsecurity/inc | |
parent | 9d4bfc6162e1627f7bfe82f98a4ba4916296f5dd (diff) |
xmlsecurity: mark two classes as public to be able to unit-test them
Change-Id: I64dbf379a2d01ff46c5c32655958c63b04d86895
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r-- | xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx | 3 | ||||
-rw-r--r-- | xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx | 3 | ||||
-rw-r--r-- | xmlsecurity/inc/xmlsecuritydllapi.h | 23 |
3 files changed, 27 insertions, 2 deletions
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: */ |