aboutsummaryrefslogtreecommitdiffstats
path: root/src/mutex/qt_mutex
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-16 02:22:58 +0000
committerlloyd <[email protected]>2009-12-16 02:22:58 +0000
commit12afeca214c4414a0ced0bc4654d0fc5908dc77b (patch)
treed0706f470d406d68b4ec1f559d2e0f6426174c28 /src/mutex/qt_mutex
parent87cbaef441c6baba2699a8ea53ac2562c46c772d (diff)
Make many more headers internal-only.
Fixes for the amalgamation generator for internal headers. Remove BOTAN_DLL exporting macros from all internal-only headers; the classes/functions there don't need to be exported, and avoiding the PIC/GOT indirection can be a big win. Add missing BOTAN_DLLs where necessary, mostly gfpmath and cvc For GCC, use -fvisibility=hidden and set BOTAN_DLL to the visibility __attribute__ to export those classes/functions.
Diffstat (limited to 'src/mutex/qt_mutex')
-rw-r--r--src/mutex/qt_mutex/info.txt8
-rw-r--r--src/mutex/qt_mutex/mux_qt.cpp2
-rw-r--r--src/mutex/qt_mutex/mux_qt.h4
3 files changed, 11 insertions, 3 deletions
diff --git a/src/mutex/qt_mutex/info.txt b/src/mutex/qt_mutex/info.txt
index 346f04c81..7b014f886 100644
--- a/src/mutex/qt_mutex/info.txt
+++ b/src/mutex/qt_mutex/info.txt
@@ -2,6 +2,14 @@ define MUTEX_QT
load_on request
+<source>
+mux_qt.cpp
+</source>
+
+<header:internal>
+mux_qt.h
+</header:internal>
+
# I think we want to always use qt-mt, not qt -- not much point in supporting
# mutexes in a single threaded application, after all.
<libs>
diff --git a/src/mutex/qt_mutex/mux_qt.cpp b/src/mutex/qt_mutex/mux_qt.cpp
index 0f670c8b4..da4e5ce5c 100644
--- a/src/mutex/qt_mutex/mux_qt.cpp
+++ b/src/mutex/qt_mutex/mux_qt.cpp
@@ -6,7 +6,7 @@
* Distributed under the terms of the Botan license
*/
-#include <botan/mux_qt.h>
+#include <botan/internal/mux_qt.h>
#include <qmutex.h>
#if !defined(QT_THREAD_SUPPORT)
diff --git a/src/mutex/qt_mutex/mux_qt.h b/src/mutex/qt_mutex/mux_qt.h
index 5aed77f4b..cb396b81d 100644
--- a/src/mutex/qt_mutex/mux_qt.h
+++ b/src/mutex/qt_mutex/mux_qt.h
@@ -9,14 +9,14 @@
#ifndef BOTAN_MUTEX_QT_H__
#define BOTAN_MUTEX_QT_H__
-#include <botan/mutex.h>
+#include <botan/internal/mutex.h>
namespace Botan {
/*
* Qt Mutex
*/
-class BOTAN_DLL Qt_Mutex_Factory : public Mutex_Factory
+class Qt_Mutex_Factory : public Mutex_Factory
{
public:
Mutex* make();