diff options
author | lloyd <[email protected]> | 2008-09-28 15:34:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 15:34:09 +0000 |
commit | ea32d18231b9c6c5c84b3754c4249170d3b4e4c0 (patch) | |
tree | cc179337d0594ed105768011722b9dbae105e07a /modules/mux_qt | |
parent | b841401e095cfc1aa0708689d7920eb95ece71af (diff) |
This is the first checkin to net.randombit.botan.modularized, which
has the intent of modularizing Botan's source code, and making it
much easier to add or remove various things at compile time.
In this first checkin:
Add support for nested directories in modules/ and move all the modules
into grouped directories like entropy/ or compression/
Currently this is not ideal, it will _only_ find code in
modules/*/*/modinfo.txt, while it would be much better to allow for
arbitrary nestings under modules (find modules -name modinfo.txt)
for more complicated setups.
This 'new' (OMG I've found directories!) structure allows for a more free
naming convention (no need for leading es_, ml_, etc to group names, though
some keep it for lack of a more meaningful name being obvious to me right
at the moment).
Diffstat (limited to 'modules/mux_qt')
-rw-r--r-- | modules/mux_qt/modinfo.txt | 18 | ||||
-rw-r--r-- | modules/mux_qt/mux_qt.cpp | 33 | ||||
-rw-r--r-- | modules/mux_qt/mux_qt.h | 25 |
3 files changed, 0 insertions, 76 deletions
diff --git a/modules/mux_qt/modinfo.txt b/modules/mux_qt/modinfo.txt deleted file mode 100644 index a21108c79..000000000 --- a/modules/mux_qt/modinfo.txt +++ /dev/null @@ -1,18 +0,0 @@ -realname "Qt Mutex" - -define MUTEX_QT - -note "You'll probably have to add -I/-L flags to the Makefile to find Qt" - -load_on request - -<add> -mux_qt.cpp -mux_qt.h -</add> - -# 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> -all -> qt-mt -</libs> diff --git a/modules/mux_qt/mux_qt.cpp b/modules/mux_qt/mux_qt.cpp deleted file mode 100644 index 421b771c7..000000000 --- a/modules/mux_qt/mux_qt.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/************************************************* -* Qt Thread Mutex Source File * -* (C) 2004-2007 Justin Karneges * -* 2004-2007 Jack Lloyd * -*************************************************/ - -#include <botan/mux_qt.h> -#include <qmutex.h> - -#if !defined(QT_THREAD_SUPPORT) - #error Your version of Qt does not support threads or mutexes -#endif - -namespace Botan { - -/************************************************* -* Qt Mutex Factory * -*************************************************/ -Mutex* Qt_Mutex_Factory::make() - { - class Qt_Mutex : public Mutex - { - public: - void lock() { mutex.lock(); } - void unlock() { mutex.unlock(); } - private: - QMutex mutex; - }; - - return new Qt_Mutex(); - } - -} diff --git a/modules/mux_qt/mux_qt.h b/modules/mux_qt/mux_qt.h deleted file mode 100644 index 110e147ec..000000000 --- a/modules/mux_qt/mux_qt.h +++ /dev/null @@ -1,25 +0,0 @@ -/************************************************* -* Qt Mutex Header File * -* (C) 2004-2007 Justin Karneges * -* 2004-2007 Jack Lloyd * -*************************************************/ - -#ifndef BOTAN_EXT_MUTEX_QT_H__ -#define BOTAN_EXT_MUTEX_QT_H__ - -#include <botan/mutex.h> - -namespace Botan { - -/************************************************* -* Qt Mutex * -*************************************************/ -class Qt_Mutex_Factory : public Mutex_Factory - { - public: - Mutex* make(); - }; - -} - -#endif |