From ea32d18231b9c6c5c84b3754c4249170d3b4e4c0 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 28 Sep 2008 15:34:09 +0000 Subject: 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). --- modules/mux_qt/modinfo.txt | 18 ------------------ modules/mux_qt/mux_qt.cpp | 33 --------------------------------- modules/mux_qt/mux_qt.h | 25 ------------------------- 3 files changed, 76 deletions(-) delete mode 100644 modules/mux_qt/modinfo.txt delete mode 100644 modules/mux_qt/mux_qt.cpp delete mode 100644 modules/mux_qt/mux_qt.h (limited to 'modules/mux_qt') 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 - - -mux_qt.cpp -mux_qt.h - - -# I think we want to always use qt-mt, not qt -- not much point in supporting -# mutexes in a single threaded application, after all. - -all -> qt-mt - 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 -#include - -#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 - -namespace Botan { - -/************************************************* -* Qt Mutex * -*************************************************/ -class Qt_Mutex_Factory : public Mutex_Factory - { - public: - Mutex* make(); - }; - -} - -#endif -- cgit v1.2.3